mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
remove surround_quotes() due to bash issues
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user