View previous topic :: View next topic |
Author |
Message |
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Thu Aug 12, 2021 6:49 pm Post subject: GtkFilechooser search in middle of filenames |
|
|
Hi, everyone
I've been searching around for some days but it seems I am unable to locate something related to the issue at hand. Old uncle google doesn't seem to understand me, of maybe I am the only one bothered by this particular issue in the whole planet.
When I explore any random folder in nautilus or dolphin or any other reasonably modern file manager, I can just type, let's say "random_string", and any file containing that string will be listed, that will include "random_string.foo", "random_string666.bar" but also "666random_string.txt".
But, when I need to open some files using a GtkFileChooser, "random_string" will only match files starting with that string, and not other files which contains that string in the middle, such as "666random_string", which is a pain because I have lots of photos of the stuff in my online shop which sometimes I might want to search base on model, brand, color or whatever else, depending on the situation.
I wonder if there is some hidden config key somewhere where I could change this behavior.
Thanks for any hint you can provide.
Cheers. |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Thu Aug 12, 2021 7:28 pm Post subject: |
|
|
Ah ah i got what you mean.
Like when you are in vlc lets say and you go to Media->Open File
It is called a FileDialog.
In my case with Thunar i can select file by searching any string at any position of the filename.
Maybe try it with Thunar.
Or are you writing a program that implements a FileDialog? _________________
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri Aug 13, 2021 7:03 am Post subject: |
|
|
alamahant wrote: | Ah ah i got what you mean.
Like when you are in vlc lets say and you go to Media->Open File
It is called a FileDialog.
In my case with Thunar i can select file by searching any string at any position of the filename.
Maybe try it with Thunar.
Or are you writing a program that implements a FileDialog? |
Hi, and thanks for the response.
No, I am not writing code. I am talking about the gtk choose that's implemented in vlc, gimp or chrome (when running under gnome).
Yes, thunar, nautilus, dolphins and almost every file manager out there can match string in the middle of file names. But when you try to open a file from the gtk file choose in any of those programs you have to manually search for it in a list of hunderds or thousands of files.
The most strange thing is that nobody else seems to care about this... or maybe my google-fu is a bit rusty, I don't know |
|
Back to top |
|
|
dbtx Tux's lil' helper
Joined: 20 Jan 2020 Posts: 117
|
Posted: Fri Aug 13, 2021 6:49 pm Post subject: |
|
|
When I run Geany and File->Open, and looking at ~, typing 'lo' immediately narrows it down to ten or so items including Downloads, lost+found, and minicom.log. I didn't set anything to make it this way, so maybe someone set something else which made yours that other way. There might be a clue in the output of gtk-query-settings or with a search in gnome-extra/gconf-editor. I didn't see anything obvious, so maybe something will stand out on yours. Later on I want to find out what "gtk-file-chooser-backend: NULL" means. edit: also "gtk-xft-dpi: 94208"
Code: | $ gtk-query-settings
gtk-double-click-time: 400
gtk-double-click-distance: 5
gtk-cursor-blink: TRUE
gtk-cursor-blink-time: 1200
gtk-cursor-blink-timeout: 10
gtk-split-cursor: TRUE
gtk-cursor-aspect-ratio: 0.040000
gtk-theme-name: "Clearlooks-Phenix"
gtk-icon-theme-name: "Adwaita"
! gtk-fallback-icon-theme: NULL
gtk-key-theme-name: ""
gtk-menu-bar-accel: "F10"
gtk-dnd-drag-threshold: 8
gtk-font-name: "DejaVu Sans 8"
! gtk-icon-sizes: NULL
gtk-modules: NULL
gtk-xft-antialias: 1
gtk-xft-hinting: 1
gtk-xft-hintstyle: "hintfull"
gtk-xft-rgba: "none"
gtk-xft-dpi: 94208
gtk-cursor-theme-name: "Vanilla-DMZ-AA"
gtk-cursor-theme-size: 0
gtk-alternative-button-order: FALSE
gtk-alternative-sort-arrows: FALSE
! gtk-show-input-method-menu: FALSE
! gtk-show-unicode-menu: FALSE
! gtk-timeout-initial: 500
! gtk-timeout-repeat: 50
! gtk-timeout-expand: 500
! gtk-color-scheme: "\"base_color:#ffffff\nbg_color:#edeceb\nfg_color:#000000\nselected_bg_color:#86abd9\nselected_fg_color:#ffffff\ntooltip_bg_color:#f5f5b5\ntooltip_fg_color:#000000\ntext_color:#1a1a1a\nlink_color:#0000ee\nvisited_link_color:#551a8b\""
gtk-enable-animations: TRUE
! gtk-touchscreen-mode: FALSE
! gtk-tooltip-timeout: 500
! gtk-tooltip-browse-timeout: 60
! gtk-tooltip-browse-mode-timeout: 500
! gtk-keynav-cursor-only: FALSE
! gtk-keynav-wrap-around: TRUE
gtk-error-bell: TRUE
! color-hash: ((GHashTable*) 0x5616797f2400)
! gtk-file-chooser-backend: NULL
gtk-print-backends: "file,cups"
gtk-print-preview-command: "evince --unlink-tempfile --preview --print-settings %s %f"
gtk-enable-mnemonics: TRUE
gtk-enable-accels: TRUE
! gtk-recent-files-limit: 50
gtk-im-module: NULL
gtk-recent-files-max-age: 30
gtk-fontconfig-timestamp: 0
gtk-sound-theme-name: "default"
gtk-enable-input-feedback-sounds: FALSE
gtk-enable-event-sounds: FALSE
! gtk-enable-tooltips: TRUE
! gtk-toolbar-style: GTK_TOOLBAR_ICONS
! gtk-toolbar-icon-size: GTK_ICON_SIZE_LARGE_TOOLBAR
! gtk-auto-mnemonics: FALSE
gtk-primary-button-warps-slider: FALSE
! gtk-visible-focus: GTK_POLICY_AUTOMATIC
gtk-application-prefer-dark-theme: FALSE
! gtk-button-images: TRUE
gtk-entry-select-on-focus: TRUE
gtk-entry-password-hint-timeout: 0
! gtk-menu-images: TRUE
! gtk-menu-bar-popup-delay: 0
! gtk-scrolled-window-placement: GTK_CORNER_TOP_LEFT
! gtk-can-change-accels: FALSE
! gtk-menu-popup-delay: 225
! gtk-menu-popdown-delay: 1000
gtk-label-select-on-focus: TRUE
! gtk-color-palette: "black:white:gray50:red:purple:blue:light blue:green:yellow:orange:lavender:brown:goldenrod4:dodger blue:pink:light green:gray10:gray30:gray75:gray90"
! gtk-im-preedit-style: GTK_IM_PREEDIT_CALLBACK
! gtk-im-status-style: GTK_IM_STATUS_CALLBACK
gtk-shell-shows-app-menu: FALSE
gtk-shell-shows-menubar: FALSE
gtk-shell-shows-desktop: TRUE
gtk-decoration-layout: "menu:minimize,maximize,close"
gtk-titlebar-double-click: "toggle-maximize"
gtk-titlebar-middle-click: "none"
gtk-titlebar-right-click: "menu"
gtk-dialogs-use-header: FALSE
gtk-enable-primary-paste: TRUE
gtk-recent-files-enabled: TRUE
gtk-long-press-time: 500
gtk-keynav-use-caret: FALSE
gtk-overlay-scrolling: FALSE
|
Code: | $ gconftool-2 -a /org/gtk/settings/file-chooser
last-folder-uri = file:///home/
show-size-column = true
show-hidden = false
sort-column = name
window-size = (464,419)
window-position = (340,314)
sort-order = ascending
location-mode = path-bar
sidebar-width = 140 |
P.S. thanks for getting me to look at this-- I noticed gtk-long-press-time and set it to 9999 in settings.ini to effectively disable that precision scrolling "feature". edit: apparently it didn't stick but w/e, o/t
Last edited by dbtx on Tue Aug 24, 2021 6:53 am; edited 2 times in total |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sat Aug 14, 2021 8:38 am Post subject: |
|
|
Thanks for the pointer. I checked but saw nothing related. gtk-file-chooser-backend picked my attention just like yours but for what I could find in a quick search it seems like deprecated stuff that never really got any important use. |
|
Back to top |
|
|
dbtx Tux's lil' helper
Joined: 20 Jan 2020 Posts: 117
|
Posted: Mon Sep 06, 2021 8:11 pm Post subject: |
|
|
I recently found gsettings from gnome-base/gsettings-desktop-schemas which seems to be newer than & independent from gconftool-2 and gconf-editor. Because I've never really tried GNOME 3, it had many unfamiliar defaults such as Cantarell 11 for the common font, which I've since changed because it affects Firefox when running under swaywm. For further comparison, here's gsettings list-recursively and the same thing from gconftool-2. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|