1
0
mirror of https://github.com/wting/autojump synced 2024-09-28 22:10:45 +00:00
Commit Graph

68 Commits

Author SHA1 Message Date
Joël Schaerer
01179b86f4 use a text format for the path file, for easy edition
Still needs a migration script
2011-09-06 14:21:59 +00:00
Joël Schaerer
c41771e2f2 Merge branch 'contrib/xdg-base-directory' of git://git.ortolo.eu/pkg-autojump into tanguy
Conflicts:

	autojump.bash
	jumpapplet

This should correctly merge Tanguy's XDG changes (thanks!) into the new
codebase.
2011-08-26 15:59:02 +02:00
Joel Schaerer
48d2e68f4e attempt fixing jumpapplet, even though I think nobody uses it :) 2011-08-19 11:22:12 +02:00
Tanguy Ortolo
07ad27b583 Let autojump follow the XDG Base Directory Spec.
It now uses $AUTOJUMP_HOME if set, else $XDG_DATA_HOME/autojump if set,
else ~/.local/share/autojump.
2011-07-24 21:16:36 +02:00
jez
5d949f4e8a Use pickle protocol 2.
This ensures that autojump works when the default python interpreter is
changed, e.g. by virtualenv.
2011-06-02 00:33:28 +00:00
Joel Schaerer
1bc3440968 avoid overwriting another user's database
Should fix issue #39
2011-03-30 20:03:38 +02:00
Joel Schaerer
1bf91d1b25 add an exit status to the autojump main script 2011-02-07 22:48:19 +01:00
Joel Schaerer
006dd5cbec remove old, unused code 2011-01-09 12:04:22 +01:00
Joel Schaerer
4e579d5f63 more pylint
We are good now except for the shell_utility function which needs to be
refactored.
2011-01-04 21:00:59 +01:00
Joel Schaerer
b2e010e69a this signal handler shouldn't be needed anymore,
now that we handle files atomically
2011-01-03 23:24:22 +01:00
Joel Schaerer
ed5b2b2fed more pylint 2011-01-03 23:23:26 +01:00
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