m
m (Keymapper)
Line 16: Line 16:
  
 
# Ctrl+Alt+P generates a <nowiki><pre></pre></nowiki> tag.
 
# Ctrl+Alt+P generates a <nowiki><pre></pre></nowiki> tag.
# Ctrl+Shift+Space generates a <nowiki>&nbsp;</nowiki>
+
# Ctrl+Shift+Space generates an unbreakable space <nowiki>&nbsp;</nowiki>
 
# Ctrl+Alt+T generates a <nowiki><tt></tt></nowiki> tag
 
# Ctrl+Alt+T generates a <nowiki><tt></tt></nowiki> tag
 
# Ctrl+Alt+W generates a [[wz]] <nowiki><wz tip="">(?!)</wz></nowiki> tag.
 
# Ctrl+Alt+W generates a [[wz]] <nowiki><wz tip="">(?!)</wz></nowiki> tag.
Line 24: Line 24:
 
# Ctrl+Alt+N generates a <nowiki><nowiki></nowiki></nowiki> section.
 
# Ctrl+Alt+N generates a <nowiki><nowiki></nowiki></nowiki> section.
  
The file is in <tt>~/.config/keymapper.conf</tt>. The application runs with <tt>keymapper -u</tt> (where <tt>-u</tt> is for updating the rules from the file).
+
The file to define the shortcuts is in <tt>~/.config/keymapper.conf</tt>. The application runs with <tt>keymapper -u</tt> (where <tt>-u</tt> is for updating the rules from the file).
  
 
Discontinued:
 
Discontinued:

Revision as of 11:06, 7 January 2025

Shortcut

A shortcut is what differentiate the expert from the dilettante, the genius from the laborious. Even the expert has to go through the long way home, occasionally, but their routine practice of the Art will take all the possible shortcuts.

Keyboards

I use keyboard shortcuts a lot, for instance, lw in krunner brings me to this web (like wp does for wikipedia or gg for google). This you can get with in Web Shortcuts (best defined from konqueror):

http://laussy.org/wiki/Special:Search?search=\{@}&go=Go

Keymapper

For general keyboard shortcuts, we use keymapper:

  1. Ctrl+Alt+P generates a <pre></pre> tag.
  2. Ctrl+Shift+Space generates an unbreakable space &nbsp;
  3. Ctrl+Alt+T generates a <tt></tt> tag
  4. Ctrl+Alt+W generates a wz <wz tip="">(?!)</wz> tag.
  5. Ctrl+Alt+Shift+W generates a <wz tagtotip=></wz><span id=""></span> tag.
  6. Ctrl+Alt+B opens by bibTeX file.
  7. Ctrl+Alt+R generates a == References ==<references /> section.
  8. Ctrl+Alt+N generates a <nowiki></nowiki> section.

The file to define the shortcuts is in ~/.config/keymapper.conf. The application runs with keymapper -u (where -u is for updating the rules from the file).

Discontinued:

  1. Ctrl+Alt+J generates a Julia snippet:
    <syntaxhighlight lang="python"></syntaxhighlight>
    which is actually python until I get support for julia.

Limitations:

I didn't figure out how to write outputs from programs, e.g., the current date (it doesn't understand /dev/tty or /dev/stdout, though it can output to tty but that's for terminals only).