retrospective Stringop
it is highly recommend that you install this plug-in with the built-in plug-in manager!
https://plover.wiki/index.php/Plugins#Manually_Installing_Plugins
Techicals 🔧
`{:retro_stringop:N:EXPR}`, where `N` is the number of words (backwards) to work on and `EXPR` is the expression that constitutes the new text. This has `text` as the entire string and `words` as an array of the individual words (already stripped, use `raw_words` for words including the spaces). `{:retro_stringop_sh:N:EXPR}` does the same stuff, but calls `/bin/sh`, and provides the text as `TEXT` env var.Examples
{
"": "{:retro_stringop:1:"(" + text + ")"}" ,
"": " {:retro_stringop:2:"(" + text + ")"}" ,
"": "{:retro_stringop_sh:1:echo "$TEXT" | tee some-file.txt}" ,
"": "{:retro_stringop:1:text[::-1]}" ,
"": "{:retro_stringop_sh:1:cat "$TEXT"}" ,
"": "{:retro_stringop:3:"".join(}[w.lower().capitalize() for w in words])}"
}
do not with that greedy!, take a small PH*EUBL or a bite first, then gouge the whole fruit (or not)!
{
"": "{:retro_stringop:1:\"(\" + text + \")\"}" ,
"": " {:retro_stringop:2:\"(\" + text + \")\"}" ,
"": "{:retro_stringop_sh:1:echo \"$TEXT\" | tee some-file.txt}" ,
"": "{:retro_stringop:1:text[::-1]}" ,
"": "{:retro_stringop_sh:1:cat \"$TEXT\"}" ,
"": "{:retro_stringop:3:\"\".join(}[w.lower().capitalize() for w in words])}"
}
Examples
{:retro_stringop:1:"(" + text + ")"}
: surround last word in parenthesis
{:retro_stringop:2:"(" + text + ")"}
: surround last two words in parenthesis
{:retro_stringop_sh:1:echo "$TEXT" | tee some-file.txt}
: log last word to some-file.txt (tee is used here to so that the word doesn’t get deleted)
{:retro_stringop:1:text[::-1]}
: reverse the last word
{:retro_stringop_sh:1:cat "$TEXT"}
: read the last word as a filename, and read that file, replacing the filename with the content
{:retro_stringop:3:"".join([w.lower().capitalize() for w in words])}
: PascalCase the last 3 words
Examples
-
{:retro_stringop:1:"(" + text + ")"}: surround last word in parenthesis -
{:retro_stringop:2:"(" + text + ")"}: surround last two words in parenthesis -
{:retro_stringop_sh:1:echo "$TEXT" | tee some-file.txt}: log last word to some-file.txt (tee is used here to so that the word doesn’t get deleted) -
{:retro_stringop:1:text[::-1]}: reverse the last word -
{:retro_stringop_sh:1:cat "$TEXT"}: read the last word as a filename, and read that file, replacing the filename with the content -
{:retro_stringop:3:"".join([w.lower().capitalize() for w in words])}: PascalCase the last 3 words
hi .md
updated =
# plover_retro_stringop
Run arbitrary code on the last n words!
This is inheritly unsafe and horrible, yay!
Complaints go to **[[redacted]]@[[redacted]].com**.
### Usage
`{:retro_stringop:N:EXPR}`, where `N` is the number of words (backwards) to work on and `EXPR` is the expression that constitutes the new text.
This has `text` as the entire string and `words` as an array of the individual words (already stripped, use `raw_words` for words including the spaces).
`{:retro_stringop_sh:N:EXPR}` does the same stuff, but calls `/bin/sh`, and provides the text as `TEXT` env var.
### Examples
- `{:retro_stringop:1:"(" + text + ")"}`: surround last word in parenthesis
- `{:retro_stringop:2:"(" + text + ")"}`: surround last two words in parenthesis
- `{:retro_stringop_sh:1:echo "$TEXT" | tee some-file.txt}`: log last word to some-file.txt (tee is used here to so that the word doesn't get deleted)
- `{:retro_stringop:1:text[::-1]}`: reverse the last word
- `{:retro_stringop_sh:1:cat "$TEXT"}`: read the last word as a filename, and read that file, replacing the filename with the content
- `{:retro_stringop:3:"".join([w.lower().capitalize() for w in words])}`: PascalCase the last 3 words
my Plover plugins list
updated = Tuesday, 04 June, 2024 ,
- "alleycat-link",
- "plover-auto-identifier",
- "plover-auto-reconnect-machine",
- "plover-cards",
- "plover-casecat-dictionary",
- "plover-cat",
- "plover-clippy",
- "plover-clippy-2",
- "plover-clr-trans-state",
- "plover-combo",
- "plover-comment",
- "plover-console-ui",
- "plover-controller",
- "plover-current-time",
- "plover-debugging-console",
- "plover-delay",
- "plover-dict-commands",
- "plover-dictionary-builder",
- "plover-dictionary-patch",
- "plover-digitalcat-dictionary",
- "plover-eclipse-dictionary",
- "plover-emoji",
- "plover-engine-server-2",
- "plover-excel-dictionary",
- "plover-fancytext",
- "plover-german-syllatype",
- "plover-grandjean",
- "plover-hjson-dictionary",
- "plover-italian-stentura",
- "plover-jaws",
- "plover-json-lazy",
- "plover-lapwing-aio",
- "plover-last-translation",
- "plover-layout-display",
- "plover-local-env-var",
- "plover-maajik",
- "plover-markdown-dictionary",
- "plover-melani",
- "plover-merge-words",
- "plover-michela",
- "plover-midi",
- "plover-midi4text",
- "plover-minimal-english-stenotype",
- "plover-mod-z",
- "plover-modal-dictionary",
- "plover-next-stroke",
- "plover-ninja",
- "plover-number-format",
- "plover-oft-eva",
- "plover-open-url",
- "plover-palantype",
- "plover-palantype-DE",
- "plover-palantype-german",
- "plover-phenrsteno",
- "plover-phoenix-stenotype",
- manager",
- "plover-portuguese",
- "plover-python-dictionary",
- "plover-q-and-a",
- "plover-regenpfeifer",
- "plover-retro-case",
- "plover-retro-everything",
- "plover-retro-quotes",
- "plover-retro-stringop",
- "plover-retro-surround",
- "plover-retro-text-transform",
- "plover-retro-untranslator",
- "plover-roll-the-dice",
- "plover-rpn-calculator",
- "plover-run-applescript",
- "plover-run-shell",
- "plover-russian-trillo",
- "plover-search-translation",
- "plover-spanish-mqd",
- "plover-spanish-system-eo-variant",
- "plover-splits",
- "plover-start-words",
- "plover-startup-py",
- "plover-stenobee",
- "plover-stenograph",
- "plover-stenograph-usb",
- "plover-stenohid-test",
- "plover-stenotype-extended",
- "plover-stitching",
- "plover-svg-layout-display",
- "plover_system_switcher",
- "plover-tapey-tape",
- "plover-textarea",
- "plover-trayicon",
- "plover-treal",
- "plover-uinput-output",
- "plover-unused-xtest-output",
- "plover-vcs-plugin",
- "plover-vlc-commands",
- "plover-windows-brightness",
- "plover-word-tray",
- "plover-wpm-meter",
- "plover-xtest-input",
- "plover-yaml-dictionary",
- "spectra-lexer"
]
Sovereigns 🌻 re🌻 🌻
KAEBDZ
all known keyboards software for phons ☎️ are to be typewrite enhere...
- Steno Keyboard_2.2_Apkpure.apk
- dotterel-v0.1.0-dev.apk