The copy to clipboard’s nice. Couldn’t we have it at the bottom of every tiddler’s text field? If we did it, Obsidian’s finished. Kidding. But half so…
If I understand what you want, then it’s fairly simple to do this:
title: $:/_/my/core/ui/EditTemplate/copy-text
tags: $:/tags/EditTemplate
list-after: $:/core/ui/EditTemplate/body
<div style="text-align: right">
<$button message="tm-copy-to-clipboard" param={{!!text}}> Copy</$button>
</div>
You would probably want to add nicer styles.
$____my_core_ui_EditTemplate_copy-text.json (312 Bytes)
Utility plugin from KPL has a very powerful source button! It is customizable
If we were to generalise this and put in the core I think we should include the following.
- The toolbar Button could be selected for either the view or edit modes.
Using click, and modifier keys (something else for mobile) we could include;
- Copy text
- Copy title
- Copy tiddler and all fields in a form that can be pasted into another wiki
- Copy tiddler in the tid or similar format to paste in forums etc.
- Drag to drop current tiddler on another wiki (If wiki titles not links)
Some users say, that our UI in edit mode is already very “noisy”. IMO adding 6 more “copy to clipboard” buttons will make it even more so.
From a smartphone point of view, the UI would be noisy. Also for us older users, as our eyesight gets worse, and the need we have to increase the font size, UI real estate becomes dear.
I was thinking more on the lines of non-edit mode. You see a tiddler with some text. Let’s say the text field is a password. As it stands, you have to select the text, double click it or select the beginning and end points. The horror. Annoying enough on the PC. A mobile device?
In the “Information” view, let’s say we want to replicate all of the applied tags and copy it over to another tiddler. On a PC, you triple click the tags field and copy. Would be nice if I could create a small copy to clipboard button next to the field.
I hope I can create such a button. Let me look into it.
See TiddlyTools/Templates/CopyTags.
This TiddlyTools add-on is tagged with $:/tags/EditTemplate
, and adds a $select
list and button in the tiddler editor so you can quickly select any existing tiddler that has tags and add those tags to the tiddler you are currently editing.
enjoy,
-e
Oh, I see how that works. Very handy. Thank you, Eric.