在较新的Nautilus版本上进行传统搜索

到目前为止,我使用的是Nautilus的“传统”版本:Ubuntu 10.10附带的版本。 现在我使用的是3.6.3,包含在Ubuntu 13.04中(最有可能是任何最新版本都等同于我的问题范围,无论如何)。

两者之间的一个主要区别是搜索为您的类型行为:在Nautilus的经典版本中,当您键入输入时,具有最接近字母匹配的文件将成为所选文件,符合条件的文件/文件夹将被限制为当前目录。

新行为是执行可选的全局搜索。

可以配置Nautilus来提供以前的function吗?

Ubuntu 17.10和18.04

由于提前输入搜索是一个特定于Ubuntu的补丁,它在17.10中与Unity一起被删除。 但是在Arch存储库中有一个名为nautilus-typeahead的包。 有人接受了它,为Ubuntu编译并制作了PPA。 您可以通过以下三个命令安装它:

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

Launchpad上存在一个问题,即将此行为带回官方Ubuntu。


Ubuntu 14.04到17.04

由于Ubuntu 14.04 LTS版本类型提前查找是Nautilus中的默认行为 。

您可以使用dconf键在不同的搜索模式之间切换:

  • 启用type-ahead-find:

    gsettings set org.gnome.nautilus.preferences enable-interactive-search true

  • 禁用type-ahead-find以支持递归搜索:

    gsettings set org.gnome.nautilus.preferences enable-interactive-search false


Ubuntu 13.04和13.10

据我所知,新的Nautilus 3.6.X削减了3.4及更早版本的许多function。 Canonical决定在Ubuntu 12.10中继续使用nautilus 3.4.2,因为即使Nautilus 3.6已经发布了。 我不认为有可能在3.6中获得旧的搜索行为,但我所做的是安装SolusOS修补Nautilus (也适用于Ubuntu 13.04 ),其中包括3.4.2的所有function(它实际上是Nautilus 3.4。 2)同时保持Nautilus 3.6皮肤。 我已经测试了这个特殊的软件包,它在Ubuntu 12.10和13.04中运行良好。

或者你可以安装Nemo文件资源管理器,它是Nautilus 3.4的一个分支,由于Cinnamon开发团队对Nautilus 3.6感到失望,你可以在这里获得安装说明 。

使它成为您的默认文件浏览器有点棘手, 这篇博客文章在Ubuntu 12.10中为我工作但有些用户报告该方法无法正常工作。

然而,还有其他方法。 请参阅以下问题:

  • 使nemo成为默认文件浏览器

在Ubuntu Gnome 14.04中,打开dconf-editor 。 去
org > gnome > nautilus > 首选项

选中enable-interactive-search旁边的框。 重启nautilus

Ubuntu 18.04

好吧,这个问题让我足以最终查看Ubuntu的PPA提交流程; 您可以在此处应用Arch社区补丁找到Nautilus(用于仿生): https : //launchpad.net/~lubomir-brindza/+archive/ubuntu/nautilus-typeahead并通过运行安装它:

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

实际上有一种方法可以在Nautilus 3.26(Ubuntu 17.10中的当前版本)中获得这个。 哪个是从源代码构建自己的版本,使用由awesome arch-linux社区提供的补丁。 幸运的是,Ubuntu中的优秀构建系统使这很容易。 这是步骤。 我假设你将在〜/ bld-nautilus-typeahead工作。 启动控制台并执行以下操作:

 # install some necessary tools sudo apt-get install git # Create your work directory and go there mkdir bld-nautilus-typeahead ; cd bld-nautilus-typeahead # Clone the repository holding the needed patch: git clone https://aur.archlinux.org/nautilus-typeahead.git # Make sure the source repositories for the main archives are available: sudo nano /etc/apt/sources.list # If the deb-src line for the main repository (usually around line 6) is commented out (starts with a #), un-comment it (remove the #) and save the file sudo apt-get update # Install the build dependencies sudo apt-get build-dep nautilus # Retrieve the sources for Nautilus apt-get source nautilus # Source should now be in the 'nautilus-3.26.0/' folder. Go there cd nautilus-3.26.0/ # and Apply the patch from arch-linux patch -p0 < ../nautilus-typeahead/nautilus-restore-typeahead.patch # Build the package from source dpkg-buildpackage -rfakeroot -uc -b # This will take a little time. If everything goes well, the related packages will end up in the parent directory. Go there cd .. # and install the required packages sudo dpkg -i nautilus_3.26.0-0ubuntu1_amd64.deb nautilus-data_3.26.0-0ubuntu1_all.deb 

开始新的Nautilus。 输入一些字母。 体验您想要的文件被选中时发生的快乐感。

Nautilus 3.25及以上版本的答案是它已经消失了,除非有人完全重写了ubuntu补丁,并且非常渺茫。

它不是可以在nautilus中配置的东西。