1
0
mirror of https://github.com/wting/autojump synced 2024-10-27 20:34:07 +00:00
Commit Graph

57 Commits

Author SHA1 Message Date
Joel Schaerer
43d2d94a48 attempt to make autojump more pep8-compliant
(pour les grincheux)
2010-12-23 11:05:20 +01:00
Michael Schout
550c21dc98 fix shbang line so it will find python if not in /usr/bin 2010-12-03 17:39:07 +08:00
Davide Setti
8a24aa89b3 use itemgetter() in sort() instead of a lambda function 2010-11-25 18:53:23 +08:00
Joël Schaerer
929ba399b5 remove old compatibility code since we don't support <2.6 anymore anyways 2010-10-25 15:18:04 +02:00
Joël Schaerer
06f4cba19d 2.x compatibility 2010-10-25 10:06:29 +02:00
Joel Schaerer
19927146dd 2.x compatibility 2010-10-24 11:42:45 +02:00
Joel Schaerer
c25668f4f7 fix for backwards compatibility with 2.x pickles 2010-10-24 11:36:24 +02:00
Joel Schaerer
4d371fad21 try to support both python 3 and python 2
Courtesy of "Guillaum" on linuxfr:
http://linuxfr.org/~Nonolapero/30339.html
2010-10-24 11:30:01 +02:00
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...
2010-09-29 15:22:13 +02:00
Joël Schaerer
a013f8d463 while the db should stay of a reasonable size, we REALLY
don't want autojump to remove paths
2010-08-03 15:09:09 +02:00
Joël Schaerer
4de9c1c311 put the autojump data files in the correct directories.
Existing files should be migrated automatically
2010-07-26 16:24:34 +02:00
Joël Schaerer
64b3b7997c fix nasty bug 2010-07-23 16:26:36 +02:00
Joël Schaerer
0f3a6b4b20 avoid doing the cleanup every time 2010-07-21 16:48:35 +02:00
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
2010-07-21 16:44:43 +02:00
Joël Schaerer
5b0b8f866e more informative jumpstat 2010-07-21 16:02:23 +02:00
Barnaby Gray
91c05b1f8c python 2.4 compatibility 2010-07-20 23:27:44 +08:00
Joel Schaerer
ea3cd60653 make the completion separator configurable 2010-07-07 23:55:32 +02:00
Joel Schaerer
8e1ab9ca54 fix completions for zsh 2010-07-07 23:51:42 +02:00
Joël Schaerer
3fa72536e9 completion now works with multiple patterns!!! 2010-04-27 10:08:07 +02:00
elcerdo
3936e28650 bugfix: pattern was not defined 2010-04-26 18:52:18 +02:00
Joel Schaerer
0e7ef2e721 multiple patterns (thanks amix!) 2010-04-26 01:00:57 +02:00
Joel Schaerer
35836ada8f bugfix 2010-04-26 00:20:55 +02:00
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.
2010-04-25 23:55:18 +02:00
Joel Schaerer
90bdb73a40 minor fixes 2010-04-25 23:38:15 +02:00
Joël Schaerer
c533b2b4fd weird corner cases 2010-01-26 16:47:13 +01:00
Joel Schaerer
2d4e3c8a6c Automatically recover from db corruption. Thanks epall!!! 2009-10-03 20:36:18 +02:00
Joel Schaerer
0ec15907e3 fixes for zsh. Thanks simon!!! 2009-10-03 20:25:16 +02:00
Joel Schaerer
92ef70ffce fix for completion and directories with spaces.
Autojump is really starting to mature :)
2009-09-16 21:45:09 +02:00
Joël Schaerer
eb0f287eb9 use the backup file in case of problems 2009-09-16 16:06:20 +02:00
Joël Schaerer
99d82be473 add backup file 2009-09-16 15:48:58 +02:00
Joel Schaerer
8b4e282a91 avoid saving the file everytime we jump 2009-05-30 10:29:43 +02:00
Joel Schaerer dedibox
278ea9cc01 ok this time it should really work :-/ 2009-05-13 13:28:18 +02:00
Joël Schaerer
621ee1fc7f we should never fsync during completion 2009-05-13 11:53:50 +02:00
Joël Schaerer
6b6bbd4c8b really remove dead directories 2009-05-13 11:49:47 +02:00
Joël Schaerer
2963f1fcea license stuff 2009-05-13 11:32:19 +02:00
Joel Schaerer
3208034466 save the dict in the event of non-existent directories. Thanks "robmaloy"! 2009-04-26 19:48:27 +02:00
Simon Marache-Francisco
e86f8a537d autojump will not remember home dir (may be in conflict with other directory) 2009-03-31 09:48:33 +02:00
Joël Schaerer
51ae7c9293 remove harmless error message 2009-03-17 10:43:40 +01:00
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/) 2009-03-17 10:39:00 +01:00
Joel Schaerer
18447505ee Revert "do the PROMPT_COMMAND in the background for better performance"
This reverts commit 87b188cf12.
2009-03-06 20:43:49 +01:00
Joel Schaerer
87b188cf12 do the PROMPT_COMMAND in the background for better performance 2009-03-06 20:30:11 +01:00
Joël Schaerer
796e2c9048 small bugfix 2009-02-19 10:20:46 +01:00
Joël Schaerer
614cf4d0b4 this should fix the performance problems by limiting the number of calls to match 2009-02-19 10:16:30 +01:00
Joël Schaerer
bcd5476c6d merge autojump_completion into autojump.sh ; fix atomic write ; avoid risk of extreme slowdown by multiple autojumps in prompt command 2009-02-18 15:13:29 +01:00
Joël Schaerer
3d4f8a4d4f fix for directories with spaces 2009-02-18 14:55:50 +01:00
Joël Schaerer
0f457b436d major refactoring to make completion work better 2009-02-18 14:12:13 +01:00
Joël Schaerer
6026f24747 Merge branch 'completion' of git@github.com:joelthelion/autojump into completion 2009-02-16 09:23:23 +01:00
Joel Schaerer
45ef024c20 Better error handling. Thanks Lionel Ott! 2009-02-14 10:28:27 +01:00
Joel Schaerer
81c8e3ea3f still buggy, but I think we are improving 2009-02-14 01:57:49 +01:00
Joel Schaerer
1f2292708a ok this is already a little better 2009-02-14 01:18:11 +01:00