What Operating System(s) are you seeing this problem on?
Linux X11
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20230123-190635-dd28dbae
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
home and end keys do not work in neovim when using TERM=wezterm terminfo inside tmux.
My tmux configuration:
# 256 colour
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
I tried to change the default-terminal to wezterm but it introduces another problem: and doesn't work in zsh and the cursor changes to box (not |)
If I don't pass TERM=wezterm it works well in neovim.
To Reproduce
No response
Configuration
I don't think any config is relevant here.
local wezterm = require("wezterm")
return {
color_scheme = "Dracula (Official)",
font = wezterm.font_with_fallback({
"JetBrainsMono Nerd Font",
"Fira Code Nerd Font",
}),
font_size = 14.3,
hyperlink_rules = {
-- Linkify things that look like URLs and the host has a TLD name.
-- Compiled-in default. Used if you don't specify any hyperlink_rules.
{
regex = "\\b\\w+://[\\w.-]+\\.[a-z]{2,15}\\S*\\b",
format = "$0",
},
-- linkify email addresses
-- Compiled-in default. Used if you don't specify any hyperlink_rules.
{
regex = [[\b\w+@[\w-]+(\.[\w-]+)+\b]],
format = "mailto:$0",
},
-- file:// URI
-- Compiled-in default. Used if you don't specify any hyperlink_rules.
{
regex = [[\bfile://\S*\b]],
format = "$0",
},
-- Linkify things that look like URLs with numeric addresses as hosts.
-- E.g. http://127.0.0.1:8000 for a local development server,
-- or http://192.168.1.1 for the web interface of many routers.
{
regex = [[\b\w+://(?:[\d]{1,3}\.){3}[\d]{1,3}\S*\b]],
format = "$0",
},
-- Make task numbers clickable
-- The first matched regex group is captured in $1.
-- {
-- regex = [[\b[tT](\d+)\b]],
-- format = "https://example.com/tasks/?t=$1",
-- },
-- Make username/project paths clickable. This implies paths like the following are for GitHub.
-- ( "nvim-treesitter/nvim-treesitter" | wbthomason/packer.nvim | wez/wezterm | "wez/wezterm.git" )
-- As long as a full URL hyperlink regex exists above this it should not match a full URL to
-- GitHub or GitLab / BitBucket (i.e. https://gitlab.com/user/project.git is still a whole clickable URL)
{
regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
format = "https://www.github.com/$1/$3",
},
},
-- undercurl becomes ugly if underline_position < -4
underline_position = -4,
keys = {
{
key = "Enter",
mods = "ALT",
action = wezterm.action.DisableDefaultAssignment,
},
},
}
Expected Behavior
No response
Logs
No response
Anything else?
No response
What Operating System(s) are you seeing this problem on?
Linux X11
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
20230123-190635-dd28dbae
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
home and end keys do not work in neovim when using TERM=wezterm terminfo inside tmux.
My tmux configuration:
I tried to change the default-terminal to
weztermbut it introduces another problem: and doesn't work in zsh and the cursor changes to box (not |)If I don't pass
TERM=weztermit works well in neovim.To Reproduce
No response
Configuration
I don't think any config is relevant here.
Expected Behavior
No response
Logs
No response
Anything else?
No response