Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: wrap kitten in quotes after Kitty release version 0.38.2 #297

Open
mikesmithgh opened this issue Dec 31, 2024 · 0 comments
Open

feat: wrap kitten in quotes after Kitty release version 0.38.2 #297

mikesmithgh opened this issue Dec 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mikesmithgh
Copy link
Owner

Once Kitty version 0.38.1 is no longer supported, update the kitten generation commands to wrap the kitten path in quotes and removed comments related to path containing whitespace.

e.g.,
:KittyScrollbackGenerateKittens

# WARNING
#  '/Users/mike/my gitrepos/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py' contains whitespace.
#
#  If you are using Kitty version 0.38.2 or greater, then whitespace is allowed in the
#  path and you can ignore this warning. Just make sure that the kitten path is
#  wrapped in quotes. For example,
#
#    action_alias kitty_scrollback_nvim kitten '/Users/mike/my gitrepos/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py'
#
#  If you are using Kitty version 0.38.1 or less, then you may receive an error opening
#  kitty-scrollback.nvim. If an error occurs, you can workaround this issue by symlinking
#  the kitty-scrollback.nvim plugin directory to Kitty's configuration directory with
#  the command:
#
#    ln -s '/Users/mike/my gitrepos/kitty-scrollback.nvim' ~/.config/kitty/kitty-scrollback.nvim
#
#  Then use the symlinked directory as the action_alias in kitty.conf instead of the real path
#
#    action_alias kitty_scrollback_nvim kitten kitty-scrollback.nvim/python/kitty_scrollback_nvim.py
#
#  Also, if you are using any kitty @ kitten commands update them to use the symlink path:
#
#    kitty kitten kitty-scrollback.nvim/python/kitty_scrollback_nvim.py
#

# kitty-scrollback.nvim Kitten alias
action_alias kitty_scrollback_nvim kitten /Users/mike/my gitrepos/kitty-scrollback.nvim/python/kitty_scrollback_nvim.py

# Browse scrollback buffer in nvim
map kitty_mod+h kitty_scrollback_nvim
# Browse output of the last shell command in nvim
map kitty_mod+g kitty_scrollback_nvim --config ksb_builtin_last_cmd_output
# Show clicked command output in nvim
mouse_map ctrl+shift+right press ungrabbed combine : mouse_select_command_output : kitty_scrollback_nvim --config ksb_builtin_last_visited_cmd_output


@mikesmithgh mikesmithgh added the enhancement New feature or request label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant