Both sides previous revisionPrevious revisionNext revision | Previous revision |
geany [2021/07/03 13:32] – [External Commands] context action rjt | geany [2022/05/26 19:49] (current) – Syntax Highlighting rjt |
---|
* ''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 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==== |
* [[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 ===== |