pop-os / launcher

Modular IPC-based desktop launcher service
Mozilla Public License 2.0
228 stars 45 forks source link

[Suggestion] Use a query that begins with "." to start file navigation from the home folder #104

Closed mijorus closed 1 year ago

mijorus commented 2 years ago

Why?

I think file navigation autocomplete is a very cool feature, but there are some "problems" that prevent me from using it:

  1. Most of the time, I'm searching for something in the home folder, which requires pressing 3 buttons just enable it (shift + ~ and /)
  2. An italian keyboard does not have the ~ key, making it even harder as I need to press like 4 buttons before I can get there.

My suggestion would be to use something like "." to trigger file navigation from the home folder, which is generally easier to reach on any keyboard layout.

oknozor commented 2 years ago

Hey @mijorus you can do it by modifying the files plugin configuration. It's either located in $HOME/.local/share/pop-launcher/plugins/files/plugin.ron or /usr/lib//pop-launcher/plugins/files/plugin.ron depending on how you installed pop-launcher.

All you need is to adjust the regex to regex: "^(.).*"

Edit: the regex does not work but you get the idea

mijorus commented 2 years ago

The regex you proposed matches any character, the correct one would be ^(\.).* (which does not work either 😔)