Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua: complete-filename: use biggest possible prefix #1187

Merged

Conversation

fischerling
Copy link
Contributor

This allows for example to complete file names in markdown images.

E.g.: ![](pic<C-x><C-f> will complete the file name starting with pic.

Previously it would have detected the '[' as prefix and looked for files starting with ](pic.

Maybe I can sneek this in before #1185. This is sitting on top of my tree for quite some time now and I have not encountered any regression using the biggest possible match with our regex.

Apparently, my email setup is currently broken hence the github pull request.

This allows for example to complete file names in markdown images.

E.g.:    ![](pic<C-x><C-f>    will complete the file name.

Previously it would have detected the '[' as prefix.
@rnpnr rnpnr force-pushed the complete_filename_increase_prefix branch from d13a800 to 4d5bfb8 Compare May 1, 2024 01:56
@rnpnr rnpnr merged commit 4d5bfb8 into martanne:master May 1, 2024
5 of 19 checks passed
@rnpnr
Copy link
Collaborator

rnpnr commented May 1, 2024

Looked fine to me, thanks!

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.

2 participants