Skip to content

Commit

Permalink
Removed tab completion only for folder names. Will now match files also.
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlo committed Feb 7, 2024
1 parent bd49170 commit df0b213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darsync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit df0b213

Please sign in to comment.