Autojump: typing `j dir` in any directory just prints out "."

Created on 8 Jun 2017  ·  13Comments  ·  Source: wting/autojump

edwinloaner@Edwin-Loaner-MBP13:src$ j
.

i installed autojump via homebrew, and set up my .bash_profile as well. no matter what directory i'm in, when i type j <any dir> it just prints out .

i've tried uninstalling and reinstalling via homebrew

Most helpful comment

It has been in the README for 4 years 5 years now...

All 13 comments

Use cd to move around some dir first, then type j foo and \

autojump will show up last dir you have visited which match with foo

@vunhan No, it doesn't. It reacts nothing at all.
I met the same problem as @chauzer did.
When I type j, it prints out the current dir.
When I typej aSubDir, it prints out . and does nothing. I am still in the current dir.

mark, too.

You need to use cd <directory> before you can j <directory>

Interestingly, after serval days of normal usage without j, I suddenly find that it works well now. Maybe it is referenceable to others on this issue.

if j --stat doesn't show any directory, chances are, you haven't cd'd in enough directories yet. autojump learns from your use of cd, you can't use it before you've done that for a while.

The reason it works now _is because you were using cd_. Seriously are you just ignoring everyone here?

This is not issue anymore.
Hey @wting can you close this issue, and update README?

_Maybe_ j should print something like You must visit directories with cd before you can visit them with j if people try j before it has indexed anything.

Nice idea @theonlygusti
Could you please write down some codes and make a Pull Request?
Sorry, I dont have enough time to contribute to this project.

It may be as simple as updating the README.md with this information(you must visit directories with cd before you can visit them with j). Place it towards the top of the README.md and/or use bold font.

It has been in the README for 4 years 5 years now...

I must have missed that. I am guessing most of the people on this thread and those who come to this issue, did as well. Maybe using bold font to make the statement stand out more will help deter more people reporting this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

loveencounterflow picture loveencounterflow  ·  6Comments

pgrm picture pgrm  ·  4Comments

davux picture davux  ·  9Comments

mbigras picture mbigras  ·  3Comments

shanyutou picture shanyutou  ·  3Comments