Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typing j dir in any directory just prints out "." #487

Open
chauzer opened this issue Jun 8, 2017 · 13 comments
Open

typing j dir in any directory just prints out "." #487

chauzer opened this issue Jun 8, 2017 · 13 comments

Comments

@chauzer
Copy link

chauzer commented Jun 8, 2017

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

@vunhan
Copy link

vunhan commented Jun 14, 2017

Use cd to move around some dir first, then type j foo and <TAB>

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

@youngchan919
Copy link

@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 type j aSubDir, it prints out . and does nothing. I am still in the current dir.

@run27017
Copy link

run27017 commented Jul 2, 2017

mark, too.

@nodingneu
Copy link

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

@youngchan919
Copy link

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.

@bendem
Copy link

bendem commented Jul 6, 2017

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.

@nodingneu
Copy link

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

@vunhan
Copy link

vunhan commented Jul 6, 2017

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

@nodingneu
Copy link

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.

@vunhan
Copy link

vunhan commented Jul 7, 2017

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.

@titoesteves
Copy link

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.

@bendem
Copy link

bendem commented Jul 22, 2017

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

@titoesteves
Copy link

titoesteves commented Jul 22, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants