AdvancedNewFile icon indicating copy to clipboard operation
AdvancedNewFile copied to clipboard

Create multiple files using shell expansion syntax

Open FichteFoll opened this issue 1 year ago • 0 comments

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

FichteFoll avatar Nov 16 '24 13:11 FichteFoll