jez
5d949f4e8a
Use pickle protocol 2.
...
This ensures that autojump works when the default python interpreter is
changed, e.g. by virtualenv.
14 years ago
Joel Schaerer
1bc3440968
avoid overwriting another user's database
...
Should fix issue #39
14 years ago
Joel Schaerer
1bf91d1b25
add an exit status to the autojump main script
14 years ago
Joel Schaerer
006dd5cbec
remove old, unused code
14 years ago
Joel Schaerer
4e579d5f63
more pylint
...
We are good now except for the shell_utility function which needs to be
refactored.
14 years ago
Joel Schaerer
b2e010e69a
this signal handler shouldn't be needed anymore,
...
now that we handle files atomically
14 years ago
Joel Schaerer
ed5b2b2fed
more pylint
14 years ago
Joel Schaerer
43d2d94a48
attempt to make autojump more pep8-compliant
...
(pour les grincheux)
14 years ago
Michael Schout
550c21dc98
fix shbang line so it will find python if not in /usr/bin
14 years ago
Davide Setti
8a24aa89b3
use itemgetter() in sort() instead of a lambda function
14 years ago
Joël Schaerer
929ba399b5
remove old compatibility code since we don't support <2.6 anymore anyways
14 years ago
Joël Schaerer
06f4cba19d
2.x compatibility
14 years ago
Joel Schaerer
19927146dd
2.x compatibility
14 years ago
Joel Schaerer
c25668f4f7
fix for backwards compatibility with 2.x pickles
14 years ago
Joel Schaerer
4d371fad21
try to support both python 3 and python 2
...
Courtesy of "Guillaum" on linuxfr:
http://linuxfr.org/~Nonolapero/30339.html
14 years ago
Joël Schaerer
52f3c84b29
try to make autojump more robust to concurrent uses over network filesystems
...
When your home is on a network filesytems, multiple shells can try
to write to the autojump store concurrently. The previous system was
a bit dangerous since the name of the temp file was always the same.
This should be better, since the different autojump instances should
all write to different temporaries, and only the atomic rename() should
be concurrent. Time will tell...
14 years ago
Joël Schaerer
a013f8d463
while the db should stay of a reasonable size, we REALLY
...
don't want autojump to remove paths
14 years ago
Joël Schaerer
4de9c1c311
put the autojump data files in the correct directories.
...
Existing files should be migrated automatically
14 years ago
Joël Schaerer
64b3b7997c
fix nasty bug
14 years ago
Joël Schaerer
0f3a6b4b20
avoid doing the cleanup every time
14 years ago
Joël Schaerer
1be62c7ad2
don't remove non-existent paths, keep the db small
...
Change the way we keep the database under a reasonable size, to better support removable drives
Instead of removing non-existent paths, keep the 300 more recent directories
14 years ago
Joël Schaerer
5b0b8f866e
more informative jumpstat
14 years ago
Barnaby Gray
91c05b1f8c
python 2.4 compatibility
14 years ago
Joel Schaerer
ea3cd60653
make the completion separator configurable
14 years ago
Joel Schaerer
8e1ab9ca54
fix completions for zsh
14 years ago
Joël Schaerer
3fa72536e9
completion now works with multiple patterns!!!
15 years ago
elcerdo
3936e28650
bugfix: pattern was not defined
15 years ago
Joel Schaerer
0e7ef2e721
multiple patterns (thanks amix!)
15 years ago
Joel Schaerer
35836ada8f
bugfix
15 years ago
Joel Schaerer
3b5b52d610
disable regexes
...
Rationale: regexes in the dirspec break autojump for weird directory
names like "c++". In more than one year of use, I've never even been
tempted to use a regexp with autojump. So I think it is safe to remove
this feature. If enough users shout, I will revert this change.
15 years ago
Joel Schaerer
90bdb73a40
minor fixes
15 years ago
Joël Schaerer
c533b2b4fd
weird corner cases
15 years ago
Joel Schaerer
2d4e3c8a6c
Automatically recover from db corruption. Thanks epall!!!
15 years ago
Joel Schaerer
0ec15907e3
fixes for zsh. Thanks simon!!!
15 years ago
Joel Schaerer
92ef70ffce
fix for completion and directories with spaces.
...
Autojump is really starting to mature :)
15 years ago
Joël Schaerer
eb0f287eb9
use the backup file in case of problems
15 years ago
Joël Schaerer
99d82be473
add backup file
15 years ago
Joel Schaerer
8b4e282a91
avoid saving the file everytime we jump
16 years ago
Joel Schaerer dedibox
278ea9cc01
ok this time it should really work :-/
16 years ago
Joël Schaerer
621ee1fc7f
we should never fsync during completion
16 years ago
Joël Schaerer
6b6bbd4c8b
really remove dead directories
16 years ago
Joël Schaerer
2963f1fcea
license stuff
16 years ago
Joel Schaerer
3208034466
save the dict in the event of non-existent directories. Thanks "robmaloy"!
16 years ago
Simon Marache-Francisco
e86f8a537d
autojump will not remember home dir (may be in conflict with other directory)
16 years ago
Joël Schaerer
51ae7c9293
remove harmless error message
16 years ago
Joël Schaerer
3bd45e5304
according to T'so, this is the correct way to do atomic writes in a file ( http://thunk.org/tytso/blog/2009/03/15/dont-fear-the-fsync/ )
16 years ago
Joel Schaerer
18447505ee
Revert "do the PROMPT_COMMAND in the background for better performance"
...
This reverts commit 87b188cf12
.
16 years ago
Joel Schaerer
87b188cf12
do the PROMPT_COMMAND in the background for better performance
16 years ago
Joël Schaerer
796e2c9048
small bugfix
16 years ago
Joël Schaerer
614cf4d0b4
this should fix the performance problems by limiting the number of calls to match
16 years ago