User Tools

Site Tools


geany

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
geany [2020/10/25 13:32] – ↷ Page moved from tool:software:geany to geany rjtgeany [2022/05/26 19:49] (current) – Syntax Highlighting rjt
Line 19: Line 19:
   * ''Ctrl+[n]''   * ''Ctrl+[n]''
  
-I have one setup that sends highlit text to ''sort'' when I press ''Ctrl+1'', which alphabetises it. Nice for CSS.+I have one setup that sends highlit text to ''sort'' when I press ''Ctrl+1'', which alphabetises it. Nice for CSS and lists.
  
   * https://wiki.geany.org/config/customcmds/sort-selection   * https://wiki.geany.org/config/customcmds/sort-selection
 +
 +====Context Actions====
 +
 +Like external commands, you can use the single context action to send bits of text off to other places. There being only one is a bit limiting, but. I have mine set to send stuff to [[Firefox]], which I use for URLs. To set:
 +
 +  - ''Edit > Preferences > Tools''
 +  - Find the 'Context action:' field
 +
 +or
 +
 +  - Edit ''~/.config/geany/geany.conf''
 +  - Find ''context_action_cmd='' and add your command here.
 +
 +I have ''firefox %s''. If you want send stuff to [[duckduckgo|DDG]] use ''firefox %%"https://duckduckgo.com/?t=ffab&q=%s"%%'', etc.
 +
 +You can also have a different context action configured per file type. To do this:
 +
 +  - Copy the files you want from ''/usr/share/geany/filedefs'' to ''~/.config/geany/filedefs''
 +  - Add your command to ''context_action_cmd=''
 +
 +I have ''%%https://developer.mozilla.org/en-GB/search?q=%s%%'' for [[CSS]] and [[HTML]] files, for example.
  
 ====Keyboard Shortcuts==== ====Keyboard Shortcuts====
Line 43: Line 64:
   * [[github>editorconfig/editorconfig-geany]]   * [[github>editorconfig/editorconfig-geany]]
   * [[aur>?O=0&SeB=nd&K=editorconfig+geany&outdated=&SB=n&SO=a&PP=50&do_Search=Go|editorconfig geany]] search.   * [[aur>?O=0&SeB=nd&K=editorconfig+geany&outdated=&SB=n&SO=a&PP=50&do_Search=Go|editorconfig geany]] search.
 +
 +==== Syntax Highlighting =====
 +
 +To add new filetypes to existing syntax highlighting styles:, you can add them to ''~/.config/geany/filetype_extensions.conf''. Currently mine looks like:
 +
 +<code ini>
 +# Adds to defaults /usr/share/geany/filetype_extensions.conf
 +[Extensions]
 +Conf=*.ssa;*.ass;
 +
 +[Groups]
 +
 +</code>
  
 ===== See Also ===== ===== See Also =====
   * [[https://www.geany.org/|www.geany.org]]   * [[https://www.geany.org/|www.geany.org]]
 +
 +{{tag>guide open-source software text-editor}}
geany.1603593163.txt.gz · Last modified: 2020/10/25 13:32 by rjt