From bd49170600617ef07f1236b9a90a4f32e7497550 Mon Sep 17 00:00:00 2001 From: dahlo Date: Wed, 7 Feb 2024 11:54:51 +0100 Subject: [PATCH] Added expansion of ~ to tab completion function. --- darsync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/darsync.py b/darsync.py index 0cb4703..817d9a8 100755 --- a/darsync.py +++ b/darsync.py @@ -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)