From b0ccf740299b439dde86e652718df85060c3d5cd Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 24 Dec 2021 11:44:58 +0800 Subject: [PATCH 1/7] Docs: Replace Unicode left single quote with ASCII single quote --- kitty/options/definition.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 7bbaadd16..db3dd6b44 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -987,7 +987,7 @@ The tab bar style, can be one of: A user-supplied Python function called draw_tab is loaded from the file :file:`tab_bar.py` in the kitty config directory. For examples of how to write such a function, see the functions named :code:`draw_tab_with_*` in - kitty‘s source code: :file:`kitty/tab_bar.py`. + kitty's source code: :file:`kitty/tab_bar.py`. :code:`hidden` The tab bar is hidden. If you use this, you might want to create a mapping for the :ref:`action-select_tab` From 73ff508b51ee26c8274e12e0620cfe7e7a176c8a Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 24 Dec 2021 11:46:08 +0800 Subject: [PATCH 2/7] Docs: unfunction kitty-integration --- docs/shell-integration.rst | 2 +- shell-integration/zsh/kitty-integration | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/shell-integration.rst b/docs/shell-integration.rst index 3ea921cfb..c540b2286 100644 --- a/docs/shell-integration.rst +++ b/docs/shell-integration.rst @@ -213,7 +213,7 @@ Then in your shell's rc file, add the lines: if test -n "$KITTY_INSTALLATION_DIR"; then export KITTY_SHELL_INTEGRATION="enabled" autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration - kitty-integration + unfunction kitty-integration fi .. tab:: fish diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index 4ad33d4b2..caf04de54 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -10,6 +10,7 @@ # Kitty in all shells should add the following lines to their .zshrc: # # if [[ -n $KITTY_INSTALLATION_DIR ]]; then +# export KITTY_SHELL_INTEGRATION="enabled" # autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration # kitty-integration # unfunction kitty-integration From ae35507f8024a22e7533528b5105dd8a9d525836 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 24 Dec 2021 12:02:54 +0800 Subject: [PATCH 3/7] Use the lowercase kitty --- shell-integration/zsh/.zshenv | 2 +- shell-integration/zsh/kitty-integration | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/shell-integration/zsh/.zshenv b/shell-integration/zsh/.zshenv index 26310d337..7a087f8ae 100644 --- a/shell-integration/zsh/.zshenv +++ b/shell-integration/zsh/.zshenv @@ -5,7 +5,7 @@ # Don't use [[ -v ... ]] because it doesn't work in zsh < 5.4. if [[ -n "${KITTY_ORIG_ZDOTDIR+X}" ]]; then # Normally ZDOTDIR shouldn't be exported but it was in the environment - # of Kitty, so we export it. + # of kitty, so we export it. 'builtin' 'export' ZDOTDIR="$KITTY_ORIG_ZDOTDIR" 'builtin' 'unset' 'KITTY_ORIG_ZDOTDIR' else diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index caf04de54..92325c68b 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -1,13 +1,13 @@ #!/bin/zsh # -# Enables integration between zsh and Kitty based on KITTY_SHELL_INTEGRATION. -# The latter is set by Kitty based on kitty.conf. +# Enables integration between zsh and kitty based on KITTY_SHELL_INTEGRATION. +# The latter is set by kitty based on kitty.conf. # # This is an autoloadable function. It's invoked automatically in shells -# directly spawned by Kitty but not in any other shells. For example, running +# directly spawned by kitty but not in any other shells. For example, running # `exec zsh`, `sudo -E zsh`, `tmux`, or plain `zsh` will create a shell where # kitty-integration won't automatically run. Zsh users who want integration with -# Kitty in all shells should add the following lines to their .zshrc: +# kitty in all shells should add the following lines to their .zshrc: # # if [[ -n $KITTY_INSTALLATION_DIR ]]; then # export KITTY_SHELL_INTEGRATION="enabled" @@ -32,7 +32,7 @@ builtin emulate -L zsh -o no_warn_create_global # 2: none of the above. builtin typeset -gi _ksi_state -# Asks Kitty to print $@ to its stdout. This is for debugging. +# Asks kitty to print $@ to its stdout. This is for debugging. _ksi_debug_print() { builtin local data data=$(command base64 <<<"${(j: :}@}") || builtin return From f58013f2c61039126470a5b93d776e8271c7cc72 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 24 Dec 2021 12:06:41 +0800 Subject: [PATCH 4/7] Docs: Cross-platform IME integration improvements --- docs/changelog.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 4caba2110..e8e789312 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -91,7 +91,7 @@ To update |kitty|, :doc:`follow the instructions `. - Linux: Fix IME with fcitx5 not working after fcitx5 is restarted (:pull:`4059`) -- macOS: Various improvements to IME integration (:iss:`4219`) +- Various improvements to IME integration (:iss:`4219`) - Remote file transfer: Fix transfer not working if custom ssh port or identity is specified on the command line (:iss:`4067`) From 9081947751b38f7beb9e18a5599d0acf2bfe4019 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 24 Dec 2021 12:11:02 +0800 Subject: [PATCH 5/7] Docs: Prefer semi-bold on macOS only --- kitty/options/definition.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/options/definition.py b/kitty/options/definition.py index db3dd6b44..e2f8031e0 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -35,8 +35,8 @@ opt('font_family', 'monospace', You can specify different fonts for the bold/italic/bold-italic variants. To get a full list of supported fonts use the `kitty list-fonts` command. By default they are derived automatically, by the OSes font system. When -bold_font or bold_italic_font is set to :code:`auto`, the priority of bold -fonts is semi-bold, bold, heavy. Setting them manually is useful for font +bold_font or bold_italic_font is set to :code:`auto` on macOS, the priority of +bold fonts is semi-bold, bold, heavy. Setting them manually is useful for font families that have many weight variants like Book, Medium, Thick, etc. For example:: From 36b4e0edd29403fd03851062c35181bb412f0fb9 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 24 Dec 2021 12:29:08 +0800 Subject: [PATCH 6/7] Docs: Also fixed the input issue in toggling non-traditional fullscreen --- docs/changelog.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index e8e789312..4026e0bbb 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -148,8 +148,8 @@ To update |kitty|, :doc:`follow the instructions `. - When remembering OS window sizes for full screen windows use the size before the window became fullscreen (:iss:`4221`) -- macOS: Fix keyboard input not working after toggling traditional fullscreen - till the window is clicked in +- macOS: Fix keyboard input not working after toggling fullscreen till the + window is clicked in - A new mappable action ``nth_os_window`` to to focus the specified nth OS window. (:pull:`4316`) From f53dfb27e26a22aaf12e77298d23e7367562b0b9 Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 24 Dec 2021 12:37:54 +0800 Subject: [PATCH 7/7] Docs: Add macOS mouse wheel scrolling and title bar options changes --- docs/changelog.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index 4026e0bbb..36c7e8c7d 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -154,6 +154,12 @@ To update |kitty|, :doc:`follow the instructions `. - A new mappable action ``nth_os_window`` to to focus the specified nth OS window. (:pull:`4316`) +- macOS: The kitty window can be scrolled by the mouse wheel when OS window not + in focus. (:pull:`4371`) + +- macOS: Light or dark system appearance can be specified in + :opt:`macos_titlebar_color` and used in kitty themes. (:pull:`4378`) + 0.23.1 [2021-08-17] ----------------------