diff --git a/bin/autojump b/bin/autojump index af06a19..399fed8 100755 --- a/bin/autojump +++ b/bin/autojump @@ -55,7 +55,6 @@ from autojump_utils import last from autojump_utils import print_entry from autojump_utils import print_tab_menu from autojump_utils import sanitize -from autojump_utils import surround_quotes from autojump_utils import take VERSION = '22.0.0-alpha' @@ -190,7 +189,7 @@ def handle_tab_completion(needle, entries): if path: # found complete tab completion entry - print(encode_local(surround_quotes(path))) + print(encode_local(path)) elif tab_needle: # found partial tab completion entry print_tab_menu( @@ -368,10 +367,9 @@ def main(args): if path: # found complete tab completion entry - print(encode_local(surround_quotes(path))) + print(encode_local(path)) else: - print(encode_local(surround_quotes( - first(find_matches(entries, needles))).path)) + print(encode_local(first(find_matches(entries, needles)).path)) return 0 diff --git a/bin/autojump_utils.py b/bin/autojump_utils.py index a29ad68..5221892 100644 --- a/bin/autojump_utils.py +++ b/bin/autojump_utils.py @@ -162,13 +162,13 @@ def print_tab_menu(needle, tab_entries, separator): on subsequent calls. """ for i, entry in enumerate(tab_entries): - print(encode_local(surround_quotes( + print(encode_local( '%s%s%d%s%s' % ( needle, separator, i + 1, separator, - entry.path)))) + entry.path))) def sanitize(directories):