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

Create new file when file dont exists #114

Closed
otavioschwanck opened this issue Mar 18, 2022 · 2 comments · Fixed by #117
Closed

Create new file when file dont exists #114

otavioschwanck opened this issue Mar 18, 2022 · 2 comments · Fixed by #117
Labels
enhancement New feature or request

Comments

@otavioschwanck
Copy link
Contributor

otavioschwanck commented Mar 18, 2022

Would be nice to have an option when i type the name of file:

i type:

my_file.js

On telescope:


[+] my_file.js (new file)
../


and when i select this option, it create a file and opens on editor.

Emacs do it and its awesome.

@otavioschwanck otavioschwanck added the enhancement New feature or request label Mar 18, 2022
@fdschmidt93
Copy link
Member

I'll leave this here for context.

#104 (comment)
#78 (comment)

You can pretty straightforwardly come up with your own lua function to achieve something along these lines. Holistic support from telescope-file-browser.nvim is very difficult due to the async nature of telescope.

@fdschmidt93
Copy link
Member

I've realized this probably is probably a bit of a separate issue and quickly implemented it. It should now work as desired I hope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants