remove surround_quotes() due to bash issues

pull/252/head
William Ting 11 years ago
parent 5f8be97861
commit c4feb1a2b2

@ -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

@ -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):

Loading…
Cancel
Save