mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
remove surround_quotes() due to bash issues
This commit is contained in:
parent
5f8be97861
commit
c4feb1a2b2
@ -55,7 +55,6 @@ from autojump_utils import last
|
|||||||
from autojump_utils import print_entry
|
from autojump_utils import print_entry
|
||||||
from autojump_utils import print_tab_menu
|
from autojump_utils import print_tab_menu
|
||||||
from autojump_utils import sanitize
|
from autojump_utils import sanitize
|
||||||
from autojump_utils import surround_quotes
|
|
||||||
from autojump_utils import take
|
from autojump_utils import take
|
||||||
|
|
||||||
VERSION = '22.0.0-alpha'
|
VERSION = '22.0.0-alpha'
|
||||||
@ -190,7 +189,7 @@ def handle_tab_completion(needle, entries):
|
|||||||
|
|
||||||
if path:
|
if path:
|
||||||
# found complete tab completion entry
|
# found complete tab completion entry
|
||||||
print(encode_local(surround_quotes(path)))
|
print(encode_local(path))
|
||||||
elif tab_needle:
|
elif tab_needle:
|
||||||
# found partial tab completion entry
|
# found partial tab completion entry
|
||||||
print_tab_menu(
|
print_tab_menu(
|
||||||
@ -368,10 +367,9 @@ def main(args):
|
|||||||
|
|
||||||
if path:
|
if path:
|
||||||
# found complete tab completion entry
|
# found complete tab completion entry
|
||||||
print(encode_local(surround_quotes(path)))
|
print(encode_local(path))
|
||||||
else:
|
else:
|
||||||
print(encode_local(surround_quotes(
|
print(encode_local(first(find_matches(entries, needles)).path))
|
||||||
first(find_matches(entries, needles))).path))
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
@ -162,13 +162,13 @@ def print_tab_menu(needle, tab_entries, separator):
|
|||||||
on subsequent calls.
|
on subsequent calls.
|
||||||
"""
|
"""
|
||||||
for i, entry in enumerate(tab_entries):
|
for i, entry in enumerate(tab_entries):
|
||||||
print(encode_local(surround_quotes(
|
print(encode_local(
|
||||||
'%s%s%d%s%s' % (
|
'%s%s%d%s%s' % (
|
||||||
needle,
|
needle,
|
||||||
separator,
|
separator,
|
||||||
i + 1,
|
i + 1,
|
||||||
separator,
|
separator,
|
||||||
entry.path))))
|
entry.path)))
|
||||||
|
|
||||||
|
|
||||||
def sanitize(directories):
|
def sanitize(directories):
|
||||||
|
Loading…
Reference in New Issue
Block a user