Fevol / obsidian-translate

Translate text and entire notes in Obsidian
MIT License
100 stars 6 forks source link

Add shortcut hints to Translation View #30

Closed TfTHacker closed 1 year ago

TfTHacker commented 2 years ago

Feature request: please add to the tranlation view hints for keyboard shortcuts for invoking translation and language swapping. I see already through trial and error that CMD+ENTER invokes the translate button.

Tnx!

image

Fevol commented 1 year ago

It's been a while, but I finally got around to this! I've made a few changes so that triggering the actions via hotkeys is way more obvious:

  1. User can set their own hotkeys for every action
  2. Shortcut hints will show up in the tooltip
  3. These hints can be disabled if the user wishes to do so I'm considering maybe not showing the hints at all, as the code for it is quite messy

Here's a short GIF detailing some of the future, though I don't know how clear it will be - it's a bit hard to properly show it off: shortcuts-example

The entire update should hopefully be out in the coming days, I'm going to work on one last feature, the glossary; and then start polishing and bugfixing.

I'm really sorry for the long wait!

TfTHacker commented 1 year ago

Thank you for this additional functionality. It is very much appreciated!

I have started using the command palette more for translation with selected text. This is a very powerful feature!