Skip to content

Basic autocomplete for zsh#172

Open
aljazerzen wants to merge 1 commit intosachaos:masterfrom
aljazerzen:master
Open

Basic autocomplete for zsh#172
aljazerzen wants to merge 1 commit intosachaos:masterfrom
aljazerzen:master

Conversation

@aljazerzen
Copy link

Hey @sachaos!

For my own utility I have added autocomplete for zsh which can complete task ids.

➜  todoist close <TAB>
5403125414  -- p4  #Inbox  task 1
5427978770  -- p4  #Inbox  task 2
5427978970  -- p4  #Inbox  task 3
5427979275  -- p4  #Inbox  task 4
5431762171  -- p4  #Inbox  task 5
5431762310  -- p4  #Inbox  task 6

It is not ready for general usage, because it suggests all options go cli provides for first option and tasks for the second.

So if you do

➜  todoist --csv <TAB>
5403125414  -- p4  #Inbox  task 1
5427978770  -- p4  #Inbox  task 2
5427978970  -- p4  #Inbox  task 3

you will also get tasks instead of commands.

Zsh autocomplete is smarter than this, but its a start.

@aljazerzen
Copy link
Author

This is a start for implementing #126

@aljazerzen aljazerzen changed the title basic autocomplete for zsh Basic autocomplete for zsh Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant