Replies: 2 comments
-
Oh, wow, I figured out the The question about validation remains: does this whole approach align with the project's goals or it should be done in some other way, maybe not even in the NNN's source code? |
Beta Was this translation helpful? Give feedback.
-
Here is basically a use case for opening a file by pressing
It somewhat answers the original question, but I should figure out whether would the new behavior of picking files by pressing |
Beta Was this translation helpful? Give feedback.
-
When using NNN inside vim either with
mcchrish/nnn.vim
or withluukvbaal/nnn.nvim
, I'm having a frustrating experience, because I used to open files withl
or right arrow. But in a picker mode NNN does not select the file for the vim plugin to open, instead it actually opens it with whatever configured to open files of the type of selected file.With
mcchrish/nnn.vim
plugin I've been using the following configuration line for nvim for 9 month or so:Then the plugin does it's job: it opens files by pressing
l
, but this approach sucks, because when I try to filter files with/
inside NNN and hitl
while typing the file name, that contains the letterl
, it picks the first file in the filtered list while I am still typing the name. That's a bit of inconvenience here.Recently I decided to give a try to
luukvbaal/nnn.nvim
but I did not found a way to make it select files by pressingl
. The attempt to figure it out led me right down to NNN source code where I ended up with a solution:It works perfectly and I would like to submit it by opening a PR, but there is another place in the source code above it, under the
#ifndef NOFIFO
, that looks similar. The functionality implemented there can probably benefit from addingsel == SEL_NAV_IN
too, but I am completely unaware of whatfifomode
is (except that it is activated by-F1
option) and what is the use case of it. My confusion is the reason why I open this discussion.Is this a valid approach at all? Maybe I am missing something, since I am new to the project. And what about
fifomode
? Is it the same thing or is it a different story?Beta Was this translation helpful? Give feedback.
All reactions