Package Base Details: nautilus-typeahead

Git Clone URL: https://aur.archlinux.org/nautilus-typeahead.git (read-only, click to copy)
Keywords: files gnome nautilus typeahead
Submitter: badwolfie
Maintainer: albertvaka
Last Packager: albertvaka
Votes: 45
Popularity: 0.185560
First Submitted: 2015-09-11 00:39 (UTC)
Last Updated: 2023-12-23 12:20 (UTC)

Latest Comments

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

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.

dave.z commented on 2022-05-07 01:46 (UTC)

After installing this, when I first type a character the first result is highlighted, but also a small search window comes up in the center. After typing another character, it goes into the search field and does not highlight with typeahead anymore.

albertvaka commented on 2022-04-09 00:25 (UTC)

Updated to 42.0! I had to update the patch, let me know if anything broke :)