From df0b213402bac05a8798447ef93172a7b3e4dfc8 Mon Sep 17 00:00:00 2001 From: dahlo Date: Wed, 7 Feb 2024 12:41:29 +0100 Subject: [PATCH] Removed tab completion only for folder names. Will now match files also. --- darsync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darsync.py b/darsync.py index 817d9a8..11da02e 100755 --- a/darsync.py +++ b/darsync.py @@ -187,7 +187,7 @@ def complete_path(text, state): dir_path, partial_name = os.path.split(last_arg) # Get a list of possible matches - matches = [f for f in os.listdir(dir_path) if f.startswith(partial_name) and os.path.isdir(os.path.join(dir_path, f))] + matches = [f for f in os.listdir(dir_path) if f.startswith(partial_name)] # If it's the first tab-completion if state == 0: