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

77 Commits

Author SHA1 Message Date
Joël Schaerer
92b80073fd save the database in sorted form, for easier edition 2011-09-13 15:30:15 +02:00
Joël Schaerer
0ee020c72c (ugly) fixes for python 3 2011-09-12 17:04:37 +02:00
Joël Schaerer
81670c5fbc Try to correct the use of unicode
Since we now use utf-8 internally in the database,
we must convert to and fro from user and filesystem
input and our database. Of course to make things worse,
python 3 completely changed the way python handles unicode.

This is an attempt to do things correctly

Conflicts:

	autojump
2011-09-12 16:42:40 +02:00
Joël Schaerer
0298ef5484 Migration code for the new database format 2011-09-10 20:20:08 +02:00
Joël Schaerer
0b07cf030e Merge branch 'master' into text_format 2011-09-10 19:23:30 +02:00
Joël Schaerer
a4f4472046 Send error message to stderr 2011-09-09 13:04:35 +02:00
Joël Schaerer
b2985f3255 "Eat" paths to avoid multiple patterns matching the same part of the string
example:

if you have /tmp/vv/vv and want to specifically target it, you can now type
j vv vv
and it won't match /tmp/vv.
2011-09-09 13:04:21 +02:00
Joël Schaerer
e1ee172437 attempt to fix completion of weird directory names 2011-09-08 13:52:18 +02:00
Joël Schaerer
3b2276bdb9 attempt to fix completion of weird directory names 2011-09-07 13:24:24 +02:00
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