Geary

From Free Knowledge Base- The DUCK Project
Revision as of 10:03, 25 January 2025 by Littleguy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


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.

  1. Go to Edit > Format > Send Selection to > Set Custom Commands
  2. Click the Add button
  3. Enter the appropriate xdotool command in the Command edit box (see below)
  4. Hit the Enter key (Important! If you don't hit Enter, Geany won't save what's in the box.)
  5. 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 
  1. Go to Edit > Preferences > Keybindings
  2. Scroll down to "Send to Custom Command 1"
  3. Click the Change button
  4. Press the combination of keys you want for the shortcut
  5. Click the OK button

source: Shortcut, set filetype Geany