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

keyboards without INSERT key #95

Closed
mare-imbrium opened this issue Mar 7, 2018 · 5 comments
Closed

keyboards without INSERT key #95

mare-imbrium opened this issue Mar 7, 2018 · 5 comments

Comments

@mare-imbrium
Copy link

Search as you type is invoked on INSERT key. But many keyboards (bluetooth keyboards) don't have this key. Is there any other alternative to accessing this mode? (I am on Mac OS Sierra). Thanks.

edit: I am aware of the -i flag, and that I can go into this mode by pressing / but then i come out immediately.

I have checked various articles on simulating the INSERT key (such as Fn+ENTER, fn+i, etc but none are working. Could you give another key in addition, something unused, that you don't intend using in the foreseeable future.). I can suggest Ctrl-s but i don't know all the key mappings off-hand.

@jarun
Copy link
Owner

jarun commented Mar 7, 2018

Keys with special meanings (e.g. ^S, ^C, ^Q etc. have issues in certain workflows with ncurses. Can't use those. Can you suggest some other keys?

@mare-imbrium
Copy link
Author

You could use something like +. Or C-y (y from type).

Alternatively, I usually like to have a menu key which pops up various choices. That way you avoid mapping too many keys at the top level. Perhaps you have seen this in mc. Ctrl-x is one option. I often use the tilde as a menu key. I also use = for various toggles (long listing, hidden files, pager/edit mode etc). A submenu pops up with a single key per option.

@jarun
Copy link
Owner

jarun commented Mar 7, 2018

^Y is already in use. I will think of something.

I usually like to have a menu key which pops up various choices

It's a design decision not to use any config file. Hence the permanent settlement. I think people get used to these over time. vi has 100s of more keybinds than nnn. Do you see people change the defaults often? It's just a matter of spending some time playing with it and getting familiar. You can't have this speed and this footprint with every possible customization. And of course, nnn can't be everyone's choice. No utility is.

@mare-imbrium
Copy link
Author

It's a design decision not to use any config file. Hence the permanent settlement.

I am not talking of any config file. I only attach various options to a key. They are preconfigured options. So instead of assigning a key to each option at the highest level, they are assigned at a second level, to save keys and memorising too much. That was just a thought or idea.

I myself don't like over-customization, or having too many features. Best to do a small task and do it well. nnn does a great job at what it does.

@jarun jarun closed this as completed in eddc0c9 Mar 7, 2018
@jarun
Copy link
Owner

jarun commented Mar 7, 2018

I have added ^I as the alternative key.

@lock lock bot locked and limited conversation to collaborators May 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants