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

Inconvenient Owner/Group Selection #1971

Open
faerot opened this issue Jan 24, 2024 · 6 comments
Open

Inconvenient Owner/Group Selection #1971

faerot opened this issue Jan 24, 2024 · 6 comments

Comments

@faerot
Copy link
Contributor

faerot commented Jan 24, 2024

It would be helpful to use typing characters to select necessary menu item fast in pulldown menus.

EXAMPLE: in file attributes popup when you are changing owner or a group there is no way to pick user fast except finding it manually which requires a lot of key presses if there are a lot of users on your system (and usually there are plenty).

Would be great to utilize keys there, i.e. when pressing "R" it jumps to "root", etc.
Maybe make owner/group fields editable and utilize autocomplete like in editor search or something like that?

@akruphi
Copy link
Contributor

akruphi commented Jan 24, 2024

In any lists (including dropdown with users or groups) you can press Ctrl-Alt-F to toggle to filtering mode, shows only items containing the typing text.

@faerot
Copy link
Contributor Author

faerot commented Jan 26, 2024

In any lists (including dropdown with users or groups) you can press Ctrl-Alt-F to toggle to filtering mode, shows only items containing the typing text.

Great feature, thanks for info, but why so stealthy/complicated? Why not auto-enabling it when you start typing there?
I assume this is because some lists might have a hotkeys on their items, but what about:

  1. auto-enabling it on typing when none of the items has hotkeys
  2. auto-enabling it when pressed key has no such hotkey item (this should be easier to implement than 1)

@akruphi
Copy link
Contributor

akruphi commented Jan 26, 2024

This is historical behavior from windows far2 that this feature initial off.
Thank you for idea, after your question I added PR with Ctrl-Alt-F in bottom of list and by F1 show help topic with explanation.

@faerot
Copy link
Contributor Author

faerot commented Jan 29, 2024

This is historical behavior from windows far2 that this feature initial off.

Been using Far since late 199x and didn't knew about it. Is there an option to turn it on by default?

@akruphi
Copy link
Contributor

akruphi commented Feb 4, 2024

Been using Far since late 199x and didn't knew about it.

I'm also knew this feature only from advice in https://t.me/far2l_ru

Is there an option to turn it on by default?

No, you should manually/by macros start filtering.

vmenu code common for menu, list & dropdown list. If filtering will on by default it will inconvenient for many UX.

For example macros suggested by @ivanshatsky for histories:

[KeyMacros/Shell/AltF8]
Sequence=AltF8 CtrlAltF

[KeyMacros/Shell/AltF11]
Sequence=AltF11 CtrlAltF

[KeyMacros/Shell/AltF12]
Sequence=AltF12 CtrlAltF

@faerot
Copy link
Contributor Author

faerot commented Feb 7, 2024

For example macros suggested by @ivanshatsky for histories:

For changing user/group macros won't help, because even if I make separate hotkey which will open file attribute dialog, then
focuses on user drop-down and enables Ctrl+Alt+F, group change has to be done manually and you usually change user and group together, not just user alone, i.e. you have created some file under sudo with root owner/group and want to change both to a regular user.

Personally I think those two fields must be text input boxes like in text search dialog, with history replaced with existing users/groups - that would work the same way as it works now, plus allowing to type necessary user/group name fast.

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