Clipboard to UPPERCASE (Windows)
20. 5. 2024Command:
powershell -command "Set-Clipboard -Value ((Get-Clipboard).ToUpper())"
In Total commander, a button with:
Command: powershell -command "Set-Clipboard -Value ((Get-Clipboard).ToUpper())"
Icon file: %COMMANDER_PATH%\..\ico\papirus\font-x-generic-symbolic.ico
Tooltip: Clipboard to UPPERCASE
p.s. In windows, make a script.bat out of it and make a soft link (shortcut), this so called shortcuts can also have shortkey (ctrl + alt + u) for example.
Total commander can also rename files to Uppercase with single button click:
https://www.ghisler.ch/board/viewtopic.php?p=455303&sid=bfafbe9446f3023230ccd16f57994dc4#p455303
camelCase to CAMEL CASE ↓
from: to:
notePadHERE NOTE PAD HERE
HTMLParser HTML PARSER
brontoSaurusRex BRONTO SAURUS REX
Powershell command (by deepseek)
Set-Clipboard -Value ((Get-Clipboard) -creplace '([a-z])([A-Z])', '$1 $2' -creplace '([A-Z]+)([A-Z][a-z])', '$1 $2').ToUpper()
Total commander button
Command: powershell -command "Set-Clipboard -Value ((Get-Clipboard) -creplace '([a-z])([A-Z])', '$1 $2' -creplace '([A-Z]+)([A-Z][a-z])', '$1 $2').ToUpper()"
Icon file: %COMMANDER_PATH%\..\ico\papirus\font-select-symbolic.ico
Tooltip: camelCase to CAMEL CASE
Note: Icon is not really representative. Unclear how to implement that in TC for file renaming curently but should be possible with the
New pseudo environment variables %$CLIPBOARD%, %$CLIPNAME% and %$CLIPNAME_NE% to access clipboard content, e.g. in button commands
implemented in 11.50.