Hello Geany List,
I am trying to create a shortcut key to insert an in-line block.
Ideally what I would like is to type Ctrl+KEY which then produces { | }.
Searching through the Keybindings documentation in the Geany manual, I
found that KEY=4 works, but no other alpha key works.
I have made the following additions to my snippets.conf:
[Special]
brace_inline={ %cursor% }
[Keybindings]
brace_inline=<Ctrl>4
block_cursor=<Ctrl>8
[C++]
bi_=%brace_inline%
The <Ctrl>4 binding works.
The <Ctrl>8 binding works
The bi_TAB snippet works.
It took quite a bit of experimenting and searching to discover the
Ctrl+4 solution. I really would like to get this under my belt as key
binding in snippets is a really very useful feature. My questions are:
Is there somewhere an index of which keys have been allocated?
Which keys I can use in [keybindings]
Many thanks for any hints as to where I should be looking.
--
Geoff
Hi
I just upgrade Geany to 1.33 on linux mint from PPA [1].
It seem's since that version, the horizontal mouse scroll ([shift] +
scroll mouse) don't scroll all document width, it scroll a bit and just
stop, can't move more at right with this method, use of scrollbar is
required :(
Do you use this very convenient mouse scroll ?
If no mistake this behavior come with 1.33, is it for everyone ? is it
intended ? Is it reversable ?
Thanks
Jérôme A
[1] http://ppa.launchpad.net/geany-dev/ppa/ubuntu xenial
On Tue, 17 Apr 2018 18:46:13, Colomban Wendling wrote:
> The Geany include paths are suspicious, they should start with
> "/user/kklein/geany/1.33/", not "//". There's likely something fishy
> with your installation; how did you configure it?
Here is the sequence of steps I originally followed to build Geany (taken
from here: https://wiki.geany.org/howtos/relocatable_build):
$ ./configure --enable-binreloc --prefix=/
$ make
$ make install DESTDIR=/user/kklein/geany/1.33
My intention was only to install Geany to a non-default directory and I
thought those were the steps to follow.
I did a clean build/install of Geany using the following:
setenv PATH /user/kklein/lib/intltool/0.50.2/bin:$PATH
.configure --prefix=/user/kklein/geany/1.33
make
make install
I then built and installed the plugins using the following:
setenv PKG_CONFIG_PATH /user/kklein/geany/1.33/lib/pkgconfig
setenv PATH /user/kklein/lib/intltool/0.50.2/bin:$PATH
./configure --prefix=/user/kklein/geany/1.33
make
make install
And everything worked. Thanks for the help.
On Thu, 12 Apr 2018 at 19:36:38, Colomban Wendling wrote:
> Okay, that's good, it suggests pkg-config is working fine. Now, just to
> be sure, what does
>
> $ PKG_CONFIG_PATH=/user/kklein/geany/1.33/lib/pkgconfig pkg-config
> --cflags --libs geany
>
> give you?
-DGTK -pthread -I//include/geany -I//include/geany/tagmanager
-I//include/geany/scintilla -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0
-I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libpng15 -I/usr/include/libdrm -I/usr/include/harfbuzz
-L//lib -lgeany -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0
-lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0
-lfontconfig -lgobject-2.0 -lglib-2.0 -lfreetype
> And similarly for glib.
Here is the command I ran:
pkg-config --cflags --libs glib-2.0
Here is the output:
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lglib-2.0
On Wed, 11 Apr 2018 at 18:06:18, Colomban Wendling wrote:
> What does
> $ PKG_CONFIG_PATH=/user/kklein/geany/1.33/lib/pkgconfig pkg-config
> --modversion geany
> give you?
1.33
> Similarly, what does
> $ pkg-config --modversion glib-2.0
> give you?
2.46.2
On Thu, 12 Apr 2018 at 08:24:07, Lex Trotman wrote:
> And do you have the development package for glib installed?
How do I determine if I have the development package installed as opposed
to the standard glib? I searched for this but was not able to find an
answer.
On Mon, 9 Apr 2018 at 17:38:50, Colomban Wendling wrote:
> Why are you setting GLIB_CFLAGS? You shouldn't do that manually but on
> *very* specific cases. Normally it should discover the appropriate
> flags through the pkg-config system, and those should be correct.
I set that flag because I was receiving the exact same error before I set
it. I tried a new build with only the following sequence of commands:
setenv PATH /user/kklein/lib/intltool/0.50.2/bin:$PATH
setenv PKG_CONFIG_PATH /user/kklein/geany/1.33/lib/pkgconfig
setenv GEANY_CFLAGS -I/user/kklein/geany/1.33/include/geany
./configure --prefix=/user/kklein/geany/1.33
make
The first 3 commands are necessary to prevent other errors, yet when I run
"make", I still receive the following error:
Making all in src
make[3]: Entering directory `/user/kklein/geany-plugins-1.33/utils/src'
CC libgeanypluginutils_la-filelist.lo
filelist.c:19:18: fatal error: glib.h: No such file or directory
#include <glib.h>
^
compilation terminated.
Is there some other variable I need to set?
Hi there,
After some hours dealing with the information
<https://wiki.geany.org/howtos/configurebuildmenu> on how to configure the
Build menu, and checking out several examples in GitHub, I did not succeed.
Hope you can help me with this, cause it's the last step to make our IDE,
with Geany-inside, work properly. This is what I need:
The IDE is to process JSON and LaTeX files, and Geany is to validate
correctness, and show an error report in the message window.
With the current configuration Geany will automatically detect these
filetypes and applies the customized highlighting. From this point, it is
intended that Shift-F9 obtains the report by launching the right local
program 'check_json' and 'check_latex', and filtering the result with a
concrete regular expression.
What is the [build-menu] section to have these scripts and REs in the right
place when the IDE is run, such that the user just has to open the file,
press Shift-F9 and get the report?
Thanks in advance.
francisco
I am trying to build Plugins for Geany 1.33 under RHEL 7.3. Geany was
already successfully built on this machine and is installed at:
/user/kklein/geany/1.33
>From the directory where the geany plugins files were extracted I ran the
following commands:
setenv PKG_CONFIG_PATH /user/kklein/geany/1.33/lib/pkgconfig
setenv GLIB_CFLAGS -I/usr/include/glib-2.0
./configure --prefix=/user/kklein/geany/1.33
--exec-prefix=/user/kklein/geany/1.33
--with-geany-libdir=/user/kklein/geany/1.33/lib
make
The configure step produces the following header file errors, but nothing
related to glib.h:
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
conftest.c:26:42: fatal error: CoreFoundation/CFPreferences.h: No such file
or directory
conftest.c:26:37: fatal error: CoreFoundation/CFLocale.h: No such file or
directory
conftest.c:63:18: fatal error: util.h: No such file or directory
conftest.c:64:21: fatal error: libutil.h: No such file or directory
Here is the make output:
make all-recursive
make[1]: Entering directory `/user/kklein/geany-plugins-1.33'
Making all in po
make[2]: Entering directory `/user/kklein/geany-plugins-1.33/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/user/kklein/geany-plugins-1.33/po'
Making all in utils
make[2]: Entering directory `/user/kklein/geany-plugins-1.33/utils'
Making all in src
make[3]: Entering directory `/user/kklein/geany-plugins-1.33/utils/src'
CC libgeanypluginutils_la-filelist.lo
filelist.c:19:18: fatal error: glib.h: No such file or directory
#include <glib.h>
^
compilation terminated.
make[3]: *** [libgeanypluginutils_la-filelist.lo] Error 1
make[3]: Leaving directory `/user/kklein/geany-plugins-1.33/utils/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/user/kklein/geany-plugins-1.33/utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/user/kklein/geany-plugins-1.33'
make: *** [all] Error 2
I ran the following command:
cpp -v /dev/null -o /dev/null
Which produced the following (truncated) output:
/usr/local/include
/usr/include
If I run "locate glib.h", I receive the following (truncated) output:
/usr/include/glib-2.0/glib.h
Between that and my setting GLIB_CFLAGS to "-I/usr/include/glib-2.0", I am
not sure why I am receiving this error. Does anyone have any suggestions?
Thanks
Thanks for the recommendations everyone. The libraries installed on the
machine I want to run Geany on are so far out of date that even jhbuild (to
build a local updated version of GTK+) won't run without updating a list of
dependencies. I decided it was easier to create a shell script that SSH's
to the newer machine where I was able to build Geany and calls Geany from
there. This allows me to run Geany on the older machine.
I have changed this on a local copy of 1.34 and it works fine - just one function, search_show_find_dialog had to be changed in Search.c
You can leave the search widget open and highlight the next text to find. It transfers to the widget when you click find again without having to close the widget.
Modified file attached if anyone wants it.
I only implemented it in the basic find, not in find-replace nor find-in-files although it looks like the changes would transcribe quite easily.
Compiling for Linux was straightforward and I did manage to make a windows installer using the help on https://wiki.geany.org/howtos/win32/msys2
That was not so straighforward !
Has anyone made the "Automated build via MAKEPKG file" yet ?
The only problem that I have with only the windows build is that it crashes on help-about. Everything else looks fine.
Does anyone have an idea why ? Does windows require something extra for that?
K