Skip to content

Conversation

soifou
Copy link
Collaborator

@soifou soifou commented Aug 7, 2025

Improve completion support for special characters %, # and #n as defined in :h cmdline-special. Provide candidate suggestions when chaining filename modifiers (e.g. :h, :p) as described in :h filename-modifiers.

Closes #2068


Demo

2025-08-07_19-48-00.mp4

@soifou
Copy link
Collaborator Author

soifou commented Aug 7, 2025

Feedback and suggestions welcome! That was kind of a PITA to implement correctly. I don’t claim to handle all the edge cases, but this version works relatively well so far.

Also did a small refactor to move all utility functions to their own module.

@soifou soifou force-pushed the feat/cmdline-modifiers branch from d1d9596 to 92daaaa Compare August 12, 2025 08:28
@soifou soifou force-pushed the feat/cmdline-modifiers branch from ccc381b to 8cd3740 Compare August 30, 2025 10:09
Improve completion support for special characters `%`, `#` and `#n` as
defined in :h cmdline-special. Provide candidate suggestions when
chaining filename modifiers (e.g. :h, :p) as described in :h
filename-modifiers.

Closes #2068
@soifou soifou force-pushed the feat/cmdline-modifiers branch from 7f5ef0f to 73f25f3 Compare August 31, 2025 09:36
@Saghen Saghen merged commit f6ca10f into main Sep 2, 2025
6 checks passed
@Saghen
Copy link
Owner

Saghen commented Sep 2, 2025

That's wicked, thank you!

@soifou soifou deleted the feat/cmdline-modifiers branch September 2, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cmdline: # and %:h don't get replaced on tab
2 participants