WEZterm config to open Claude Code in a sidebar

There is a post about how I migrated to WEZterm, which I still need to write at some time in the future.

Preliminary skirmish

But let’s assume I already wrote the post. I’m really happy with the terminal. I needed to migrate away from Alacritty+Tmux because of the lack of Windows support from Tmux. Overall it was a good decision to migrate. The only thing that currently bothers me is that there is a “bug” where the font rendering misses some characters but brings them back on config reload. (cmd+r)

Here starts the main post

After starting my journey with Claude Code, I needed a handy shortcut to open CC in a 1/3 split pane. Here is the part of my config, which is doing the Job:

config.keys = {
        --...
	{
		key = "c",
		mods = "LEADER|SHIFT",
		action = act.SplitPane({
			direction = "Right",
			command = { args = { "bash", "-lc", "claude" } },
			size = { Percent = 33 },
		}),
	},
	--...
}

You'll hit leader & shift+c and it will open a 1/3 sidebar with Claude Code in it. Done.

For me it is a nice little helper. Hopefully for someone else too. Let me know if this was helpful.


37 of #100DaysToOffload
#log #dev #claude #wezterm
Thoughts? Discuss...