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
Last revisionBoth sides next revision
geany [2021/07/03 13:03] – [External Commands] web rjtgeany [2021/07/03 14:28] – [External Commands] seperated context actions, and expanded 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
  
-The other ones find useful are send a URL to [[firefox]], or a selection to [[duckduckgo]]+====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. 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====
geany.txt · Last modified: 2022/05/26 19:49 by rjt