gistpad icon indicating copy to clipboard operation
gistpad copied to clipboard

Keyboard shortcuts

Open celynw opened this issue 5 years ago • 2 comments

(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

  1. Open keyboard shortcuts
  2. Filter the list by gistpad
  3. Assign shortcut to any of these
  4. Try using them.

Expected behavior They should do carry out the specified action

Screenshots image

image

Desktop (please complete the following information):

  • VS Code Version: 1.51.1
  • GistPad Version 0.1.9

celynw avatar Nov 18 '20 18:11 celynw

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!

lostintangent avatar Nov 22 '20 15:11 lostintangent

Thank you for the quick response and positivity! :bow: At a glance, these are the shortcuts I think would be the most useful:

  • gistpad.newScratchNote
  • gistpad.addFileToGist
  • gistpad.addDirectoryFile and gistpad.addFile
  • gistpad.renameDirectory and gistpad.renameFile
  • gistpad.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.

celynw avatar Nov 24 '20 12:11 celynw