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.
Leaking vars into the user's zsh env is not good, esp. when the var
refs a directory -- zsh may then interpret it as a named directory
ref and use it in prompts, for e.g.
When starting jumpapplet without an earlier config file, it raises an UnboundLocalError
tparker@shostakovich:[~/data/src/autojump] ./jumpapplet
loading settings
no config file
Traceback (most recent call last):
File "./jumpapplet", line 93, in popup
paths=load_paths(maxpath=defaults["maxpath"])
File "./jumpapplet", line 54, in load_paths
path_dict=path_dict.items()
UnboundLocalError: local variable 'path_dict' referenced before assignment
This patch fixes that
Signed-off-by: Pierre Gueth <georges.wbushjr@laposte.net>
Signed-off-by: Joel Schaerer <joelthelion@laposte.net>
When starting jumpapplet without an earlier config file, it raises an UnboundLocalError
tparker@shostakovich:[~/data/src/autojump] ./jumpapplet
loading settings
no config file
Traceback (most recent call last):
File "./jumpapplet", line 93, in popup
paths=load_paths(maxpath=defaults["maxpath"])
File "./jumpapplet", line 54, in load_paths
path_dict=path_dict.items()
UnboundLocalError: local variable 'path_dict' referenced before assignment
This patch fixes that
Signed-off-by: Pierre Gueth <georges.wbushjr@laposte.net>
Now uses preexec_functions to execute autojump's preexec.
This prevents clobbering of preexec in case its already set.
Signed-off-by: Joel Schaerer <joelthelion@laposte.net>