obsidian-translate
obsidian-translate copied to clipboard
Translation view: Button for copying the translated text
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!
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.
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:
- 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) - Change the default quicksettings that will be added when opening a new translation view in
Plugin Settings > Appearance > Translation View Defaults
- 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. - 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
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!