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

gum choose: Keybindings to invert selection #781

Open
lwbt opened this issue Dec 15, 2024 · 2 comments
Open

gum choose: Keybindings to invert selection #781

lwbt opened this issue Dec 15, 2024 · 2 comments

Comments

@lwbt
Copy link

lwbt commented Dec 15, 2024

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
I'd like to have keybindings to invert (e.g. i) a selection in gum choose and to have these keybindings documented in a way that I don't need to read the source code itself (requiring understanding of how the code works).

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
#388 added the shortcut to select all or none, but my FR for a shortcut to invert was overlooked.

@caarlos0
Copy link
Member

what the advantage of having invert selection vs select all?

it seems to me that:

  • if you had invert selection, you would select the few items you don't want, then invert
  • with select all, you select all, then uncheck the unwanted items

seems the same amount of keystrokes? what am I missing?

@lwbt
Copy link
Author

lwbt commented Dec 17, 2024

It has been some time since I filed the initial FR. At first sight it looks like personal preference, even to me.

  • with select all, you select all, then uncheck the unwanted items

That's correct for cases when you already know what you want. Rational use-cases.

On second thought my reasoning must have been that you start to look through a list of items, mark a few and only later realize that you need the opposite of this selection (irrational use-case if you so will, sorry if this triggers some people). Or you are in some kind of explorative / indecisive state and switch back and forth between normal and inverted until you make a decision. I sometimes find myself in such situations and I am grateful when the software has an option to perform a simple(?) inversion. I thought Gnome Nautilus / Files is one of such programs that does this, but it doesn't. Rather unrelated to this are the invert options in Gimp.

Feel free to close it if it is too complicated to implement and maintain.

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