Skip to content

Commit

Permalink
Added expansion of ~ to tab completion function.
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlo committed Feb 7, 2024
1 parent 84bcae3 commit bd49170
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions darsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def msg(id, lang='en', **kwargs):
def complete_path(text, state):
# Get the current input text
line = readline.get_line_buffer()
# Expand any home folder tildes
line = os.path.expanduser(line)
# Split the line into individual arguments
args = line.split()
# Get the last argument (the one being completed)
Expand Down

0 comments on commit bd49170

Please sign in to comment.