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

increasing the size of autojump's memory? #527

Closed
dfaure-kdab opened this issue Apr 5, 2018 · 4 comments
Closed

increasing the size of autojump's memory? #527

dfaure-kdab opened this issue Apr 5, 2018 · 4 comments

Comments

@dfaure-kdab
Copy link

I assume autojump uses a LRU data structure internally with a maximum size? Or does it grow to infinity?

In the first case, where can I see and adjust the size of autojump's memory?

My actual problem is that it keeps forgetting directories that I went to. But I don't know yet if it's a bug (related to the zsh integration, probably?) or if it's just that I navigate to very many directories so it forgets the "old" ones.

@charlieegan3
Copy link

I'm having the same issue on bash. It never seems to go above 8 in j --stat

@wting
Copy link
Owner

wting commented Apr 24, 2018

It grows infinitely. Try this out:

$ j -s | grep number
$ autojump --add /random_entry
$ j -s | grep number

The number of entries should increase by 1 after manually adding an new entry.

@dfaure-kdab
Copy link
Author

Then the bug is that the whole database gets wiped out sometimes, or some entries disappear. I have 63 entries right now, while I had 93 a few days ago.

@wting
Copy link
Owner

wting commented Sep 7, 2018

The DB has a race condition that leads to it getting wiped out. 😞

Marking as a dupe of #391.

@wting wting closed this as completed Sep 7, 2018
@wting wting added the duplicate label Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants