gwsw / less

Less - text pager
http://greenwoodsoftware.com/less
Other
530 stars 85 forks source link

Use TAB in -- command to complete partial option name #531

Open gwsw opened 4 weeks ago

gwsw commented 4 weeks ago

When setting options with long names, it would be nice to not have to type the whole name. TAB could cycle through option names in the -- command, similar to the way it works on filenames in the :e command.

polluks commented 3 weeks ago

Warp has already partial supported completion for less https://docs.warp.dev/features/command-completions/completions#supported-completion-specs

gwsw commented 3 weeks ago

Thanks. To be clear, this issue is about adding TAB completion to the -- command inside less, not to the shell, since less cannot affect how the user's shell behaves.

polluks commented 3 weeks ago

Warp is not another shell, but a "modern, Rust-based terminal with AI built. Completions will suggest commands, option names, and path parameters". 2024: I don't know how this works, it's AI.

gwsw commented 2 weeks ago

Implemented in f800e8c36ea2efec420988eeb9aed447b18387b1 in the post659 branch.