Opened 6 years ago

Closed 6 years ago

#56762 closed enhancement (fixed)

todotxt @2.11.0: custom command breaks zsh completion script

Reported by: woutgg (Wouter R.) Owned by: nerdling (Jeremy Lavergne)
Priority: Low Milestone:
Component: ports Version: 2.5.2
Keywords: Cc:
Port: todotxt zsh

Description

The todo.sh command completion script provided by zsh has hardcoded invocations of the command todo.sh to obtain, for instance, context names (see the script here). Since this port only provides the command todotxt, those completions do not work. For example, this completion scenario is currently broken: todotxt add <TAB>.

As a quick fix, I created a symlink in a path known to the completion system, but it would be nicer to have this work out of the box.
I'm not really sure how though, it's not something that should be patched in the zsh port I suppose. Perhaps todotxt could have a variant that also installs the command 'todo.sh'?

Change History (5)

comment:1 Changed 6 years ago by nerdling (Jeremy Lavergne)

Owner: set to nerdling
Status: newaccepted

I think it's reasonable to implement the symlink as part of todotxt.

comment:2 Changed 6 years ago by nerdling (Jeremy Lavergne)

Cc: nerdling removed

comment:3 Changed 6 years ago by woutgg (Wouter R.)

See https://github.com/macports/macports-ports/pull/2136.

I have also fixed some issues with the Portfile but will create a separate PR/ticket for that.

comment:4 Changed 6 years ago by Wouter R <gennerate@…>

In 9d659f960ba7d0c1632f6f9eb6a8bfbbee9ce6e4/macports-ports (master):

todotxt: install symlinked command name todo.sh.

Addresses [issue 56762](#56762).

comment:5 Changed 6 years ago by nerdling (Jeremy Lavergne)

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.