-
-
Notifications
You must be signed in to change notification settings - Fork 853
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
fix(from_entry): escape paths with $
symbol
#2412
fix(from_entry): escape paths with $
symbol
#2412
Conversation
I also want to discuss implementing the same change to this bit of code here: telescope.nvim/lua/telescope/_.lua Line 24 in a3f17d3
The lack of character escaping is impacting Also if Conni, or if there's any other |
$
symbol$
symbol
Adds support for viewing File Previews of paths with dollar symbols.
111a611
to
9c79225
Compare
Can confirm that telescope seems to not like paths containing I noticed a few extensions choking when working with files on these paths. FWIW, this is a common file-based routing naming convention for frameworks such as NextJS and Remix. 🙏🏼 |
@jamestrew if there's something you'd rather do in plenary to make this easy / universally useful, then we could totally do that. What would you like to do instead if we moved this into plenary? |
Also, doesn't this then break doing things like |
For this PR, making this change within telescope makes sense to me since it's more to do with how the previewer takes and handles the entry_maker's entries. I would ultimately like to do some similar character escaping in these locations:
But I wanted to get this PR through below I go around making similar changes to other areas.
Do you mean having files/folder with the literal string |
thanks :) |
Adds support for viewing File Previews of paths with dollar symbols.
Description
Adds support for viewing File Previews of paths with dollar symbols.
Eg.
./($lang)._index.tsx
This is a new pattern supported by Remix optional segments file based routing.
Partially fixes downstream issue nvim-telescope/telescope-file-browser.nvim#244.
This fix also applies to many of the builtin pickers.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list relevant details about your configuration
touch "(\$lang)._index.ts"
console.log('hello');
:Telescope find_files
and search of the file and at look the File PreviewConfiguration:
Linux archlinux 6.1.12-arch1-1 #1 SMP PREEMPT_DYNAMIC Tue, 14 Feb 2023 22:08:08 +0000 x86_64 GNU/Linux
Checklist: