Skip to content

For anyone interested: Fish autocompletions for reminders-cli #61

Open

Description

@kontza
for LINE in (reminders -h|awk '/^SUBCOMMANDS/{flag=1;next}/^ *$/{flag=0}flag')
    set -l COMMAND (echo $LINE|cut -w -f2)
    set -l DESCR (echo $LINE|cut -w -f3-)
    complete -c reminders -a $COMMAND -d "$DESCR"
end
set -l REMINDER_COMMANDS (reminders -h|awk 'BEGIN {ORS=" "}/^SUBCOMMANDS/{flag=1;next}/^ *$/{flag=0}flag{print $1}'|xargs)
set -l REMINDER_LISTS (reminders show-lists|sed -e 's:^:":' -e 's:$:":')
complete -c reminders -n "__fish_seen_subcommand_from $REMINDER_COMMANDS" -a "$REMINDER_LISTS"

Activity

  1. keith commented on May 30, 2023

    @keith
    Owner

    thanks! If you want to submit those we can package them in the homebrew release too, you can see how it works today with the provided zsh completions

  2. kontza commented on Jun 1, 2023

    @kontza
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions