wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.3k stars 706 forks source link

deterministic autojump #315

Open arolle opened 10 years ago

arolle commented 10 years ago

I’d like to see autojump being deterministic. An Example, what this means: Assume (as in the wiki) the following stats

96.9:   /home/joel/workspace/autojump
141.8:  /home/joel/workspace/vv

after j work the current working directory is /home/joel/workspace/vv. Entering j work again thereafter one would jump to /home/joel/workspace/autojump. I’d prefer to always be jumped to the same directory, even though it yet is the present working directory.

blueyed commented 10 years ago

This could be achieves by some extra option (and maybe an alias for it).

You could then use this option for your own alias.

wting commented 10 years ago

I'm not inclined to change this since I find the current behavior useful.

ctwise commented 10 years ago

The problem is with the 'jo' command. When you're sitting in one of the "known" directories and use the 'jo' command (e.g., 'jo current-dir'), it will open a file manager on the other known directory.

Please add a deterministic flag so it doesn't jump between directories. The 'jo' and 'jco' aliases will thank you.