How to use my saved folder with just one command?
See original GitHub issueHello, great extension! But one thing that would really make it faster for people like me that like to use keybinds, is a way of executing the command FFS.createFolderStructure just by doing a setted keybind like “ctrl+8” (in my case). When i tried to do this I created this command in my keybindings.json{ "key": "ctrl+8", "command": "FFS.createFolderStructure", }
, but it doesn’t work the way it should 😦, if do the keybind, the input to put the name of the file appears:
but then a error occurs if I press enter:
how can I use this? 😕
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
10 Ways To Quickly Get To Folders When Saving Files
https://macmost.com/e-2772 When you go to save a file it can be frustrating to find the location you want. But there are many things...
Read more >How to Save a Directory List in DOS
Note: DOS directories = Windows folders. 1. From the 'Start' menu, go to All Programs, Accessories, Command Prompt. A black DOS screen.
Read more >Create your first directory - Learn the Command Line in ...
Use the command mkdir to create a directory. mkdir is short for "make directory." Specify the name of the directory (folder) you want...
Read more >Customize the save experience in Office
Prefer a more classic folder browsing experience, like in Windows Explorer? Use the classic Save dialog instead. Via File > Options > Save,...
Read more >Navigating your filesystem in the Linux terminal
In the GUI. Open a window, double-click on a folder, and then double-click on a sub-folder. Use the Back button to backtrack. On...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Alright, I understand your usecase now.
I will implement this once I find time although I think that your usecase is a somewhat rare one.
I’m still not sure I understand.
Current folder would be what exactly in your case?
components/<component>/index.js
format then you would create the next component inside the components/<component> folder next to the index.js.I’m thinking that instead of passing an arg that is called
current
you could pass something like{parentFolder: 'src/components'}
instead of having to enter it everytime.This has the caveat that you would have to create multiple keybinds for different folders but it’s pretty much the only solution I can think of right now that would work without issues and has the highest success rate.
To reemphasize:
The big problem I see with a
current
arg is that the possibility of creating a folder somewhere the user did not want is very high because everyone interpretscurrent
differently.So having something explicit like parentFolder would be less errorprone while having its downsides as well