Geary: Difference between revisions
Jump to navigation
Jump to search
Created page with " I'm glad you asked. The same annoyance bugs me every I create a new file to write a Bash script. So, I worked out a solution. If you're using a Linux system, you can set up..." |
(No difference)
|
Revision as of 10:03, 25 January 2025
I'm glad you asked. The same annoyance bugs me every I create a new file to write a Bash script. So, I worked out a solution.
If you're using a Linux system, you can set up a custom command to call xdotool to do the job. If you don't have it installed, it should be available in your distro's repo. With xdotool, you can simulate a sequence of keypresses to do the work of selecting Pascal for you.
- Go to Edit > Format > Send Selection to > Set Custom Commands
- Click the Add button
- Enter the appropriate xdotool command in the Command edit box (see below)
- Hit the Enter key (Important! If you don't hit Enter, Geany won't save what's in the box.)
- Click the OK button
The exact command to select Pascal on my Geany installation is...
xdotool key alt+d t p Down Down Down Down Down Return
- Go to Edit > Preferences > Keybindings
- Scroll down to "Send to Custom Command 1"
- Click the Change button
- Press the combination of keys you want for the shortcut
- Click the OK button
source: Shortcut, set filetype Geany