Useful Kitty overlays
Kitty has a very neat feature called overlays. It's basically a new window that covers your current window where you can do a small amount of work. This window does not count as a "real" window, so when you close whatever program was running on it, the window closes. They can be defined just by adding a line to the kitty.conf file.
Here are a few useful overlays I use.
Lazygit overlay
Overlay to pop up lazygit, which is the interface that I use for interacting with git. It's really useful, because I can pull up lazygit regardless of where I am on my terminal (inside neovim, a coding agent session, or just on the terminal itself). I use this one multiple times daily.
map kitty_mod+g launch --cwd=current --type=overlay lazygitGit Diff Overlay
Pretty useful for reviewing the changes in your current branch. It just pops up a diff that you can scroll down. This is not ideal for reviewing big pull requests, but most of my )
map kitty_mod+d launch --cwd=current --type=overlay zsh -ic "git diff main"I recommend pairing this with delta
Daily Notes overlay
I wanted to have a command that would allow me to take quick notes when I am working on something. Just as with the lazygit overlay, the advantage is that I can pull this up regardless of what I am doing on my terminal.
edit-daily-notes() {
local notes_folder="$HOME/MyNotes"
mkdir -p "$notes_folder"
local notes_file="$notes_folder/$(date '+%Y-%m-%d').md"
nvim "$notes_file"
}It creates a file with the current day in the name, example ~/MyNotes/2026-09-25.md, which I can use to take some notes. Each day a new file is created.
Adding this to an overlay is easy:
map kitty_mod+e launch --cwd=current --type=overlay zsh -ic "edit-daily-notes"So now I can do a key press and a neovim session opens on my daily notes file. If I want to search something on my past notes, I just use ripgrep on that folder inside neovim, so it's also pretty easy to search past notes if I want to.
I don't use this overlay daily, since I mostly take notes on paper. I do use it more when I am taking some sort of notes that involve code snippets, like describing the steps to test a particular feature and stuff like that.