Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directories listed on excluded-dirs are not being ignored #133

Open
msmafra opened this issue Oct 12, 2024 · 6 comments
Open

Directories listed on excluded-dirs are not being ignored #133

msmafra opened this issue Oct 12, 2024 · 6 comments

Comments

@msmafra
Copy link
Contributor

msmafra commented Oct 12, 2024

Hello there.
I'm on 0.4.9 on Fedora 41 Beta. Tried to compile 0.5.1, but couldn't to check it happens with the newest too.
I basically include almost all my user folders inside the excluded-dirs files since I don't use the file search from nwg-drawer, usually I search from inside Nautilus. Also it makes nwg-drawer freeze/stutter a bit when I'm typing the search term.

❯ cat ~/.config/hypr/nwg/excluded-dirs
Documentos
Documents
Downloads
Músicas/
Musicas/
Vídeos/
Videos/
BACKUPS/⏎   
@nwg-piotr
Copy link
Owner

As you rightly pointed out in the previous PR, the proper path is ~/.config/nwg-drawer/.

@msmafra
Copy link
Contributor Author

msmafra commented Oct 15, 2024

As you rightly pointed out in the previous PR, the proper path is ~/.config/nwg-drawer/.

I forgot o mention that I symlinked to ~/.config/nwg-drawer/ and it finds the file when running nwg-drawer even with the file copied there.

❯ cd ~/.config/nwg-drawer/
~/.config/nwg-drawer
 .682ns fsh ❯ cat excluded-dirs
Applications/
BACKUPS/
Documentos/
Downloads/
Games/
Imagens/
Misc/
Modelos/
Músicas/
Projects/
Público/
sshfs/
Streaming/
Vídeos/

❯ nwg-drawer -r
INFO[0000] term: xterm-256color
INFO[0000] lang: pt_BR
INFO[0000] Config dir: /home/coop/.config/nwg-drawer
INFO[0000] Data dir: /usr/share/nwg-drawer
INFO[0000] Found 0 pinned items
INFO[0000] Data dir: /usr/share/nwg-drawer
INFO[0000] Found 203 desktop files
INFO[0000] Skipped 5 duplicates; 88 .desktop entries hidden by "NoDisplay=true"
INFO[0000] Found 6 associations in /home/coop/.config/nwg-drawer/preferred-apps.json
INFO[0000] Found 14 search exclusions in /home/coop/.config/nwg-drawer/excluded-dirs
INFO[0000] Preferring dark theme variants
INFO[0000] Using style from /home/coop/.config/nwg-drawer/drawer.css
INFO[0000] Setting GTK layer shell keyboard mode to default: exclusive
INFO[0000] Using XDG user dirs from /home/coop/.config/user-dirs.dirs
INFO[0000] UI created in 262 ms. Thank you for your patience.

Screenshot-241015_084009

@nwg-piotr
Copy link
Owner

nwg-piotr commented Oct 15, 2024

Try removing trailing slashes. Also: the walk function does not follow symlinks, if I remember well.

@msmafra
Copy link
Contributor Author

msmafra commented Oct 15, 2024

Try removing trailing slashes.

The same result. WHen I type steam, for example, it keeps showing results from Documentos, Downloads, Músicas and Imagens. Músicas, for some reason, it just shows the folder not the files or folders that contain the searched term.

Screenshot-241015_100244

@nwg-piotr
Copy link
Owner

Sorry, no idea. It just works on my side.

@msmafra
Copy link
Contributor Author

msmafra commented Oct 25, 2024

I'll use the -nofs parameter, instead of filtering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants