question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to use my saved folder with just one command?

See original GitHub issue

Hello, 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: Screenshot from 2020-09-26 15-50-55

but then a error occurs if I press enter: Screenshot from 2020-09-26 15-51-00 how can I use this? 😕

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Huuumscommented, Sep 27, 2020

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.

1reaction
Huuumscommented, Sep 27, 2020

I’m still not sure I understand.

Current folder would be what exactly in your case?

  • Root folder of the project? (Doesn’t make sense, I think )
  • Current folder the active file is in? This might also be bad because if you have a 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 interprets current differently.

So having something explicit like parentFolder would be less errorprone while having its downsides as well

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found