davatorium / rofi

Rofi: A window switcher, application launcher and dmenu replacement
https://davatorium.github.io/rofi/
Other
13.07k stars 608 forks source link

[dmenu] - option to select all, invert selection and deselect all #666

Open carnager opened 7 years ago

carnager commented 7 years ago

rofi allows to select multiple lines, which then can be used in a loop. It would be nice if the user could somehow select all visible lines (e.g. after filtering down the list)

To make this even more useful an option to invert the selection and deselect everything would be nice to to have.

DaveDavenport commented 7 years ago

Suggestions for default keybinding?

carnager commented 6 years ago

oops, sorry haven't seen this. To keep related bindings close to another, maybe Alt+a (all), Alt+s (switch/invert) and alt+d (deselect) seem reasonable?

ttygde commented 5 years ago

surprised it is not implemented yet i want to use rofi to select which files to download in torrent file with aria2 screenshot https://imgur.com/a/mRB9FnB also would be fantastic to be able to select/deselect all filtered items and preselect all items as i most probably want to download everything by the way thanks for this great tool, i use it heavily for many things such as clipboard, passwords and even browser history

DaveDavenport commented 5 years ago

surprised it is not implemented yet

Why?

ttygde commented 5 years ago

i started writing the code assuming it is basic functionality given that there is multi select mode available suppose it shouldnt be difficult to implement sorry if my words sound too demanding but would be great to have this feature

DaveDavenport commented 5 years ago

I was just curious about the statement.

imho: The multi-selection thing is already a weird-functionality. As it is very specific to dmenu mode and is functionality not supported/used anywhere else in rofi. It currently high-jacks a keybinding to do its function and has a hack to draw the selection icon.

Adding the above bindings is not trivial, as:

Personally I am unsure how advanced the 'dmenu' mode should be? At what point is it better to have a separate tool (with a better interface for this) instead of something added to an application launcher.

ttygde commented 5 years ago

i see agreed that multi-selection is weird but if we can already select multiple items it's logical to have a keybinding for that anyway you know how it works, it is up to you to decide