Package Details: nautilus-typeahead 47.1-1

Git Clone URL: https://aur.archlinux.org/nautilus-typeahead.git (read-only, click to copy)
Package Base: nautilus-typeahead
Description: Default file manager for GNOME - Patched to bring back the 'typeahead find' feature
Upstream URL: https://apps.gnome.org/Nautilus/
Keywords: files gnome nautilus typeahead
Licenses: GPL
Groups: gnome
Conflicts: nautilus
Provides: nautilus
Submitter: badwolfie
Maintainer: albertvaka
Last Packager: albertvaka
Votes: 45
Popularity: 0.000916
First Submitted: 2015-09-11 00:39 (UTC)
Last Updated: 2024-12-15 16:27 (UTC)

Required by (31)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 11 Next › Last »

Armag67 commented on 2022-11-11 18:02 (UTC)

Solved by a temporary return to Manjaro Community libnautilus-extension via PACAUR.

Armag67 commented on 2022-11-11 17:23 (UTC) (edited on 2022-11-11 17:24 (UTC) by Armag67)

Hello,

Even by the git way:

git clone https://aur.archlinux.org/nautilus-typeahead.git
cd nautilus-typeahead
env LC_ALL=C makepkg -si

or with only

makepkg -si

the build fails with this traceback:

...
[290/369] Compiling C object src/libnautilus.a.p/nautilus-vfs-directory.c.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

And I have the last ninja package (1.11.1-1) from Community on my Manjaro Xfce system (Oddly, this package doesn't seem to be dependent on any other and isn't marked orphaned...).

EDIT: I just saw that I have nautilus installed as fallback file browser and easytag which needs libnautilus-extension or libnautilus-extension-typeahead...

albertvaka commented on 2022-11-08 21:31 (UTC)

I've included your patch @joelongjiamian, thanks!

getzze commented on 2022-11-07 22:35 (UTC)

Thanks @joelongjiamian, it compiles fine with the patch. I made an AUR package of python-nautilus in version 1.2.3 to be able to use extensions (like open-in-terminal, gsconnect, etc...) with this version: https://aur.archlinux.org/packages/python-nautilus-1

joelongjiamian commented on 2022-11-02 21:27 (UTC) (edited on 2022-11-03 00:58 (UTC) by joelongjiamian)

For those who are taking the plunge and upgrading to GNOME 43 anyway, I can report that the build will fail after the upgrade when compiling nautilus-thumbnails.c. To get it to work again, patch nautilus-thumbnails.c as follows:

diff --git a/src/nautilus-thumbnails.c b/src/nautilus-thumbnails.c
index 8b532f260..dc607d019 100644
--- a/src/nautilus-thumbnails.c
+++ b/src/nautilus-thumbnails.c
@@ -447,6 +447,7 @@ thumbnail_thread_func (GTask        *task,
     time_t current_orig_mtime = 0;
     time_t current_time;
     GList *node;
+    GError *error = NULL;

     thumbnail_factory = get_thumbnail_factory ();

@@ -529,7 +530,10 @@ thumbnail_thread_func (GTask        *task,

         pixbuf = gnome_desktop_thumbnail_factory_generate_thumbnail (thumbnail_factory,
                                                                      info->image_uri,
-                                                                     info->mime_type);
+                                                                     info->mime_type,
+                                                                     NULL,
+                                                                     &error
+                                                                     );

         if (pixbuf)
         {
@@ -539,7 +543,9 @@ thumbnail_thread_func (GTask        *task,
             gnome_desktop_thumbnail_factory_save_thumbnail (thumbnail_factory,
                                                             pixbuf,
                                                             info->image_uri,
-                                                            current_orig_mtime);
+                                                            current_orig_mtime,
+                                                                     NULL,
+                                                                     &error);
             g_object_unref (pixbuf);
         }
         else
@@ -549,7 +555,8 @@ thumbnail_thread_func (GTask        *task,

             gnome_desktop_thumbnail_factory_create_failed_thumbnail (thumbnail_factory,
                                                                      info->image_uri,
-                                                                     current_orig_mtime);
+                                                                     current_orig_mtime,
+                                                                     NULL, NULL);
         }
         /* We need to call nautilus_file_changed(), but I don't think that is
          *  thread safe. So add an idle handler and do it from the main loop. */

I've also had to downgrade python-nautilus to 1.2.3-7 to get other functionality (e.g. open-in-terminal) to work again.

albertvaka commented on 2022-11-02 18:04 (UTC) (edited on 2022-11-02 18:10 (UTC) by albertvaka)

Nautilus was ported from gtk3 to gtk4 so our beloved patch for typeahead no longer applies.

I've looked into what would be required to port this patch and some changes are non-trivial:

  • They way to handle key press events changed in gtk4.

  • Positioning and hiding/showing the search popup (which was already funky on Wayland) was quite hacky and relied in GtkScreen which no longer exists.

Given this, I think it will be easier to re-implement typeahead from scratch (and in a less hacky way) than trying to port the patch.

Unfortunately I'm not able to do this amount of work, so it's up for grabs.

dave.z commented on 2022-05-07 15:11 (UTC)

That makes sense, I'm on Wayland. This still doesn't explain the behavior though. After I type a second character it goes fully into search mode and doesn't highlight folders/files that start with that second character. Is this the intended behavior or am I missing something?

albertvaka commented on 2022-05-07 07:47 (UTC)

Ok, turns out the fact that the input box appears centered is because of Wayland. On X11 it appears where it should, but since positioning a window isn't possible on Wayland, there it appears centered. Apart from that, this still works as intended.

albertvaka commented on 2022-05-07 07:27 (UTC)

It is true that the text input appears centered (instead of on the lower right corner as before) since some Nautilus version and I haven't looked into why. But the functionality should still be fully working :) Whatever you type should both go into the input field and cause the selected file to change.