GNOME Bugzilla – Bug 697433
file browser: allow me to type a folder path directly
Last modified: 2019-03-23 20:35:01 UTC
Sometimes it's convenient to be able to navigate to a folder by typing its absolute path directly. In Nautilus, I can do this by simply typing the path: as soon as I type '/', the path bar is replaced by a text entry box where I can type a folder name. It would be nice to offer the same in the gedit file browser, where we could replace the combo box with a text box in the same situation.
I am not sure if a text entry works there since it would be a bit crammed, but I agree that it would be nice to have this functionality. Let's try and if a text entry does not feel ok, we can think of alternatives
We could keep it hidden and only show it on ~, /, \, or Ctrl+L. This is the behavior of the GtkFileChooser.
(In reply to comment #2) > We could keep it hidden and only show it on ~, /, \, or Ctrl+L. This is the > behavior of the GtkFileChooser. That sounds right to me.
(In reply to comment #2) > We could keep it hidden and only show it on ~, /, \, or Ctrl+L. This is the > behavior of the GtkFileChooser. Yes definitely, sorry if I was not clear. I meant that once it is shown, the entry does not have much horizontal space.
Created attachment 246936 [details] [review] Bug 697433 - Allow directly typing a path in file browser The path can be either absolute, uri, or relative. The entry is initially hidden and is only displayed when ~, /, \ or Ctrl+L are pressed and will be hidden if Escape is pressed.
Review of attachment 246936 [details] [review]: One minor issue inline. ::: plugins/filebrowser/gedit-file-browser-widget.c @@ +1320,3 @@ +static void +show_location_entry (GeditFileBrowserWidget *obj, + gchar *location) const gchar *
Created attachment 246937 [details] [review] Bug 697433 - Allow directly typing a path in file browser v2 (In reply to comment #6) > Review of attachment 246936 [details] [review]: > > One minor issue inline. > > ::: plugins/filebrowser/gedit-file-browser-widget.c > @@ +1320,3 @@ > +static void > +show_location_entry (GeditFileBrowserWidget *obj, > + gchar *location) > > const gchar * Fixed
Review of attachment 246937 [details] [review]: Looks good to me
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.