../

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

https://gothub.lunar.icu/buffet/plover_retro_stringop/blob/master/README.md
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)!

retrospective-stringop.json

{
"": "{: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])}"  

}

retrospective-stringop.json

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

retrospective-stringop.json

Examples

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 ,

  1. "alleycat-link",
  2. "plover-auto-identifier",
  3. "plover-auto-reconnect-machine",
  4. "plover-cards",
  5. "plover-casecat-dictionary",
  6. "plover-cat",
  7. "plover-clippy",
  8. "plover-clippy-2",
  9. "plover-clr-trans-state",
  10. "plover-combo",
  11. "plover-comment",
  12. "plover-console-ui",
  13. "plover-controller",
  14. "plover-current-time",
  15. "plover-debugging-console",
  16. "plover-delay",
  17. "plover-dict-commands",
  18. "plover-dictionary-builder",
  19. "plover-dictionary-patch",
  20. "plover-digitalcat-dictionary",
  21. "plover-eclipse-dictionary",
  22. "plover-emoji",
  23. "plover-engine-server-2",
  24. "plover-excel-dictionary",
  25. "plover-fancytext",
  26. "plover-german-syllatype",
  27. "plover-grandjean",
  28. "plover-hjson-dictionary",
  29. "plover-italian-stentura",
  30. "plover-jaws",
  31. "plover-json-lazy",
  32. "plover-lapwing-aio",
  33. "plover-last-translation",
  34. "plover-layout-display",
  35. "plover-local-env-var",
  36. "plover-maajik",
  37. "plover-markdown-dictionary",
  38. "plover-melani",
  39. "plover-merge-words",
  40. "plover-michela",
  41. "plover-midi",
  42. "plover-midi4text",
  43. "plover-minimal-english-stenotype",
  44. "plover-mod-z",
  45. "plover-modal-dictionary",
  46. "plover-next-stroke",
  47. "plover-ninja",
  48. "plover-number-format",
  49. "plover-oft-eva",
  50. "plover-open-url",
  51. "plover-palantype",
  52. "plover-palantype-DE",
  53. "plover-palantype-german",
  54. "plover-phenrsteno",
  55. "plover-phoenix-stenotype",
  56. manager",
  57. "plover-portuguese",
  58. "plover-python-dictionary",
  59. "plover-q-and-a",
  60. "plover-regenpfeifer",
  61. "plover-retro-case",
  62. "plover-retro-everything",
  63. "plover-retro-quotes",
  64. "plover-retro-stringop",
  65. "plover-retro-surround",
  66. "plover-retro-text-transform",
  67. "plover-retro-untranslator",
  68. "plover-roll-the-dice",
  69. "plover-rpn-calculator",
  70. "plover-run-applescript",
  71. "plover-run-shell",
  72. "plover-russian-trillo",
  73. "plover-search-translation",
  74. "plover-spanish-mqd",
  75. "plover-spanish-system-eo-variant",
  76. "plover-splits",
  77. "plover-start-words",
  78. "plover-startup-py",
  79. "plover-stenobee",
  80. "plover-stenograph",
  81. "plover-stenograph-usb",
  82. "plover-stenohid-test",
  83. "plover-stenotype-extended",
  84. "plover-stitching",
  85. "plover-svg-layout-display",
  86. "plover_system_switcher",
  87. "plover-tapey-tape",
  88. "plover-textarea",
  89. "plover-trayicon",
  90. "plover-treal",
  91. "plover-uinput-output",
  92. "plover-unused-xtest-output",
  93. "plover-vcs-plugin",
  94. "plover-vlc-commands",
  95. "plover-windows-brightness",
  96. "plover-word-tray",
  97. "plover-wpm-meter",
  98. "plover-xtest-input",
  99. "plover-yaml-dictionary",
  100. "spectra-lexer"

]

Sovereigns 🌻 re🌻 🌻
  1. "plover-retro-strokes",
KAEBDZ

all known keyboards software for phons ☎️ are to be typewrite enhere...

/u+fdfd,/ /Plover/ /plug/ /Alhamdullilah.../