Giter Site home page Giter Site logo

lubomir-brindza / nautilus-typeahead Goto Github PK

View Code? Open in Web Editor NEW
74.0 6.0 4.0 134 KB

Patched version of nautilus that retains the type-to-seek (typeahead) functionality that was removed from upstream nautilus.

Home Page: https://launchpad.net/~lubomir-brindza/+archive/ubuntu/nautilus-typeahead

nautilus-typeahead's Introduction

nautilus-typeahead

TL;DR: This repository contains a patch file that is used to build a Ubuntu PPA package of nautilus with restored type-to-seek (typeahead) functionality.

What's new

Version for Ubuntu 24.04 Noble is up (1:46.0-0ubuntu2ppa1).

What does it do?

Long ago, whenever you typed a letter in an active nautilus window, the first file/folder starting with that letter would get highlighted. This is the default behavior in a lot of file managers. At a certain point a decision was made to try something different, and as a result of that, typing a letter in a nautilus window now starts a search instead. This had made many people very angry and has been widely regarded as a bad move.

This package reverts to the original, type-to-seek, behavior.

How do I install it?

sudo add-apt-repository -y ppa:lubomir-brindza/nautilus-typeahead
sudo apt install nautilus

If you have any running nautilus windows, you first need to close them with nautilus -q or killall nautilus.

Building it yourself

You can use this patch to build your own version and not rely on the PPA repository.

apt-get source nautilus  # retrieve sources w/ Ubuntu patches

cd nautilus-<version>
cp ~/<patch_folder>/nautilus-restore-typeahead.patch debian/patches/
echo nautilus-restore-typeahead.patch >> debian/patches/series
quilt push  # (try to) apply the patch

sudo apt-get build-dep nautilus  # install build dependencies
dch -i  # update changelog

debuild -us -uc -b

This will produce a .deb file in the parent directory, which you can then simply install by calling dpkg -i nautilus-<version>.deb

If you encounter problems building, please make sure you can build from source without the patch applied before opening an issue.

I don't think I trust you, what are my alternatives?

Fair enough - you can give the nemo file manager a try.

You can also try upvoting the issue that asks for this functionality to be included by default, here: https://gitlab.gnome.org/Teams/Design/whiteboards/-/issues/142

Did you make this?

No. The patch file that makes this PPA build possible is maintained by the awesome folks of the Arch Linux community, to support their own AUR package: https://aur.archlinux.org/packages/nautilus-typeahead/

This repository was created at a point where I've had to make small edits to the original patch to make it apply cleanly, but currently there's no difference between the two except metadata (line numbers, etc.).

The current version of the typeahed patch for nautilus 42 (distributed with Ubuntu 22.04) and newer was authored by Xavier Claessens (see https://gitlab.gnome.org/xclaesse/nautilus/-/commits/type-ahead).

FAQ

  • I've updated my packages and the typeahead functionality stopped working, what do I do?

Whenever the Ubuntu team releases a new version of nautilus, it'll get install priority over the (older) version in the PPA repository. Typically I'll notice within a day or two and rebuild the package, but feel free to open an issue here on Github if I'm dragging my feet.

  • I've installed nautilus from your PPA but typeahead does not work, what gives?

Patched nautilus versions from 43.0 onwards (Ubuntu 22.10 and newer) add a configuration toggle under Preferences -> Search on type ahead. You need to disable this toggle to override the default search behavior.

Known limitations

  • does not work in open/save file dialog

nautilus-typeahead's People

Contributors

albertvaka avatar lubomir-brindza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

nautilus-typeahead's Issues

Consider filing an upstream pull request

The latest upstream issue asking for this feature is here:

https://gitlab.gnome.org/GNOME/nautilus/-/issues/1157

In the past "show us the code in a form we can review" has been a cited reason for not considering patches elsewhere for typeahead behaviour. Whilst I think this is likely to just be a polite way of telling people to go away, since the code exists already perhaps you might consider making a merge request on the nautilus gitlab project.

Ubuntu 22.10 version ?

Since the 22.10 was released some time ago, I was wondering if you plan to post the patched nautilus for this version, unless the patch doesn't work for this new version of nautilus?

Using nautilus-typeahead and nautilus-dropbox

Hello,

I am trying to get nautilus-typeahead working. Unfortunately it doesn't work.

I found out (nautilus -q) that Dropbox already installed a different version of nautilus (nautilus-dropbox). Is it possible to use both together?

Apt crashes adding repo

EDIT: I had a DNS issue, all is well thank you for this wonderful patch! I am not sure how to delete this issue but it was completely unrelated!

I am on Ubuntu 22.04. After killing all instances of Nautilus I still cannot add the repo. I used your two commands and also went into System Monitor and sent kill command. No mention of "nautilus" is there any other service or process I should be looking for? I successfully executed that line on my KDE Neon machine and added your repo (maybe because Nautilus is not installed?) I really appreciate you and the arch team maintaining this and am excited to get it working somehow!

`lr@lr-desktop:~$ sudo add-apt-repository -y ppa:lubomir-brindza/nautilus-typeahead
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/httplib2/init.py", line 1363, in _conn_request
conn.connect()
File "/usr/lib/python3/dist-packages/httplib2/init.py", line 1139, in connect
address_info = socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM)
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 364, in
sys.exit(0 if addaptrepo.main() else 1)
File "/usr/bin/add-apt-repository", line 347, in main
shortcut = handler(source, **shortcut_params)
File "/usr/lib/python3/dist-packages/softwareproperties/shortcuts.py", line 40, in shortcut_handler
return handler(shortcut, **kwargs)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 82, in init
if self.lpppa.publish_debug_symbols:
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 120, in lpppa
self._lpppa = self.lpteam.getPPAByName(name=self.ppaname)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, in lpteam
self._lpteam = self.lp.people(self.teamname)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in lp
self._lp = login_func("%s.%s" % (self.module, self.class.name),
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 494, in login_anonymously
return cls(
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 230, in init
super(Launchpad, self).init(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/resource.py", line 472, in init
self._wadl = self._browser.get_wadl_application(self._root_uri)
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 447, in get_wadl_application
response, content = self._request(url, media_type=wadl_type)
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 389, in _request
response, content = self._request_and_retry(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 359, in _request_and_retry
response, content = self._connection.request(
File "/usr/lib/python3/dist-packages/httplib2/init.py", line 1693, in request
(response, new_content) = self._request(
File "/usr/lib/python3/dist-packages/launchpadlib/launchpad.py", line 144, in _request
response, content = super(LaunchpadOAuthAwareHttp, self)._request(
File "/usr/lib/python3/dist-packages/lazr/restfulclient/_browser.py", line 184, in _request
return super(RestfulHttp, self)._request(
File "/usr/lib/python3/dist-packages/httplib2/init.py", line 1441, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python3/dist-packages/httplib2/init.py", line 1370, in _conn_request
raise ServerNotFoundError("Unable to find the server at %s" % conn.host)
httplib2.error.ServerNotFoundError: Unable to find the server at api.launchpad.net
`
I am sorry if I am missing something simple, I am no Linux pro but am usually okay with apt.

Update to 1:3.26.4

Hi, it seems this PPA needs to be updated to the new version of nautilus, since currently my PPA won't install anything.

Sobbing for Gnome 42 support

Cyring myself silently into sleep about loosing this feature after updating.
Is there an outlook for sunnier days with v42 support?

No longer working on Ubuntu 20

There seems to be a new Nautilus version in the official repositories which disabled the PPA.

The new version (from 2023-01-03) is 1:3.36.3-0ubuntu1.20.04.2 (https://bugs.launchpad.net/ubuntu/+source/nautilus/1:3.36.3-0ubuntu1.20.04.2).

As an aside, make sure to click "Affects me" on the two Launchpad issues, so that maybe this will return to the main repo at some point in the future.

Left and Right arrow navigation does not work when typing-ahead (in thumbnail view)

Sometimes the file/folder I'm targeting is one or two places to the right, and I would like to be able to press the right arrow key and enter to select it, while in thumbnail view.

Repro:

  1. Given a folder with 2 subfolders named: "New Folder" and "New Folder 1"
  2. Open Nautilus to the folder in step 1
  3. Put Nautilus into thumb-nail view mode
  4. Type "new"
  5. "New Folder" is selected
  6. Press right arrow to select "New Folder 1"

Expected: New Folder 1 is selected
Actual: "New Folder" is still selected; the selection doesn't change

Curiously, UP and DOWN arrow keys will change the selection left/right. This is unexpected.

Can't resolve libportal-gtk3

I'm getting the following error upon running sudo pacman -S nautilus-typeahead:

warning: cannot resolve "libportal-gtk3", a dependency of "nautilus-typeahead"

I'm trying to install nautilus-typeahead because Nautilus stopped working after running a system update. Any help would be much appreciated.

Patch breaks gnome-sushi

Hi, thanks for bringing back this feature! I really wish gnome-sushi file previewer still works with this patched version though... especially since it works by pressing the spacebar.

Edit: this might have been fixed on upstream? comment

Not working anymore on 18.04?

Hi

Thanks a lot for this extension, to be honest I maybe would not be on Ubuntu anymore for it!

I used it for a while on 18.04, although recently it stopped working, i.e. the other search style came back. Any idea why? Could this be to an update in nautilus? I have version GNOME nautilus 3.26.4 now.

Thanks!

The pop-up window seems to last longer than expected. Ubuntu 22.04

Hi, first of all I love the author because this is my favorite deb across all versions of Ubuntu.

I just upgrade my system to Ubuntu 22.04, with gnome-flashback. I notice that if I type ahead a few characters, then alt+tab, the pop-up window will keep hanging there until 3 to 5 secs. If my memory works it is not the case back in Ubuntu 20.04. Is it intended or just a bug?

Not working on 42.6

There is a new Nautilus package 1:42.6-0ubuntu1 on Ubuntu Jammy. With no typeahead ๐Ÿ˜ญ

Please add README

Hi!
Thank you for restoring this feature.
Could you please add a very short instruction on how to use this patch? I've spent some time figuring it out. The guides over the internet leading to this repo are not clear or not working completely.

What's worked for me (in terminal):
sudo add-apt-repository ppa:lubomir-brindza/nautilus-typeahead
sudo apt dist-upgrade
nautilus -q && nautilus &

Slow cp with autofs for cifs

First thanks for providing this patch. I am very annoyed by the new behaviour, and used your patch for over a year happily. However, just today I realized that it is the reason for very low transferring rate, and I have therefore to go back to stock nautilus. I thought I'd report it here, maybe there is a known solution.

The current nautilus-typeahead (installed via the ppa) causes slow copying/moving from a server to local (not from local to server) using autofs for cifs.

Transferring speed:

  • nautilus-typeahead < 10 kb/s
  • stock nautilus ~ 10 MB/s

Example setup:

  1. At the end of /etc/auto.master:
/mnt/myserver /etc/auto.myserver --timeout=1800 --ghost
  1. File /etc/auto.myserver:
home -fstype=cifs,credentials=/root/myserver.auth.username,uid=1000,gid=100  ://myserver-IP/home
  1. File /root/myserver.auth.username contains the credentials.

As mentioned, copying/moving files from the local to server is fast, from server to local is slow with nautilus-typeahead, fast with stock nautilus.

On Ubuntu 18.04.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.