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
```
../../src/build.c: In function ‘build_load_menu_grp’:
../../src/build.c:2271:19: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=]
sprintf(cmdbuf, "%02u", cmd);
^~~~~~
In file included from /usr/include/stdio.h:862:0,
from ../../src/tagmanager/tm_source_file.h:13,
from ../../src/tagmanager/tm_tag.h:32,
from ../../src/app.h:31,
from ../../src/build.c:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output between 3 and 4 bytes into a destination of size 3
return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
I believe this to be a false positive as the affected code is explicitly guarded to prevent said overflow. The new warning is [described a bit here](https://gcc.gnu.org/gcc-7/changes.html).
Making the buffer one byte larger works around the warning.
My version: gcc (Ubuntu 7.2.0-8ubuntu3) 7.2.0
--
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/1683
Noticed with GCC 7 using `-Wall -Wextra -Wno-unused-parameter` warning options.
There's still a warning in `scintilla/src/Editor.cxx:205` but I left that for upstream to fix.
For some reason the warning mentioned in Issue #1683 doesn't occur anymore here, so I didn't fix it.
It would be great if someone could double-check the switch case fall-through changes to ensure I didn't actually mask real bugs, and that the bug I fixed in `keybindings.c` was actually correct.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/1725
-- Commit Summary --
* Fix pointer and character constant comparison
* Fix comparison between signed and unsigned integers
* Fix missing initializer for field warnings
* Fix missing initializer for field warnings in parsers
* Adjust 'fall through' comments to be recognized by GCC
* Add more 'fall through' comments for switch cases
* Remove some unused variables
* Fix comparison between signed and unsigned integers
* Add 'fall through' comments and fix actual bug
-- File Changes --
M ctags/main/parse.c (4)
M ctags/main/xtag.c (10)
M ctags/parsers/actionscript.c (20)
M ctags/parsers/cobol.c (12)
M ctags/parsers/fortran.c (4)
M ctags/parsers/html.c (10)
M ctags/parsers/perl.c (2)
M ctags/parsers/r.c (1)
M src/editor.c (7)
M src/encodings.c (4)
M src/highlighting.c (3)
M src/keybindings.c (2)
M src/search.c (1)
M src/tools.c (1)
-- Patch Links --
https://github.com/geany/geany/pull/1725.patchhttps://github.com/geany/geany/pull/1725.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/1725