Keyboard shortcuts
(Sorry for opening 3 issues in quick succession! I just like this extension and can see it being a part of my workflow)
Describe the bug
There is a big list of keyboard shortcuts (filter the list by gistpad), which are all unassigned by default.
I wanted to rename gists using F2, like you can with files in the explorer.
There's a command for this, gistpad.renameFile.
When I run this though, I get the warning, Cannot read property 'path' of undefined.
I've tried focusing different things in case it requires a specific 'When' case.
As far as I know, this actually applies to all of them, so perhaps it's just not fully implemented :smile:
To Reproduce
- Open keyboard shortcuts
- Filter the list by
gistpad - Assign shortcut to any of these
- Try using them.
Expected behavior They should do carry out the specified action
Screenshots


Desktop (please complete the following information):
- VS Code Version: 1.51.1
- GistPad Version 0.1.9
Thanks for reporting this! Many of the GistPad commands are expected to be called from specific contexts, and therefore, wouldn't automatically work when triggered from a keyboard shortcut.
Do you have specific commands that you'd like to be able to trigger via keyboard shortcuts? If so, then I could prioritize getting those to work. Thanks!
Thank you for the quick response and positivity! :bow: At a glance, these are the shortcuts I think would be the most useful:
gistpad.newScratchNotegistpad.addFileToGistgistpad.addDirectoryFileandgistpad.addFilegistpad.renameDirectoryandgistpad.renameFilegistpad.deleteFile
Side note, I'm not sure what the difference is between a 'directory' and a 'gist'.
I thought they might have been the same (separate from repositories), but I can see all gistpad.deleteDirectory, gistpad.deleteGist and gistpad.deleteRepository.