I have a job where a part of our job is to write comments on some entries. Such as if we have edited it. This same string can get quite repetitive. Writing out initials followed by the current date. It would be amazing to have a script so each time you press a shortcut command, this script will fire and type out in the looks of "ABC YYYY-MM-DD: ". Making that process simpler. I’m quite new to Linux and thought maybe the community has some ideas. (We aren’t allowed to install any type of software due to security purposes. So if something already comes pre-baked within Ubuntu, would be quite neat! :P)
I’d write a bookmarklet for that case:
javascript: { const name = 'ABC'; const d = new Date(); const year = d.getFullYear(); const month = d.getMonth(); const date = d.getDate(); document.activeElement.value = `${year}/${month}/${date} ${name}`; void 0; }
This bookmarklet inserts the desired text into the currently focused text box. Tested on Lemmy Web UI.