kovidgoyal / kitty

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

Error when trying to set window placement strategy #7561

Closed diegobajetti closed 3 months ago

diegobajetti commented 3 months ago

Describe the bug Error when trying to set window placement strategy to anything but center and top-left.

To Reproduce Steps to reproduce the behavior:

  1. Open ~/.config/kitty/kitty.conf
  2. Set placement_strategy to:
    • top
    • top-right
    • left
    • right
    • bottom-left
    • bottom
    • bottom-right
  3. Reload kitty preferences with ^ + + ,
  4. See error:
    
    Errors parsing configuration

In file /Users//.config/kitty/kitty.conf: 860:The value bottom-left is not a valid choice for placement_strategy in line: placement_strategy bottom-left

Press Enter or Esc to exit


**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment details**

kitty 0.34.1 (7f61f1f9f3) created by Kovid Goyal Darwin 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 arm64 ProductName: macOS ProductVersion: 14.5 BuildVersion: 23F79 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//.config/kitty/kitty.conf

Config options different from defaults: bold_font JetBrainsMono Nerd Font ExtraBold bold_italic_font JetBrainsMono Nerd Font ExtraBold Italic confirm_os_window_close 0 font_family JetBrainsMono Nerd Font Medium font_size 14.0 italic_font JetBrainsMono Nerd Font Medium Italic placement_strategy top-left tab_bar_style powerline tab_powerline_style round Removed shortcuts: cmd+, → edit_config_file cmd+enter → new_window 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 ctrl+cmd+f → toggle_fullscreen 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 Colors: background #292c37
color0 #3b4252
color1 #bf616a
color10 #a3be8c
color11 #ebcb8b
color12 #81a1c1
color13 #b48ead
color14 #8fbcbb
color15 #eceff4
color2 #a3be8c
color3 #ebcb8b
color4 #81a1c1
color5 #b48ead
color6 #88c0d0
color7 #e5e9f0
color8 #4c566a
color9 #bf616a
cursor #81a1c1
foreground #d8dee9

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



**Additional context**
Try to reproduce the problem with `kitty --config NONE` if you cannot then post a minimal kitty.conf that reproduces the problem. If the problem involves interaction with some other terminal program post a minimal config for that program to reproduce the problem as well.
kovidgoyal commented 3 months ago

update kitty.