Skip Navigation

User banner
Helix Editor

Members
0
Posts
22
Created
3 yr. ago

Remove the background from a theme

Very quickly • Create the ~/.config/helix/themes directory. • Create your custom theme; in my case, ayu_nb.toml. • In it, inherit from the theme you’re currently using. And add the "ui.background" = {}

 toml
inherits = "ayu_dark"
"ui.background" = {}

• Edit your ~/.config/helix/config.toml to use your theme.

 toml
theme = "ayu_nb"

[...]

With these steps, you go from this image to this image note: ptyxis terminal with Ayu theme

SOLVED

Launching Helix with default theme in tmux causes unexpected change in colors

solution by @wada@lemmy.ml Hi, I'm new to both using Helix and terminal multiplexers in general, so I'd appreciate some help with this. When I launch Helix without tmux, I see the default theme with a purple background, which I like: image But when I launch it using tmux, even with the -2 flag, Helix does not display the same color scheme: image I have tried making a config.toml file with an [editor] section and set true-color to true, but that didn't appear to help. How can I use the default theme with tmux? I'm using GNOME 47 with wayland on Fedora, in case that matters. Any post I've seen involving Helix, tmux & colors seem to be with custom themes, so I don't know which threads are relevant to this, if any.___

How to make current filename show up as the window/console title? (Konsole being my terminal emulator)

When I'm editing with helix, I often have multiple instances of it running, one for each file, in different terminals (more precisely: in different tabs of my terminal emulator, Konsole). Currently, the title of these tabs reads just "Directoryname: helix". It would be really helpful if the titles included the current filename, so that I could see which tab has which file opened. Is there a way to do this?

How to open the parent directory relative to the current buffer

To open a file relative to the current one in Helix, you can to the do the following with 24.3:

 
:o <C-r>%<C-w>

Here, the Control-R allows you to select a register and the special register "%" contains the current file path and inserts into the command line, while the final Control-w chops off the last part of the file name leaving with you current directory. This is like :o %:h from Vim/Neovim