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

Support for filenames containing spaces? #112

Open
joelostblom opened this issue Mar 3, 2017 · 0 comments
Open

Support for filenames containing spaces? #112

joelostblom opened this issue Mar 3, 2017 · 0 comments

Comments

@joelostblom
Copy link

I noticed that only the first word in a filename containing spaces is highlighted. If I understand correctly this is because the grep pattern that is used "(^|^\.|[[:space:]]|[[:space:]]\.|[[:space:]]\.\.|^\.\.)[[:alnum:]~_-]*/[][[:alnum:]_.#$%&+=/@-]*" does not contain an escaped whitespace and including one would lead to the inclusion of text following the filename as well?

I think that spaces in filenames is terrible practise but sometimes they end up on my system anyways (usually as downloaded pdfs). I wonder if there is an straightforward way to support filename with spaces without getting into problems with selected the following words in the line (I would probably vote for not supporting them to enforce good naming practises, but I am curious if there is a simple way to extract the file name even when it is containing spaces)?

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

No branches or pull requests

1 participant