4 ms·
> It OPENS the file. Oh, don't worry! I can drop an env var to disable the right-> open file thing. However, all dirs are listed on top separately and in a cl
by apjana 8y ago
> It OPENS the file.
Oh, don't worry! I can drop an env var to disable the right-> open file thing.
However, all dirs are listed on top separately and in a clearly different color. How often are you ending up pressing the right on a file? I am surprised because `nnn` has many users and no one ever mentioned this as an issue before!
- throwaway053934 8y agoThanks. I look forward to give nnn another spin then. While you're at it, please add more customization for mapping keys to operations. Nothing heavy, just a bit of freedom for the most used operations. (e.g. customizing the key for the 'preview in PAGER' would be great!) Also, I guess I owe you a bit of an apology: today I noticed noice has the same behavior and you simply carried it forward in nnn when you forked it (in the header, all those keys mapping to SEL_GOIN). So if there is a blame, it should be shared with the original design. > dirs ... in a clearly different color Hey, unless you launch nnn -c 10 I guess ? ;-) Or nnn -l -c 10 and there is even less to distinguish them other than that slash. > How often are you Maybe it's the file hierarchy on my machine, but I end up a lot, somehow. One easy example is a deeper path ending with, say, an .odt or .xcf as first entry in the last, leaf directory, e.g. a/b/c/d/e/bigfile.xcf; oops! one extra l and the gimp or libre office start up (for fun, try that on a RPi ;-) As someone else mentioned in the discussion, the intuition is that going up and down the SAME path will take you to the SAME positions in each directory: the example given was "/a/b/c/d -> /a/b/c -> /a/b -> /a/b/c -> /a/b/c/d;". That is not the case in noice/nnn and it can trip you off. To make it more clear, consider this tree: tmp/a/1b/huge.odt tmp/a/2b/c/some_other_stuff You are inside 'c'; you quickly go up 3 levels ('hhh') to glance at the content of 'tmp'; then you go back down 3 levels by quickly tapping 'lll', intuitively expecting to end up in the same place, inside 'c'; instead you'll go in 'a', but then in '1b' on the 'huge.odt' file , then the 3rd l launches libre office... > many users and no one ever mentioned selection bias or how do you call this effect ? People that are bothered by this simply moved away and didn't mention a thing ? Anyway, thanks again.