jyjor / angular-file-switcher

Switch between similarly named files within a directory.
Apache License 2.0
6 stars 1 forks source link

FEATURE: Separated key shorcuts for each file type #6

Open Sjakub5 opened 2 days ago

Sjakub5 commented 2 days ago

Hi, It would be really nice if you could set up shortcut for each file type. Its a lot faster whe you dont have to "scroll" through files. You can take inspiration from VS code plugin called "angular2-switcher" (https://marketplace.visualstudio.com/items?itemName=infinity1207.angular2-switcher). Also would be cool if you could open new file aside of the first one (where you triggered the action).

jyjor commented 2 hours ago

It would be really nice if you could set up shortcut for each file type. Its a lot faster whe you dont have to "scroll" through files. You can take inspiration from VS code plugin called "angular2-switcher" (https://marketplace.visualstudio.com/items?itemName=infinity1207.angular2-switcher).

I actually started work on this a couple of years ago, and there is even a commit where I directly reference angular2-switcher: https://github.com/jyjor/angular-file-picker. While testing it, I didn't like that I actually had to think about which shortcut button to press, and found it less mentally taxing to press the same button once or twice in quick succession. As a side note, my personal settings don't include the test file. There is already a shortcut for it, and I typically only work on the test file after the html and css is pretty final. I haven't checked, but I'd bet there is a plugin that does this already. If not, you are welcome to reference the above project and submit a pull request here or create your own plugin.

Also would be cool if you could open new file aside of the first one (where you triggered the action).

If I understand what you are suggesting, this should already be supported:

Settings → Tools → Angular File Switcher → Other Settings → Close other component files → Never