Closed djensenius closed 2 years ago
set_tab_title doesnt take arguments, it's meant for interactive usage only.
map f1 set_tab_title
will work fine. https://sw.kovidgoyal.net/kitty/actions/#action-set_tab_title
And here I have added support for supplying arguments to this action: https://github.com/kovidgoyal/kitty/commit/5b28aed0b116621c7dad5e0b3fe60ef13399fb4c
Awesome!!! Thank you!
I'm still seeing it not change my tab title, but that could be another issue in my config.
https://user-images.githubusercontent.com/782512/187228470-b7f792c0-95fe-4756-ace6-93b9764bca44.mov
You have some custom tab bar I am guessing, first make sure it works with the default tab bar
I am seeing this issue too. Trying to rename a tab results in a no-op. (The tittle doesn't change)
Kitty 0.26.0 MacOS 12.5
# BEGIN_KITTY_THEME
# Everforest Dark Medium
include current-theme.conf
# END_KITTY_THEME
# Set the value of kitty_mod modifier for all mappings
kitty_mod cmd
# Remove all default mappings.
clear_all_shortcuts yes
# Reload config
map kitty_mod+shift+r load_config_file
# Misc
copy_on_select yes
scrollback_lines 5000
# Fonts
font_family Fira Code Retina
font_size 13.0
# MacOS Options
macos_option_as_alt yes
macos_thicken_font 1.0
macos_titlebar_color background
macos_show_window_title_in none
macos_quit_when_last_window_closed yes
## Keymaps
# move words by alt left/right
map alt+left send_text all \x1b\x62
map alt+right send_text all \x1b\x66
# Change font sizes
map kitty_mod+equal change_font_size all +1.0
map kitty_mod+minus change_font_size all -1.0
map kitty_mod+0 change_font_size all 0
# Clipboard operations
map kitty_mod+c copy_to_clipboard
map kitty_mod+v paste_from_clipboard
map kitty_mod+s paste_from_selection
# easier tab navigation
map kitty_mod+1 goto_tab 1
map kitty_mod+2 goto_tab 2
map kitty_mod+3 goto_tab 3
map kitty_mod+4 goto_tab 4
map kitty_mod+5 goto_tab 5
map kitty_mod+6 goto_tab 6
map kitty_mod+7 goto_tab 7
map kitty_mod+8 goto_tab 8
map kitty_mod+9 goto_tab 999
map kitty_mod+left previous_tab
map kitty_mod+right next_tab
# Tabs
# map kitty_mod+t new_tab
map kitty_mod+t new_tab_with_cwd
map kitty_mod+w close_tab
map kitty_mod+p previous_tab
map kitty_mod+n next_tab
#map kitty_mod+z toggle_layout vertical
map kitty_mod+l next_layout
map kitty_mod+shift+i set_tab_title
# Windows
map ctrl+z next_window
map kitty_mod+enter new_window_with_cwd
map kitty_mod+[ prev_window
map kitty_mod+] next_window
## Resize windows
map kitty_mod+shift+left resize_window narrower 2
map kitty_mod+shift+right resize_window wider 2
map kitty_mod+shift+up resize_window taller 2
map kitty_mod+shift+down resize_window shorter 2
## Navigate windows
map kitty_mod+left neighboring_window left
map kitty_mod+right neighboring_window right
map kitty_mod+up neighboring_window up
map kitty_mod+down neighboring_window down
# Scrolling
map kitty_mod+/ show_scrollback
map kitty_mod+y scroll_line_up
map kitty_mod+e scroll_line_down
map kitty_mod+u scroll_page_up
map kitty_mod+d scroll_page_down
map kitty_mod+shift+g scroll_end
map kitty_mod+g scroll_home
# Tab Configuration
tab_bar_edge top
tab_bar_style powerline
tab_powerline_style slanted
Then I need a way to reproduce. Bisect your kitty.conf and post a minimal version that reproduces.
I tried it with your full config and it works for me, pressing super+shift+i and typing in a new tab title, the title in the tab bar changes, as expected.
https://gist.github.com/djensenius/56e5826695be722913a20c54c967e81e
Here is one without custom tabs. It does not rename the tab, just keeps the path as the title. I'm on macOS.
ah, macOS. You are probably suffering from a side-effect of #5439.
TO confirm start kitty from another terminal as
LANG=en_US.UTF-8 /Applications/kitty.app/Contents/MacOS/kitty
and it should work
Aha! That did indeed work!
Describe the bug
set_tab_title
is not workingTo Reproduce I have shortcuts to quickly title tabs: For example:
This fails as following:
Further, if I try to interactively set the title, it fails silently.
Screenshots If applicable, add screenshots to help explain your problem.
Environment details
Additional context