less icon indicating copy to clipboard operation
less copied to clipboard

Use TAB in -- command to complete partial option name

Open gwsw opened this issue 1 year ago • 4 comments

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.

gwsw avatar Jun 18 '24 19:06 gwsw

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

polluks avatar Jun 19 '24 11:06 polluks

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.

gwsw avatar Jun 20 '24 02:06 gwsw

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.

polluks avatar Jun 21 '24 09:06 polluks

Implemented in f800e8c36ea2efec420988eeb9aed447b18387b1 in the post659 branch.

gwsw avatar Jun 26 '24 20:06 gwsw