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 multiple files using shell expansion syntax #195

Open
FichteFoll opened this issue Nov 16, 2024 · 0 comments
Open

Create multiple files using shell expansion syntax #195

FichteFoll opened this issue Nov 16, 2024 · 0 comments

Comments

@FichteFoll
Copy link
Member

FichteFoll commented Nov 16, 2024

Inserting a file named {home,about}.tsx could create two files at once.
Full syntax:

  • choice {a,b}.txtchoice a.txt, choice b.txt
  • file {1..3}.txtfile 1.txt, file 2.txt, file 3.txt
  • file {a}.txtfile {a}.txt

This behavior should be activated using an argument and can thus be customized when creating a key binding to still allow creating files with the raw input. If we're still doing settings, we could also allow specifying the default behavior there.

via @mauroreisvieira on Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant