Skip to content

Conversation

@EmilyGraceSeville7cf
Copy link
Contributor

@EmilyGraceSeville7cf EmilyGraceSeville7cf commented Sep 14, 2024

Description

Add completions for: termux-*.

Fixes issue #

Features

  • Positional and option arguments are completed in cases documentation clearly states what valid values are
  • Default values for switches are suggested
  • File completion is disabled where appropriate

Progress

  • Completions are created for all Termux commands where help page includes at least one positional argument or switch
  • Completion descriptions are standardized
  • Code is refactored

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

@EmilyGraceSeville7cf EmilyGraceSeville7cf marked this pull request as draft September 14, 2024 23:14
@EmilyGraceSeville7cf EmilyGraceSeville7cf marked this pull request as ready for review September 16, 2024 21:25
@EmilyGraceSeville7cf EmilyGraceSeville7cf marked this pull request as draft September 17, 2024 17:36
@EmilyGraceSeville7cf EmilyGraceSeville7cf marked this pull request as ready for review September 29, 2024 14:42
@EmilyGraceSeville7cf EmilyGraceSeville7cf marked this pull request as draft September 29, 2024 14:50
@EmilyGraceSeville7cf EmilyGraceSeville7cf marked this pull request as ready for review September 29, 2024 15:45
function __fish_termux_api__complete_group_ids
set -l command termux-notification-list
set ids ($command | jq --raw-output '.[].group')
set titles ($command | jq --raw-output '.[].title')
Copy link
Member

@faho faho Nov 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jq is not guaranteed to be installed, so you would have to check if it is available first.

It's also pretty slow - we've sped up our json reading by using python instead (which would also need to be checked, use __fish_anypython)

And this $command is useless, please just call the command directly.

@faho
Copy link
Member

faho commented Mar 16, 2025

Alright, I'm going to be closing these because there are unaddressed concerns.

@faho faho closed this Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants