Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic autocomplete for zsh #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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.

None yet

1 participant