How to install Nautilus using the “pre-find” patch on Ubuntu 20.04, 19.10, or 18.04

Nautilus advance input search function

For many versions, Nautilus (file), The default GNOME file manager, always uses a recursive search in the current folder when the user starts typing.
Prior to this, Nautilus used the input-ahead search function, which allowed users to use the keyboard to select files or folders in the current directory by starting to type the file/folder name (not including anything found in subdirectories). This will make the selection jump to the first file or folder that matches the typed characters. If multiple files or folders will match the query, you can use the arrow keys to go to the next or previous match
This article describes how to install the Nautilus file manager with the old type-ahead lookup (type of file type) behavior on Ubuntu 20.04, 19.10, or 18.04 using PPA based on patches in the Arch Linux user repository.

Here you can see the GIF patch for Nautilus 3.36 with pre-input search function:Nautilus enter gif in advance

To bring the old type-ahead search function back to Nautilus, the file manager has been patched. Albert Vaka keeps AUR package It can be used to easily install Nautilus with pre-input search function on Arch Linux or Manjaro.
Lubomir Brindza used the patch in this AUR package to create a PPA that can be used on Ubuntu 20.04, 19.10, or 18.04. We will use this PPA below to install the patched Nautilus.
It is worth noting that in this patched Nautilus, the recursive search function continues to work. However, you need to click the search icon on the Nautilus toolbar (or press Ctrl + F) Search. This patch only affects the search function that starts when you type Nautilus with the file list as the focus.

Install Nautilus on Ubuntu 20.04, 19.10 or 18.04 using the look-ahead feature

1. The priority of fixed PPA is 1001
The Nautilus version of PPA may be overwritten by Ubuntu updates. For example, Ubuntu 20.04 currently has Nautilus version 3.36.2-0ubuntu1 in the Updates repository, 3.36.3-0ubuntu1 in the Proposed repository, and PPA has Nautilus 3.36.2-0ubuntu2ppa1 (the version is more recent than the version in the Updates repository High, but the version is older than the one in the “recommended” repository). When the version in the proposed repository is pushed to an update, this Nautilus version will overwrite the version in the PPA (until the maintainer updates it).
To avoid this situation, we can fix the priority of the Nautilus Typeahead PPA package to 1001 (Ubuntu defaults to 500,> 1000 means to install even if it has been downgraded), so the PPA package will not be overwritten by any update of Ubuntu , Even if the version on the system is newer, you can install them. To do this, please /etc/apt/preferences.d versus lubomir-brindza-nautilus-typeahead-pin-1001 As the file name-you can run the following Nano command to open a new file in the following location:

sudo nano /etc/apt/preferences.d/lubomir-brindza-nautilus-typeahead-pin-1001

Paste this into the file:

Package: *
Pin: release o=LP-PPA-lubomir-brindza-nautilus-typeahead
Pin-Priority: 1001

Now save the file and exit (in Nano, use Ctrl + oAnd then exit Ctrl + x).2. Add PPA and install Nautilus with pre-search on Ubuntu 20.04, 19.10, and 18.04 or Linux distributions based on these Ubuntu versions (including Pop!_OS):

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

sudo apt upgrade

nautilus -q

This will upgrade the Nautilus file manager from PPA to a patched version. If you have run the last command, it will restart Nautilus, so you can now use the type-ahead search function in Nautilus. You might also like: Use Nautilus Terminal 3 to get the terminal embedded in Nautilus File Manager.

How to undo changes

Do you want to return to the default Nautilus and its recursive search when typing? Install ppa-purge and clear Nautilus Typeahead PPA:

sudo apt install ppa-purge

sudo ppa-purge ppa:lubomir-brindza/nautilus-typeahead

We also delete the APT preference file used to fix this PPA because it no longer performs any operations:

sudo rm /etc/apt/preferences.d/lubomir-brindza-nautilus-typeahead-pin-1001

You might also like: download subtitles by right-clicking on the file manager or the command line with OpenSubtitlesDownload.py

Source

Sidebar