It is now possible to use patterns to specify the context action command to be executed
if the user selects "Context Action" from the context menu. The patterns can be configured
in the filetypes configuration files.
Each action pattern entry needs to have a key of the form "context_action_pattern" followed by
a number from 1 to 99 (e.g. "context_action_pattern1", "context_action_pattern2"). The value
assigned must be a ';' separated string list with two entries. First, the pattern to match and
then the command to execute. So a complete entry looks like this:
context_action_pattern1=pattern;command;
Loading of the patterns stops after the 99th entry or if no more entries are found.
A gap in the entries numeration would lead to early abort of loading.
To find the corresponding action command for the current word/selection the following
procedure is performed:
1. Try to match the current selection/word against a pattern.
If there is a match then the corresponding command is returned.
Patterns are matched in the order in which they are specified in the filetype config file.
The pattern matching uses the flag "G_REGEX_MATCH_ANCHORED" which means the pattern
needs to match the word from the start. This is equal to using "^" at the start
of the pattern.
2. If there is no match return the "context_action_cmd" for the filetype.
3. If that is empty use the context action from the global "Tools" preferences
Here is an example config for ```filetype.c``` to try out the feature:
```
# context action command (please see Geany's main documentation for details)
context_action_cmd=firefox --new-tab "http://www.cplusplus.com/search.do?q=%s"
context_action_pattern1=g_.*;firefox --new-tab "https://developer.gnome.org/symbols/search?q=%s";
context_action_pattern2=xml.*;firefox --new-tab "http://xmlsoft.org/search.php?query=%s";
```
This config will open/search the cplusplus website if there is no match in the patterns. If the current word/selection starts with ```g_``` then it searches the gnome API. If the current word/selection starts with ```xml``` then it searches the Libxml2 website.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1643
-- Commit Summary --
* Added Context Action Patterns.
-- File Changes --
M src/callbacks.c (7)
M src/filetypes.c (107)
M src/filetypes.h (3)
-- Patch Links --
https://github.com/geany/geany/pull/1643.patchhttps://github.com/geany/geany/pull/1643.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1643
Underline color for warnings should differ from color of errors, for example color of erros is red, color of warnings is orange Currently it's red for both
---
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/864
Hi,
is there any chance to add Lexer for [AutoIt3 scripting language](https://www.autoitscript.com/site/autoit/) to Geany? I am ready to help with a _filetypes.au3_ and _au3.tags_.
Regards,
P.S. _LexAU3.cxx_ in the source of Scintilla is old (Jul 26, 2007), but it works (as well as au3.properties).
[There is a new version](https://bitbucket.org/scite-ru/scite-ru.bitbucket.org/src/53d62fc5… (Sep 05, 2013). I tried to compile SciTE 3.6.4 with new version: it's works on Windows XP SP3 (MinGW), but there are some weird problems with ends commentblock on Xubuntu 14.04. I seem to find the problem and wrote the author.
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/967
Is it also possible to change the color scheme in symbols (left) and compilers (down of the page) window?
How could i do this?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1006
more a request than issue
>>> wish panel color was configurable from in Geany
>>> huh, there are two 'Project' tabs in sidebar
one is empty
the other has more files than are in my project
the 'Documents' tab has my correct project files
pretty good app
good as the old Turbo C I used 15 years ago
now that I got 'make' working I'm really liking it - F8 and BOOM! it's all done
keep up the good work!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1604
I hate the overlay scrollbars as I find I have to hunt for them, so they are disabled. To over come the missing items that used to come with fallback/flashback Gnome desktop I use 2 sections of code to bring back functionality.
'gtk-widgets.css'
usually in the Theme section of the current theme
`/*************
* scrollbar *
*************/
.scrollbar,
.scrollbar.vertical {
-GtkScrollbar-has-backward-stepper: 1;
-GtkScrollbar-has-forward-stepper: 1;
-GtkRange-slider-width: 16;
-GtkRange-stepper-size: 16;
-GtkRange-stepper-spacing: 0;
-GtkRange-trough-border: 0;
-GtkScrollbar-min-slider-length: 30;
border-radius: 20px;
border-image: none;
}
.scrollbar.trough,
.scrollbar.trough.vertical {
border-color: shade (@bg_color, 0.8);
}
.scrollbar.slider,
.scrollbar.slider:hover,
.scrollbar.button,
.scrollbar.slider.vertical,
.scrollbar.slider.vertical:hover,
.scrollbar.button.vertical {
border-width: 1px;
border-style: solid;
border-color: shade (@bg_color, 0.86);
background-image: -gtk-gradient (linear, left top, right top,
from (shade (#BDE3F0, 1.08)),
color-stop (0.5, #BDE3F0),
to (shade (#BDE3F0, 0.94)));
box-shadow: inset 1px 0 shade (@bg_color, 1.1),
inset -1px 0 shade (@bg_color, 1.01),
inset 0 1px shade (@bg_color, 1.1),
inset 0 -1px shade (@bg_color, 1.1);
}
.scrollbar.slider.horizontal,
.scrollbar.slider.horizontal:hover,
.scrollbar.button.horizontal {
background-image: -gtk-gradient (linear, left top, left bottom,
from (shade (#BDE3F0, 1.08)),
color-stop (0.5, #BDE3F0),
to (shade (#BDE3F0, 0.94)));
box-shadow: inset 1px 0 shade (@bg_color, 1.1),
inset -1px 0 shade (@bg_color, 1.1),
inset 0 1px shade (@bg_color, 1.1),
inset 0 -1px shade (@bg_color, 1.01);
}
/* overlay scrollbar */
OsThumb {
color: shade (@fg_color, 1.6);
}`
and 'gtk.css'
in the .config/gtk-3.0 section and /gtk-2.0 section
`/**************
* Scrollbars *
**************/
.scrollbar {
-GtkScrollbar-has-backward-stepper: 1;
-GtkScrollbar-has-forward-stepper: 1;
-GtkRange-slider-width: 16;
-GtkRange-stepper-size: 16;
-GtkRange-stepper-spacing: 0;
-GtkRange-trough-border: 0;
-GtkScrollbar-min-slider-length: 30;
}`
Perhaps I do not know where to put these for Geany?
Thanks James Niland
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1226
Currently the foreground colors of all colored lines in the message window are hardcoded in the get_color function in msgwindow.c. This works fine on white background, but with a dark GTK-theme the compiler error messages are barely readable. Would it be possible to make these colors configurable in the colorscheme?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1376
If the item "Context Action" is selected from the context menu then nothing happens if no action is configured for the current filetype.
It would be more user friendly if a little message window pops up, pointing to the corresponding section in the geany manual.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1641