obsidian-translate icon indicating copy to clipboard operation
obsidian-translate copied to clipboard

Translation view: Button for copying the translated text

Open TfTHacker opened this issue 2 years ago • 1 comments

It would be nice to have a button in the Translation view for copying the text from the translated text portion of the view.

Additionally, it would be good to have a shortcut key for the button.

Tnx!

TfTHacker avatar Sep 24 '22 09:09 TfTHacker

Sorry for the long wait, in the most recent commits, I've added a way for the user to customize the translation view by adding 'quickbuttons' to either of the text areas (see the GIF below).

If you have any suggestions/feedback, do let me know! Currently, the buttons do not have any shortcut attached to them, as it would be pretty difficult to implement that to the quickbuttons in a clean way. Would this be a big issue for you?

One last thing: it might take a while for me to ship this feature in a release, as I'm currently trying to fish out any major issues that might have occurred following the big refactors I did recently.

appearance-modal-full

Fevol avatar Sep 30 '22 02:09 Fevol

This functionality is now included in the 1.4.0 beta, quickactions are added by default when opening a new translation view, but you can also change the following things:

  1. Assign quicksettings quickactions per individual translation view via the 'appearance settings modal' (enable Appearance > Advanced > Show tab title bar to gain access to the button)
  2. Change the default quicksettings that will be added when opening a new translation view in Plugin Settings > Appearance > Translation View Defaults
  3. Assign hotkeys to the quickactions in Plugin Settings > Hotkeys, when focusing (previously, command would be able to be triggered on hover) on a textarea, you can execute the hotkey.
  4. Following quickactions are included as with this release: "Copy", "Paste", "Cut". I'm planning to maybe at a TTS action if people are interesed in that

Fevol avatar Nov 22 '22 21:11 Fevol

Going to be closing this issue, as this feature has been fully released now. Let me know if there are some more types of action that should be included!

Fevol avatar Dec 05 '22 18:12 Fevol