Geany – A flyweight IDE
geany.org
geany.org
Not only that it can be used to compile programs directly, it's a bit more than just a basic editor. It has tabs, syntax highlighting, plugins, great line bookmarks, a function/symbol sidebar, autocomplete, multiline edit, color schemes, powerful search/replace and a sound way to wrap long lines.
Via plugins, it has a minimap, it can go directly to functions (ctrl + click on the function call), has a git integration (showing added/deleted lines not commited yet), highlight of the current variable, pretty print xml and much more stuff I do not use, like a workplace.
It's no nano (I use and like nano).
A bit more seriously, the things that Geany has that Nano doesn’t are a GUI and plugins. Personally, I consider that still a text editor, although I’m sure someone could write a LSP plugin to blur the lines a bit…
The replace function though is a lot less powerful. Even if I give it the benefit of the doubt that probably there is a way to use regexpressions in an arcane syntax (because just entering them definitely does not work).
Though in general that exchange is typical for nano :) So many think it can do almost nothing and then are surprised when it can do so much more. Often included me. Like syntax highlighting, it was cool when I found out it can do that.
can you share your nano configuration?
But it was more to describe real tabs. I don't see them in nano, just a bar at the top with "[1/n] filename", and no tabs. Searching for nano and tabs does not help of course, and I saw nothing in the manpage. So it was a try to describe the kind of tabs geany has.
Also works in tmux - you can drag your splits to resize them, or select a tmux "tab" to switch to it. You can also select text and then do things with it, like search back in the scrollback for other occurrences, or copy it to the system clipboard. Right click even brings up an in-cli context menu.
Is there any command-line text editor that people actually use to write in? My impression is that the only moderately popular ones are ed and sed and that people only use them to make specific edits to files they wrote the bulk of somewhere else.
As to CLI editors... I use cat all the time to make notes. Because it's straightforward. Firing up vim or emacs would trigger a mental context-switch (caused by screen redraw), while cat is a good CLI citizen --- it's the best thing to make quick notes with 0 distractions.
That's an alternative way of using it. And half the things you have in GUI mode stop working.
> Vim is a GUI too
Are you speaking about GVim? That's still really a terminal with Vim launched. You still can't have e.g. headings in documents rendered at a different font size than the rest of the content. You still have to deal with the nonsense of patched fonts to get nice-looking arrows with powerline. Sounds like TUI to me.
can the thing differ between xyz in a comment, as the name of a class, as a field and as a local variable inside a method? I.e. if I write a class xyz with a field xyz and a method xyz() and that method contains the variable xyz used a number of times, will the thing be able to rename any single of those across the whole project without messing up?
If it can: it is probably an ide. If not: it is not an ide.
Sounds like you didn’t explore much, or try the plugins? It has an order of magnitude more functionality than nano.
I'm always on the lookout for a good lightweight code editor to try out. I looked into Geany once and was excited to see that it had a Vim plugin. Unfortunately, reading the docs for it turned me away from it very quickly.
The first thing the author of the Vim plugin for Geany says in the FAQ is that plugin is written by a guy who doesn't use Vim. Which sounds a little strange but I kept reading. Later in the FAQ, he implies that the plugin sucks, Vim sucks, and that he only wrote it to quell the "constant whining of Vim users."
Needless to say, I will not be trying (let alone using) Geany as long as the prevailing attitude of the author of one of the plugins I _would_ use the most holds users in this level of sheer disdain.
Edit: Also, while the dev admits that they don't use vim, they also say that they enjoy working on the plugin and repeatedly ask users to submit bug reports so that they can patch the plugin.
They're also really open to patches and contributions. IMO, this is a perfect example of the true FOSS spirit.
I think you're being unjustly harsh: https://plugins.geany.org/vimode.html#why-does-vimode-suck-s...
Seems more of a lesson of missing the forest for the trees, because a couple of trees at the edge of the forest gave a dirty look.
Why would anyone want an editor with a "Vim plugin"? Why not simply use Vim?
While it may be possible to set this up with vim plugins, it's easier to just plug vim bindings into my IDE.
An alternative for people like me is SciTE.
As you said, perhaps it's perspective, but even on my latest build (Ryzen 3600/RX5600XT/NVMe SSD) VSCode is agonizing compared to Notepad++ on Windows and Geany on Linux.
you're clearly not keeping 2793 files in your session.xml
That said, my usage is not sane and is just a reflection of my organization capabilities and the constant postponement of switching to a better editor (one with good multi-sessions management, for example). A large part of the files are RFCs by the way, that I need from time to time (or just don't care about closing).
I wouldn't be surprised if Geany were much better by the way, there's a lot I dislike in N++.
CudaText:
http://uvviewsoft.com/cudatext/
KATE:
I'm familiar with Kate, and it works fine but I have to spend more time getting it the way I want it than I do with Geany so I usually just install the latter. My needs are modest compared to most sysadmin and developer types, so (as with Geany and N++) I don't use the bulk of its features.
I tried out Sublime Text when I was using a Mac as my main workstation, but it didn't jive with my workflow so I stayed with TextWrangler on that platform. I've since stopped using my Mac for anything other than experimenting with music production (I don't like the direction the OS is going these days) so a text editor is less of a concern there.
When in full on coding mode I prefer vi, rest of the time use Geany. Have tried regularly most other IDEs and text editors and none as fast, reliable, easy to install and use as Geany.
It’s perfect for me. YMMV.
It's a capable editor. GTK based, which means on Windows the UX is not native. Still, it can be installed stand alone, GTK is packaged in.
It's not wise that they omitted including most of the plugins on Windows, as it kills its main selling point. Noone is going to bother to build plugins while on Windows. I hope it was just a recent packaging glitch, as MacOS version comes with all plugins built along, which you can enable on demand.
It's a nice altenative for quick exploratory work on some unknown codebases, as Geany extracts/indexes tags and allows one to jump to function defs, vars and such. However you need to have the relevant files already opened, otherwise you need to resort to Find in files to locate where function/ symbol is defined. This may be tedious in heavily structured projects. That's where an actual IDE excells.
But it works! It's a nice tool to have in a portable toolbox... However, looking through its GitHub pages looks like the developers are tired.
By the way, on Windows a nice lightweight alternative is `notepad2-mod`, also Scintilla based, needs no installation, native UI (a little bit too verbose menus).
Back to geany!
[2] http://blog.svenbrauch.de/2011/09/09/kdev-python-argument-ty...
Could you report issues to Geany devs?
I keep rushing out and trying newfangled wonderware for the alleged features it will offer me and without which I cannot be supposed to live. And I keep, regular as clockwork, coming back to sane and solid Geany with its speed, straightforwardness, sanity, discoverability, and allround just-so convenience.
Cross-platform and lightweight (as in memory) is a nice feature to have, especially if you want to get going really fast. Great for beginners too!
It was my choice as it was small lightweight and could open large csv and xml.
After that did not follow it, good to see it’s been constantly updated and developed.
Lots of functionality is in plugins, such as highlight word and close brackets/quotes, xml formatters I need for work, etc.
I often pair it with micro for consistent key bindings in the terminal if not geany itself over sshfs.
I'm surprised an HN reader could think there were nine text editors and couldn't be bothered to google it.
Fond memories of Geany, though, and probably my first choice if I were on some super-constrained low-ram GTK environment, instead of my cushy Plasma desktop.
I've been using VSCode (& Codium on my linux machine) for c++ dev. I have the debugger and build tasks all set up and feel happy about that. Wouldn't mind having something a bit more reliable. I get this weird bug in VSCode where CTRL+P doesnt index all the files in the project. I have to manually navigate to the file, open it, and then CTRL+P can find it. I usually end up working with both Sublime Text and VS Code open. Sublime for code reading, VS Code for code writing.
I still feel like Sublime just dropped the ball with poor plugin support and thats what gave VS Code its edge...
Geany is not improved fast enough these days, e.g. debugger was broken, markdown support is not as good, etc. In the core, geany uses scintilla(which is what is used by Notepad++), its capability is restricted by whatever scintilla provides.
I'm not so bothered about lightweight as I need horsepower to build my projects anyway.
The world has moved on from hand scripted build commands. (for better or worse).
Software-drawn GUIs always stick out like a sore thumb and look/feel clunky; it's the same reason I hate using anything built with Java as everything always feels so emulated.
Also resizing Geany's window was incredibly laggy as the interface was re-drawn.
How does a text editor also act as a build system? Do they mean dependencies are automatically discovered and compiled? Or do they mean it integrates with a makefile where you still need to specify the dependencies and the text editor will automatically run it when files change?
Myself I don't use this feature, I mostly use PHP code. I am very happy with Geany as a lightweight IDE or texteditor and have been using it for years.