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
Last revisionBoth sides next revision
geany [2021/07/03 13:32] – [External Commands] context action 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
  
-There's a related feature called **context action** I have configured to send URLs to [[firefox]]. ''Edit > Preferences > Tools'', then put ''firefox %s'' in the 'Context action:' field. This can also be set individually for different file types. If you want to send stuff to a search instead ''firefox %%"https://duckduckgo.com/?t=ffab&q=%s"%%''.+====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 URLsTo 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