William Ting
079abfdbe6
Fix default autojump behavior when run with 0 arguments.
2012-04-07 04:43:59 -10:00
William Ting
25d1b9cf92
Fixes #113 , #115 , refactor autojump to use argparse over optparse.
2012-04-07 04:21:07 -10:00
William Ting
9147d6cf71
First version of argparse implemented
2012-04-07 04:14:19 -10:00
Joël Schaerer
9ec542ee17
More helpful error message
2012-02-08 08:03:44 +01:00
William Ting
a17abd3459
abort save if disk error writing temp file
2012-02-07 17:07:28 -10:00
William Ting
04357595e2
remove some trailing whitespace, change root test to check for UID instead of whoami
2012-01-13 11:05:43 -10:00
Joël Schaerer
db4ad6f049
version numbering
2011-12-11 13:17:03 +01:00
Joël Schaerer
0ce5845da7
version numbering
2011-11-18 14:27:51 +01:00
Joël Schaerer
27617eb64f
cosmetic changes
2011-09-27 15:47:24 +02:00
Joël Schaerer
4e3d55f9d0
Merge remote-tracking branch 'xiaonaitong/master' into windows
2011-09-27 15:42:55 +02:00
Joël Schaerer
8bc532c42f
Merge remote-tracking branch 'jkuan/git_version' into version_info
...
Conflicts:
autojump
2011-09-24 11:36:32 +02:00
xiaonaitong
e5e0001dad
fix completion error when path contain spaces
...
add comment to explain that there is no need to check previlege in windows
2011-09-21 19:10:11 +08:00
xiaonaitong
d1a38d150e
don't need temp file
2011-09-21 10:26:49 +08:00
xiaonaitong
f403a4b529
Merge remote branch 'joelthelion/master'
...
Conflicts:
autojump
2011-09-20 06:40:50 -06:00
Johnny Kuan
f438372616
add version and help options
2011-09-15 23:20:50 -07:00
Joël Schaerer
c2bd900989
try to avoid hammering the filesystem
...
This significantly improves performance on a loaded machine
2011-09-15 17:08:55 +02:00
xiaonaitong
d9a423370a
redo previlege check except in windows
2011-09-15 16:05:51 +08:00
xiaonaitong
a6410994c2
quick fix so thant it works on mingw and bash 3.1
2011-09-14 13:56:30 +08:00
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