Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
4
votes
3
answers
4242
views
Geany text editor - caret or cursor
How can I set the caret style in Geany editor to look **bold**, something similar to the terminal caret style or to enhance its observability. Any tweaks available. Thanks for any suggestion as the default look is difficult to point out quickly due to its very thin look.
How can I set the caret style in Geany editor to look **bold**, something similar to the terminal caret style or to enhance its observability. Any tweaks available. Thanks for any suggestion as the default look is difficult to point out quickly due to its very thin look.
user152963
Feb 6, 2016, 10:35 AM
• Last activity: Mar 29, 2024, 07:34 PM
0
votes
0
answers
131
views
Geany: Possible to automatically enable/disable line wrap dependent on file type?
In [Geany][1] text editor / IDE, is there a way to tell it to automatically enable **line wrapping** for certain file types, but not for others? For example, for `.txt` files, I would like it to always enable **line wrapping**, but for `.c` and `.asm` files, I do not want **line wrapping** enabled....
In Geany text editor / IDE, is there a way to tell it to automatically enable **line wrapping** for certain file types, but not for others?
For example, for
.txt
files, I would like it to always enable **line wrapping**, but for .c
and .asm
files, I do not want **line wrapping** enabled.
Amazon Dies In Darkness
(281 rep)
Feb 28, 2024, 03:01 AM
3
votes
2
answers
657
views
How to set the color of the cursor in Geany?
I'm using Geany on Windows and would like to set the cursor colour to something more conspicuous.  In my `AppData\Roaming\geany\filedefs\filetypes.common`, I have set caret=caret;;true cursor_color=yellow While the caret-setting (changing the default to a block cursor) works (which ob...
I'm using Geany on Windows and would like to set the cursor colour to something more conspicuous.
In my
AppData\Roaming\geany\filedefs\filetypes.common
, I have set
caret=caret;;true
cursor_color=yellow
While the caret-setting (changing the default to a block cursor) works
(which obviously indicates that I configured the setting in the correct file),
the cursor_color
setting does not seem to have any effect,
as the cursor is still a light grey.
What did I do wrong?
How can I set the color of the cursor in Geany?
user1934428
(767 rep)
Jun 22, 2020, 11:58 AM
• Last activity: Jun 5, 2022, 07:03 PM
0
votes
0
answers
140
views
Why does Neovim behave differently from Geany when launched with nohup and &?
When I open [Geany][1] I need to launch it with [nohup][3], e.g. `nohup geany test.txt &` so that when I close my shell, from which I launched it Geany does not get closed. I noticed that this is not the case with [Neovim][2], simply `xdg-open test.txt` is enough (provided that I had run `xdg-mime d...
When I open Geany I need to launch it with nohup , e.g.
nohup geany test.txt &
so that when I close my shell,
from which I launched it Geany does not get closed. I noticed that this is not the case
with Neovim , simply xdg-open test.txt
is enough (provided that I had run xdg-mime default nvim.desktop text
beforehand). Executing nvim test.txt &
or nohup nvim test.txt &
results in the process being launched but without the editors window even being visible.
**1.** In the situation described above, why go **Geany** and **Neovim** behave differently?
**2.** In the environment where I have access to nvim
binary but have not done yet (or cannot run) something like xdg-mime default nvim.desktop text
or mimeopen -d .txt
, how might I launch nvim
in a new window so that it does not get closed when I close the shell from which I launched it?
P.S. I use Bash.
John Smith
(827 rep)
Jun 5, 2022, 11:47 AM
1
votes
1
answers
572
views
Top bar not showing when i start Geany in GNOME
When i start Geany in GNOME both the top and title bar disappear leaving just the ide, also when i try to move the window to break this it does not let me. i have already tried reinstalling the editor with apt-get and looking through the gnome tweaks tool but neither have worked.[
Fletcher
(73 rep)
Jan 8, 2019, 04:52 PM
• Last activity: Apr 8, 2022, 10:11 AM
0
votes
0
answers
215
views
Geany: wheres the status bar?
Im using geany to write code, used it for ages, I like the part where there is a status bar, or tab, compiler, messages, and terminal tab. those have dissapeared, and I cant figure out how to get them back. I even tried purging geany, and reinstalling, but they have not returned. I am on a raspberry...
Im using geany to write code, used it for ages, I like the part where there is a status bar, or tab, compiler, messages, and terminal tab. those have dissapeared, and I cant figure out how to get them back. I even tried purging geany, and reinstalling, but they have not returned. I am on a raspberry pi running ubuntu Mate 20.04. I also tried building from source code, but I still don't have these features. I must have clicked something, but I can't figure out what. I looked all over the preferences, and tried reloading the config files. Can someone tell me how to get these features back?

j0h
(3949 rep)
Feb 2, 2022, 11:34 PM
3
votes
1
answers
3430
views
Customising markdown syntax highlighting in Geany
I'm using Geany 1.23.1 on Lubuntu 13.10. I've copied over `filetypes.markdown` from `/usr/share/geany` to `~/.config/geany/filedefs`. `filetypes.markdown` has the following content: # For complete documentation of this file, please see Geany's main documentation [styling] # Edit these in the colorsc...
I'm using Geany 1.23.1 on Lubuntu 13.10.
I've copied over
filetypes.markdown
from /usr/share/geany
to ~/.config/geany/filedefs
.
filetypes.markdown
has the following content:
# For complete documentation of this file, please see Geany's main documentation
[styling]
# Edit these in the colorscheme .conf file instead
default=default
strong=string_3
emphasis=string_4
header1=keyword_1
header2=keyword_1
header3=keyword_1
header4=keyword_1
header5=keyword_1
header6=keyword_1
ulist_item=tag_unknown
olist_item=tag_unknown
blockquote=tag_unknown
strikeout=tag_unknown
hrule=tag_unknown
link=keyword_1
code=attribute_unknown
codebk=attribute_unknown
[settings]
# default extension used when saving files
extension=mkd
# sort tags by appearance
symbol_list_sort_mode=1
Why is the third line present: **# Edit these in the colorscheme .conf file instead**?
What is wrong with editing filetypes.markdown
itself? I would think that, at least from a user's perspective, editing ~/.config/geany/filedefs/filetypes.markdown
(or any other filetypes file) would be preferable to editing a .conf
file (in ~/.config/geany/colorschemes
) as suggested because editing a .conf
file would affect all filetypes not just filetype.markdown
.
user15760
Oct 30, 2013, 03:44 AM
• Last activity: Oct 19, 2021, 06:06 PM
4
votes
3
answers
1596
views
How to build third-party Geany plugins?
After downloading and extracting Geany's [JSON Prettifier][1], and installing `yajl`, the `make` command does raise this error: /bin/sh: 1: pkg-config: not found ./geany_json_prettifier.c:32:25: fatal error: geanyplugin.h: No such file or directory compilation terminated. Makefile:16: recipe for tar...
After downloading and extracting Geany's JSON Prettifier , and installing
yajl
, the make
command does raise this error:
/bin/sh: 1: pkg-config: not found
./geany_json_prettifier.c:32:25: fatal error: geanyplugin.h: No such file or directory
compilation terminated.
Makefile:16: recipe for target 'build' failed
make: *** [build] Error 1
What is left in the system's configuration or Makefile
to make it work?
Update: under Lubuntu 16.04.
nightcod3r
(972 rep)
May 7, 2017, 03:19 PM
• Last activity: Feb 16, 2021, 08:04 AM
8
votes
6
answers
5662
views
Geany: Open a new instance per workspace when opening a file in that workspace
I'm using Mate 1.2.0 in Linux Mint 13. The two text editors i use are Gedit and Geany (v0.25): i use Geany for all my coding as i prefer the syntax highlighting and some other interface features. One thing that bugs me though is this behaviour: - open a file in Geany in workspace 1 - go to workspace...
I'm using Mate 1.2.0 in Linux Mint 13. The two text editors i use are Gedit and Geany (v0.25): i use Geany for all my coding as i prefer the syntax highlighting and some other interface features.
One thing that bugs me though is this behaviour:
- open a file in Geany in workspace 1
- go to workspace 2
- double click a file to open it (in Geany)
- the desktop switches to workspace 1 again and opens the file in Geany.
When i do this in Gedit, it opens a new instance of Gedit in that workspace, which suits my style of working perfectly, where i have different projects open in each workspace.
I **can** start another instance of Geany from the programs menu, and move one into the other workspace, but it doesn't change the behaviour: I then see this:
- open a file in Geany in workspace 1
- go to workspace 2
- start a new instance of Geany from the program menu (so i now have one per workspace)
- double click a file to open it (in Geany)
- the desktop switches to workspace 1 again and opens the file in the first instance of Geany.
So it's like it always opens a file in the "primary" Geany, and switches to whatever workspace that happens to be in.
Is there a way i can change this behaviour? I'd like it to be like so:
- On opening a file: is there a Geany running in this workspace?
- yes: open the file in that Geany
- no: open a new Geany in this workspace and open the file in that.
I can't see an option relating to this in the settings. Any advice appreciated! thanks
Max Williams
(1157 rep)
Dec 2, 2015, 10:40 AM
• Last activity: Feb 2, 2021, 11:21 AM
0
votes
1
answers
900
views
How can I make a geany .tags file for a C++ library?
I would like to have auto-completion on the geany text editor (no, it's not an IDE) and for that you use .tags files. There's a plugin that creates .tags files for your programs, but I need to make one for an external C++ library (SFML, more specifically). The goal is to have geany display all the p...
I would like to have auto-completion on the geany text editor (no, it's not an IDE) and for that you use .tags files. There's a plugin that creates .tags files for your programs, but I need to make one for an external C++ library (SFML, more specifically). The goal is to have geany display all the possible classes when I type "sf::" and show the methods of said classes when I type those. This would be a huge deal because I could learn SFML much faster this way, without having to search things so much. Thanks.
tralph3
(173 rep)
Aug 5, 2020, 12:56 AM
• Last activity: Aug 5, 2020, 01:32 AM
1
votes
1
answers
3604
views
How can I find and delete a certain regular expression in the Geany text editor?
I have a sample text like this: \documentclass[a4paper]{article} \usepackage[a4paper,margin=2cm]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{color} \setlength{\parindent}{0em} \setlength{\parskip}{2ex plus1ex minus0.5ex} \newcommand{\stylea}[1]{\noindent{\textcolor[rgb...
I have a sample text like this:
\documentclass[a4paper]{article}
\usepackage[a4paper,margin=2cm]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{color}
\setlength{\parindent}{0em}
\setlength{\parskip}{2ex plus1ex minus0.5ex}
\newcommand{\stylea}{\noindent{\textcolor[rgb]{0.9, 0.9, 0.8}{\fcolorbox[rgb]{0, 0, 0}{0.2, 0.2, 0.2}{#1}}}}
\begin{document}
\ttfamily
\setlength{\fboxrule}{0pt}
\setlength{\fboxsep}{0pt}
1 \stylea{\# Author{\hspace*{1em}}: Bhishan Poudel} \\
2 \stylea{\# Date{\hspace*{1em}}{\hspace*{1em}}: May 19, 2016} \\
3 \stylea{} \\
4 \stylea{Line wrapping in geany} \\
5 \stylea{===============================================================================} \\
6 \stylea{edit > preference > editor > features > line wrapping} \\
7 \stylea{then,} \\
8 \stylea{document > line wrapping} \\
\end{document}
I want to delete all the words \stylea{ }, keeping the words inside {} intact.
I know I can find and replace \stylea{ and replace by whitespace,
but I don't even want whitespace and also want to delete the closing brace, }, at the same time.
Also can we replace words in only the selected block in Geany?
For example, if I select the lines 1 to 8, and replace stylea by styleb?
BhishanPoudel
(113 rep)
May 19, 2016, 04:32 PM
• Last activity: May 22, 2020, 11:14 AM
2
votes
1
answers
156
views
Geany: Ruby comments in erb.html break the syntax highlighting
I use Geany (v1.123.1), my favourite text editor for code editing, as it's nice and simple. One thing which it doesn't do right is the syntax highlighting of comments, in erb files (a type of ruby template for web pages). In erb files, ruby code is injected with special "erb" tags like so: ``` ``` a...
I use Geany (v1.123.1), my favourite text editor for code editing, as it's nice and simple. One thing which it doesn't do right is the syntax highlighting of comments, in erb files (a type of ruby template for web pages).
In erb files, ruby code is injected with special "erb" tags like so:
What would be ideal is if it realised these were comments, and rendered everthing in the tag (perhaps including the tags themselves, I don't mind) in the same sort of grey/brown font used for other types of comments.
Is there a fix for this, or can I edit the config myself, to make it process the comments properly?
**EDIT**: I tried doing the following:
In
and if we want render out the results, we put an =
after the start tag, like so
These are both handled properly by Geany. However, it fails to handle erb comments:
which are treated like one of the previous ones, ie as if they contained actual code. This wouldn't be a disaster, except that they break the highlighting for the rest of the file, ie everything underneath. Eg see this screengrab:

/usr/share/geany/filetype_extensions.conf
, i added this line:
Erb=*.erb;
Then I created this file: /home/max/.config/geany/filedefs/filetypes.erb
with these contents:
[styling=HTML]
[settings]
lexer_filetype=HTML
Then I closed geany, reopened it, and reloaded the config for good measure. But it hasn't made any difference. As per the answer below I also tried naming the local config file as filetypes.Erb.conf
, but that didn't work either. I think it should be called filetypes.erb
, following the format of the other config files.
Max Williams
(1157 rep)
Feb 27, 2020, 12:05 PM
• Last activity: Mar 3, 2020, 03:10 PM
0
votes
1
answers
198
views
Geany: disk full, file truncated
I was working on a text file in Geany under Debian. When I went for saving it, it said the disk was full. So I freed some space and retried so save. This time it said the file on disk was newer. I thought because it wasn't able to save so it wanted to restore the old content (it was fine to me). Ins...
I was working on a text file in Geany under Debian.
When I went for saving it, it said the disk was full.
So I freed some space and retried so save. This time it said the file on disk was newer.
I thought because it wasn't able to save so it wanted to restore the old content (it was fine to me). Instead it loaded a completely empty file!
And I found no way to recover the previous content! Even "undo" didn't work.
I still have the editor opened: is there a way to recover the original content?
Mark
(815 rep)
Apr 17, 2019, 09:22 AM
• Last activity: Apr 18, 2019, 07:17 AM
2
votes
2
answers
1353
views
how to create more than three geany custom commands with shortcuts
Geany allows creating custom commands and first three of them are available for invocation by pressing ctrl+1/2/3 respectively. How to make the fourth and subsequent ones available for shortcuts as well?
Geany allows creating custom commands and first three of them are available for invocation by pressing ctrl+1/2/3 respectively. How to make the fourth and subsequent ones available for shortcuts as well?
Alexey Bashtanov
(141 rep)
May 16, 2016, 09:21 AM
• Last activity: Feb 12, 2019, 06:52 PM
1
votes
1
answers
525
views
geany 1.32 - change color of bracket matching
In this version the highlight for matching brackets is dark blue which against a black foreground font is not a significant highlight. Ubuntu 18.04 MATE. How can I set this to a brighter color? Web query results haven't much for geany on this topic. The solution given here https://lists.geany.org/pi...
In this version the highlight for matching brackets is dark blue which against a black foreground font is not a significant highlight. Ubuntu 18.04 MATE.
How can I set this to a brighter color?
Web query results haven't much for geany on this topic. The solution given here https://lists.geany.org/pipermail/users/2015-December/009843.html does not work for me. The
filetypes-common
file does not have a [named-styles]
section so I added one.
This has no effect. Is there an updated solution, or is there something else amiss?
Stephen Boston
(2526 rep)
Jan 8, 2019, 07:06 PM
• Last activity: Jan 18, 2019, 02:52 PM
1
votes
1
answers
240
views
Anyone know why Find or Replace dialogs not coming up in Geany editor under Ubuntu 18.04?
I'm using Geany (1.32) in Ubuntu 18.04 and am finding that the dialog boxes to search within the open file using the Search-->Find... and Search -->Replace... are not coming up. At first I thought it was a keyboard shortcut issue, but it doesn't work when selecting from the menu with the mouse. EDIT...
I'm using Geany (1.32) in Ubuntu 18.04 and am finding that the dialog boxes to search within the open file using the Search-->Find... and Search -->Replace... are not coming up.
At first I thought it was a keyboard shortcut issue, but it doesn't work when selecting from the menu with the mouse.
EDIT - it seems to be a known bug, and the problem went away after disabling the Overview Plugin in Plugin Manager - :
David Trethewey
(11 rep)
Jan 11, 2019, 10:33 PM
• Last activity: Jan 14, 2019, 10:05 AM
1
votes
1
answers
812
views
Regex replace second pattern by mapping [0-9] to [q-p] in Geany?
I would like to replace `123 456 789` with `q23 r56 u89` using [Geany][1] regex. So far I can do it with multiple find and replace patterns like this: ... Find: `(\D|^)4` Replace: `\1r` Find: `(\D|^)5` Replace: `\1t` ... I want to combine these 10 statements into one using mapping of `\2` by the rul...
I would like to replace
123 456 789
with q23 r56 u89
using Geany regex. So far I can do it with multiple find and replace patterns like this:
...
Find: (\D|^)4
Replace: \1r
Find: (\D|^)5
Replace: \1t
...
I want to combine these 10 statements into one using mapping of \2
by the rule -> [qwertyuiop]
.
How can I do this in geany?
Stepan
(149 rep)
Jul 22, 2018, 05:59 PM
• Last activity: Oct 1, 2018, 09:08 PM
0
votes
1
answers
106
views
Linux Mint - Issues when executing scripts through Geany
I'm using Geany to write and execute some simple scripts in Python and I've been running into a really annoying issue lately. Occasionaly, after running the same script for a few times, the application stops working. Hitting the "run or view the current file" does nothing. Not even a terminal pops u...
I'm using Geany to write and execute some simple scripts in Python and I've been running into a really annoying issue lately. Occasionaly, after running the same script for a few times, the application stops working. Hitting the "run or view the current file" does nothing. Not even a terminal pops up, it's like I never clicked anything. The only thing I can do is edit code. It happens after 10-15 minutes of working and the only thing that seems to fix it is restarting my computer. Any ideas?
I'm running Linux Mint 18.3 and Geany 1.27
Chris K.
(31 rep)
Aug 20, 2018, 07:19 PM
• Last activity: Aug 20, 2018, 08:59 PM
1
votes
1
answers
779
views
Stack tabs when using Geany
Is there a way on Geany text editor (Linux) to stack tabs, such that there are multiple rows of tabs? Issue: Sometimes I have open 30 or so files in Geany. But Geany only shows about 10 on average (based on the size of the file). Desired solution: Specify in a configuration setting how many levels o...
Is there a way on Geany text editor (Linux) to stack tabs, such that there are multiple rows of tabs?
Issue: Sometimes I have open 30 or so files in Geany. But Geany only shows about 10 on average (based on the size of the file).
Desired solution: Specify in a configuration setting how many levels of tabs for Geany to use. E.g., 1 (default), 2, 3, 4, ... max.
More info: Is there a plugin for this which already exists? If not, how feasible is it to create a plugin for this behavior?
There
(111 rep)
May 5, 2018, 11:43 AM
• Last activity: Jun 3, 2018, 01:08 PM
0
votes
1
answers
389
views
Shortcut for execution command in Geany
In geany I have the option to modify the execution commands: [![enter image description here][1]][1] Here I created a second command for java testing with junit. Is it possible to bind the second menu option to a shortcut key? By default only the first command is bound to F5. I would like to bind th...
In geany I have the option to modify the execution commands:
Here I created a second command for java testing with junit. Is it possible to bind the second menu option to a shortcut key? By default only the first command is bound to F5. I would like to bind the second one to F6 or something else.

Cilenco
(103 rep)
Apr 29, 2018, 12:00 PM
• Last activity: Jun 1, 2018, 09:40 AM
Showing page 1 of 20 total questions