kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
22.13k stars 907 forks source link

I seem to be missing a lot of symbols #7379

Closed jacobrreed closed 3 weeks ago

jacobrreed commented 3 weeks ago

Describe the bug image Not sure why but I am missing a lot of symbols it seems, I am using Nerd Font Symbols for symbol map as descibed in documentation, does the docs need updated to include more symbols or is that on us as the user to implement them all separately?

To Reproduce Steps to reproduce the behavior:

symbol_map U+e000-U+e00a,U+ea60-U+ebeb,U+e0a0-U+e0c8,U+e0ca,U+e0cc-U+e0d4,U+e200-U+e2a9,U+e300-U+e3e3,U+e5fa-U+e6b1,U+e700-U+e7c5,U+f000-U+f2e0,U+f300-U+f372,U+f400-U+f532,U+f0001-U+f1af0 Symbols Nerd Font Mono

Screenshots image

Environment details

kitty 0.34.1 (7f61f1f9f3) created by Kovid Goyal
Darwin jrreed-mac 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:10:42 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6000 arm64
ProductName:        macOS ProductVersion:       14.4.1 BuildVersion:        23E224
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /bin/zsh
Loaded config files:
  /Users/jrreed/.config/kitty/kitty.conf

Config options different from defaults:
active_tab_title_template     {fmt.fg._37f499}{fmt.bg.default}{fmt.fg._212337}{fmt.bg._37f499}{fmt.fg._212337}{fmt.bg._37f499} {title[:40] + (title[40:] and '…')} {fmt.fg._37f499}{fmt.bg.default} 
allow_remote_control          yes
background_blur               20
background_opacity            0.85
background_tint               0.9
bell_on_tab                   󰂞 
confirm_os_window_close       0
copy_on_select                clipboard
cursor_blink_interval         1.0
enable_audio_bell             False
enabled_layouts               ['splits', 'stack']
font_family                   JetBrains Mono
font_size                     18.0
hide_window_decorations       2
inactive_text_alpha           0.5
input_delay                   1
linux_display_server          wayland
listen_on                     unix:/tmp/mykitty
macos_custom_beam_cursor      True
macos_option_as_alt           3
macos_show_window_title_in    none
paste_actions                 frozenset({'quote-urls-at-prompt'})
repaint_delay                 1
scrollback_lines              10000
scrollback_pager_history_size 4294967295
shell_integration             frozenset({'invalid'})
show_hyperlink_targets        True
single_window_margin_width    FloatEdges(left=0.0, top=0.0, right=0.0, bottom=0.0)
single_window_padding_width   FloatEdges(left=0.0, top=0.0, right=0.0, bottom=0.0)
symbol_map:
    U+e000 - U+e00a → Symbols Nerd Font Mono
    U+e0a0 - U+e0c8 → Symbols Nerd Font Mono
    U+e0ca - U+e0ca → Symbols Nerd Font Mono
    U+e0cc - U+e0d4 → Symbols Nerd Font Mono
    U+e200 - U+e2a9 → Symbols Nerd Font Mono
    U+e300 - U+e3e3 → Symbols Nerd Font Mono
    U+e5fa - U+e6b1 → Symbols Nerd Font Mono
    U+e700 - U+e7c5 → Symbols Nerd Font Mono
    U+ea60 - U+ebeb → Symbols Nerd Font Mono
    U+f000 - U+f2e0 → Symbols Nerd Font Mono
    U+f300 - U+f372 → Symbols Nerd Font Mono
    U+f400 - U+f532 → Symbols Nerd Font Mono
    U+f0001 - U+f1af0 → Symbols Nerd Font Mono
tab_bar_margin_height         TabBarMarginHeight(outer=9.0, inner=0)
tab_bar_margin_width          9.0
tab_bar_min_tabs              1
tab_bar_style                 separator
tab_separator                 
tab_title_template            {fmt.fg._323449}{fmt.bg.default}{fmt.fg._04d1f9}{fmt.bg.default}{index}{fmt.fg._04d1f9}{fmt.bg._323449} {title[:15] + (title[15:] and '…')} {fmt.fg._323449}{fmt.bg.default} 
undercurl_style               thick-sparse
underline_hyperlinks          always
update_check_interval         6.0
window_border_width           (1.0, 'pt')
window_resize_step_lines      5
Added mouse actions:
    right click grabbed →  paste_from_clipboard
    right click ungrabbed →  paste_from_clipboard
Added shortcuts:
    ctrl+h →  kitten pass_keys.py left   ctrl+h
    ctrl+j →  kitten pass_keys.py bottom ctrl+j
    ctrl+k →  kitten pass_keys.py top    ctrl+k
    ctrl+l →  kitten pass_keys.py right  ctrl+l
    ctrl+t > t →  move_tab_forward, move_tab_backward, close_tab, new_tab_with_cwd, previous_tab, next_tab, goto_tab 5, goto_tab 4, goto_tab 3, goto_tab 2, goto_tab 1, swap_with_window, focus_visible_window, kitten resize_window, layout_action move_to_screen_edge left, layout_action move_to_screen_edge right, layout_action move_to_screen_edge top, layout_action move_to_screen_edge bottom, close_window, detach_window ask, launch --location=hsplit --cwd=current, launch --location=vsplit --cwd=current, kitten rename_tab.py
    f1 →  toggle_marker text 1 TEST
    f12 →  kitten unicode_input --tab name --emoji-variation graphic
    f2 →  toggle_marker text 2 ERROR
Removed shortcuts:
    cmd+, →  edit_config_file
    cmd+h →  hide_macos_app
    cmd+k →  clear_terminal to_cursor active
    cmd+m →  minimize_macos_window
    cmd+n →  new_os_window
    cmd+q →  quit
    cmd+t →  new_tab
    cmd+w →  close_tab
    ctrl+cmd+, →  load_config_file
    kitty_mod+enter →  new_window
    opt+cmd+h →  hide_macos_other_apps
    opt+cmd+r →  clear_terminal reset active
    opt+cmd+s →  toggle_macos_secure_keyboard_entry
    shift+cmd+/ →  open_url https://sw.kovidgoyal.net/kitty/
    shift+cmd+[ →  previous_tab
    shift+cmd+] →  next_tab
    shift+cmd+d →  close_window
    shift+cmd+w →  close_os_window
Changed shortcuts:
    cmd+enter →  no-op
    kitty_mod++ →  change_font_size all +1.0
    kitty_mod+- →  change_font_size all -1.0
    kitty_mod+down →  scroll_page_down
    kitty_mod+f →  toggle_layout stack
    kitty_mod+j →  scroll_to_prompt 1
    kitty_mod+k →  scroll_to_prompt -1
    kitty_mod+o →  show_last_command_output
    kitty_mod+r →  load_config_file
    kitty_mod+up →  scroll_page_up
Colors:
    active_border_color           #a48cf2   
    active_tab_background         #37f499   
    active_tab_foreground         #212337   
    background                    #212337   
    color0                        #21222c   
    color1                        #f9515d   
    color10                       #69f8b3   
    color11                       #f1fc79   
    color12                       #a48cf2   
    color13                       #fd92ce   
    color14                       #66e4fd   
    color2                        #37f499   
    color3                        #e9f941   
    color4                        #9071f4   
    color5                        #f265b5   
    color6                        #04d1f9   
    color7                        #ebfafa   
    color8                        #7081d0   
    color9                        #f16c75   
    cursor                        #37f499   
    cursor_text_color             #f8f8f2   
    foreground                    #ebfafa   
    inactive_border_color         #212337   
    inactive_tab_background       #323449   
    inactive_tab_foreground       #04d1f9   
    mark1_background              #f9515d   
    mark1_foreground              #212337   
    selection_background          #bf4f8e   
    selection_foreground          #ebfafa   
    url_color                     #04d1f9   

Important environment variables seen by the kitty process:
    PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
    LANG                                en_US.UTF-8
    SHELL                               /bin/zsh
    USER                                jrreed

Additional context I have also tried adding another users symbol map but it still is missing a lot of symbols:

symbol_map  U+E000-U+E00D Symbols Nerd Font
# "Nerd Fonts - Powerline"
symbol_map U+e0a0-U+e0a2,U+e0b0-U+e0b3 Symbols Nerd Font
# "Nerd Fonts - Powerline Extra"
symbol_map U+e0a3-U+e0a3,U+e0b4-U+e0c8,U+e0cc-U+e0d2,U+e0d4-U+e0d4 Symbols Nerd Font
# "Nerd Fonts - Symbols original"
symbol_map U+e5fa-U+e62b Symbols Nerd Font
# "Nerd Fonts - Devicons"
symbol_map U+e700-U+e7c5 Symbols Nerd Font
# "Nerd Fonts - Font awesome"
symbol_map U+f000-U+f2e0 Symbols Nerd Font
# "Nerd Fonts - Font awesome extension"
symbol_map U+e200-U+e2a9 Symbols Nerd Font
# "Nerd Fonts - Octicons"
symbol_map U+f400-U+f4a8,U+2665-U+2665,U+26A1-U+26A1,U+f27c-U+f27c Symbols Nerd Font
# "Nerd Fonts - Font Linux"
symbol_map U+F300-U+F313 Symbols Nerd Font
#  Nerd Fonts - Font Power Symbols"
symbol_map U+23fb-U+23fe,U+2b58-U+2b58 Symbols Nerd Font
#  "Nerd Fonts - Material Design Icons"
symbol_map U+f500-U+fd46 Symbols Nerd Font
# "Nerd Fonts - Weather Icons"
symbol_map U+e300-U+e3eb Symbols Nerd Font
# Misc Code Point Fixes
symbol_map U+21B5,U+25B8,U+2605,U+2630,U+2632,U+2714,U+E0A3,U+E615,U+E62B,U+f0150,U+f035b,U+f0379,U+eb8a Symbols Nerd Font
kovidgoyal commented 3 weeks ago

Those have nothing to do with nerd fonts, they are regular unicode codepoints. You need to install some font that has them, popular choice is symbola or unifont (though that is very low quality)

jacobrreed commented 3 weeks ago

Ah ok thanks!

jacobrreed commented 3 weeks ago

Is there a way to specify Symbola as the default fallback font for symbol_map for all codepoints not defined in config?

kovidgoyal commented 3 weeks ago

For things not in symbol_map you setup fallbacks in your OS, kityt uses OS APIs to find fallbacks.

jacobrreed commented 3 weeks ago

ah seems not possible on newer version of MacOS rip. oh well, i only use this work, I use arch for home so be it