jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
19.11k stars 760 forks source link

Can't get jump to command or autojump plugin to work #1772

Closed slferris closed 10 months ago

slferris commented 10 months ago

Environment details (Put x in the checkbox along with the information)

Exact steps to reproduce the issue

I type capital J to get "jump to" command line. Command line says "jump (+n/-n/n):" I assume that means enter a pathname, although the +n and -n are not clear to me. I enter a relative or absolute pathname, such as /Users/. Nothing happens. So I try invoking the plugin autojump. This takes me to iTerm2. The command line there reads "jump to:' I type an absolute path. iTerm2 takes me back to nnn to the point where I started, not to the point I want to jump to.

slferris commented 10 months ago

I notice that homebrew has an autojump binary. Could that be causing some confusion for nnn autojump?

7ocb commented 10 months ago

@slferris I think that "jump to" is "jump to entry number N", so if you want to jump to entry number 100 in listing you do "jump to" and enter 100. If you want to jump 100 items forward, do "+100", and "-100" if 100 items backwards. May be useful in case of really long listings, I guess.

autojump I think is some kind of "shortcutting cd" not the "cd by full path".

The functionality you are searching can be achieved with plugin like mentioned in this comment I think.

jarun commented 10 months ago

@7ocb your explanation of "jump to" is correct.