Skip to content

Commit

Permalink
feat!: use Kitty's builtin bracketed paste (#257)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove support for Kitty versions < 0.32.2
  • Loading branch information
mikesmithgh authored Jun 7, 2024
1 parent 3b0eba2 commit 89ba2b1
Show file tree
Hide file tree
Showing 10 changed files with 151 additions and 200 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,14 @@ jobs:
- 'nightly'
# update __branch-protection-rules.json and run __update_branch_protection_rules.sh when modified
# test all version of nvim released as of v0.9.0
# test only latest patch versions of kitty released as of v0.29
# test only latest patch versions of kitty released as of v0.32.2
include:
# nvim versions + kitty stable
- nvim_version: 'v0.9.0'
kitty_version: 'stable'
- nvim_version: 'v0.9.5'
kitty_version: 'stable'
# nvim stable + kitty versions
- nvim_version: 'stable'
kitty_version: '0.29.2'
- nvim_version: 'stable'
kitty_version: '0.30.1'
- nvim_version: 'stable'
kitty_version: '0.31.0'
- nvim_version: 'stable'
kitty_version: '0.32.2'
- nvim_version: 'stable'
Expand Down
41 changes: 18 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Navigate your [Kitty](https://sw.kovidgoyal.net/kitty/) scrollback buffer to qui
<!-- panvimdoc-ignore-start -->

[![neovim: v0.9+](https://img.shields.io/static/v1?style=flat-square&label=neovim&message=v0.9%2b&logo=neovim&labelColor=282828&logoColor=8faa80&color=414b32)](https://neovim.io/)
[![kitty v0.29+](https://img.shields.io/badge/v0.29%2B-352217?style=flat-square&logo=data%3Aimage%2Fjpeg%3Bbase64%2C%2F9j%2F4AAQSkZJRgABAQAAAQABAAD%2F4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAA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Lhpzmetu4Gl01NNj4a85nrbu5fSOv9VE4sM%2B%2F4z8v%2FT0jr%2FVb4sM%2B%2FwCNvl%2F68br1A6zzAAF64ct43pjvaO8VmU%2BzZ%2F2cn9ZBmNfZs%2F7OT%2Bsns2f9nJ%2FWQZDT2bP%2Bzk%2FrKLYctI3vjvWO81mAUAAAAAAAAAAAAAAAAAAAB6vobJirjvWZiMkzvz8YX9IekIxxOLBaJvPW0eDxwDr1AAI68%2BgA%2BmwXx2xVnFMTXblsu%2BWAfVIfLAPqVM18dMVpyzEV257vmQCevIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH%2F9k%3D&label=kitty&labelColor=282828)](https://sw.kovidgoyal.net/kitty/)
[![kitty v0.32.2+](https://img.shields.io/badge/v0.32.2%2B-352217?style=flat-square&logo=data%3Aimage%2Fjpeg%3Bbase64%2C%2F9j%2F4AAQSkZJRgABAQAAAQABAAD%2F4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH%2F9k%3D&label=kitty&labelColor=282828)](https://sw.kovidgoyal.net/kitty/)
[![semantic-release: angular](https://img.shields.io/static/v1?style=flat-square&label=semantic-release&message=angular&logo=semantic-release&labelColor=282828&logoColor=d8869b&color=8f3f71)](https://github.com/semantic-release/semantic-release)
[![test status](https://img.shields.io/github/actions/workflow/status/mikesmithgh/kitty-scrollback.nvim/tests.yml?style=flat-square&logo=github&logoColor=c7c7c7&label=tests&labelColor=282828&event=push)](https://github.com/mikesmithgh/kitty-scrollback.nvim/actions/workflows/tests.yml?query=event%3Apush)
[![nightly test status](https://img.shields.io/github/actions/workflow/status/mikesmithgh/kitty-scrollback.nvim/tests.yml?style=flat-square&logo=github&logoColor=c7c7c7&label=nightly%20tests&labelColor=282828&event=schedule)](https://github.com/mikesmithgh/kitty-scrollback.nvim/actions/workflows/tests.yml?query=event%3Aschedule)
Expand All @@ -26,7 +26,7 @@ Navigate your [Kitty](https://sw.kovidgoyal.net/kitty/) scrollback buffer to qui
## 📖 Contents

-[Features](#-features)
- 🚀 [Migrating to v4.0.0](#-migrating-to-v400)
- 🚀 [Migrating to v5.0.0](#-migrating-to-v500)
- 📚 [Prerequisites](#-prerequisites)
- 🏃 [Quickstart](#-quickstart)
- 📦 [Installation](#-installation)
Expand Down Expand Up @@ -178,17 +178,18 @@ Navigate your [Kitty](https://sw.kovidgoyal.net/kitty/) scrollback buffer to qui

</details>

## 🚀 Migrating to v4.0.0
## 🚀 Migrating to v5.0.0
> [!IMPORTANT]\
> v4.0.0 has breaking changes and requires steps to properly migrate from v3.X.X.
> v5.0.0 has breaking changes and requires steps to properly migrate from v4.X.X.
>
> You can ignore this section if you have not previously installed any version of kitty-scrollback.nvim
<details>

<summary>Migration Steps</summary>

If you have any problems or questions migrating to `v4.0.0`, please open an [issue](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues) or
If you have any problems or questions migrating to `v5.0.0`, please open an
[issue](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues) or
[discussion](https://github.com/mikesmithgh/kitty-scrollback.nvim/discussions).

<!-- panvimdoc-ignore-start -->
Expand All @@ -197,27 +198,21 @@ Navigate your [Kitty](https://sw.kovidgoyal.net/kitty/) scrollback buffer to qui

<!-- panvimdoc-ignore-end -->

- Previously, kitty-scrollback.nvim did not open Neovim with your Neovim configuration by default. This has changed to loading your Neovim
configuration by default, with the ability to opt out. If you prefer to continue not loading your Neovim configuration, then follow the
steps at [No Configuration](#no-configuration).
- If you previously used the flag `--no-nvim-args`, then delete it from your configuration because it no longer has any effect. The flag
`--nvim-args` remains unchanged and can still be used.
- `ksb_example` configurations have been removed and can no longer be referenced by name. If you were previously referencing an example configuration
by name, then you can manually copy it from [./tests/example.lua](./tests/example.lua) into your kitty-scrollback.nvim configuration. See
[Plugin Configuration](#plugin-configuration) for detailed instructions on configuration kitty-scrollback.nvim.
- The command `KittyScrollbackGenerateKittens` and api `generate_kittens` no longer have an option to generate `ksb_example` configurations.
- The command `KittyScrollbackGenerateKittens` no longer accepts the bang `!` modifier
- The api `generate_kittens` signature removed the `all` parameter
- The reserved `global` configuration name has been removed and global options are now configured by the first element of the options table without a key.
See [Global Configuration](#global-configuration) for more details.
- The undocumented reserved `default` configuration name has been removed. kitty-scrollback.nvim defaults to `ksb_builtin_get_text_all` if no configuration is provided.
- kitty-scrollback.nvim v5.0.0 uses Kitty's builtin `--bracketed-paste` option when sending
commands to Kitty. The `--bracketed-paste` option was added in Kitty 0.32.2. If you are
using an older version of Kitty, then upgrade to the latest version or at least 0.32.2.
- Alternatively, if you are unable to upgrade Kitty, then you can still use tag
[v4.3.6](https://github.com/mikesmithgh/kitty-scrollback.nvim/releases/tag/v4.3.6) of
kitty-scrollback.nvim.
- See [kitten-send-text](https://sw.kovidgoyal.net/kitty/remote-control/#kitten-send-text)
for more information on the `--bracketed-paste` option.

</details>

## 📚 Prerequisites

- Neovim [v0.9+](https://github.com/neovim/neovim/releases)
- Kitty [v0.29+](https://github.com/kovidgoyal/kitty/releases)
- Kitty [v0.32.2+](https://github.com/kovidgoyal/kitty/releases)

## 🏃 Quickstart

Expand Down Expand Up @@ -246,7 +241,7 @@ sh -c "$(curl -s https://raw.githubusercontent.com/mikesmithgh/kitty-scrollback.
cmd = { 'KittyScrollbackGenerateKittens', 'KittyScrollbackCheckHealth' },
event = { 'User KittyScrollbackLaunch' },
-- version = '*', -- latest stable version, may have breaking changes if major version changed
-- version = '^4.0.0', -- pin major version, include fixes and features that do not have breaking changes
-- version = '^5.0.0', -- pin major version, include fixes and features that do not have breaking changes
config = function()
require('kitty-scrollback').setup()
end,
Expand All @@ -266,7 +261,7 @@ sh -c "$(curl -s https://raw.githubusercontent.com/mikesmithgh/kitty-scrollback.
cmd = { 'KittyScrollbackGenerateKittens', 'KittyScrollbackCheckHealth' },
event = { 'User KittyScrollbackLaunch' },
-- tag = '*', -- latest stable version, may have breaking changes if major version changed
-- tag = 'v4.0.0', -- pin specific tag
-- tag = 'v5.0.0', -- pin specific tag
config = function()
require('kitty-scrollback').setup()
end,
Expand Down Expand Up @@ -392,7 +387,7 @@ map kitty_mod+h kitty_scrollback_nvim --config myconfig

The value of an entry in the options table can either be a table (`KsbOpts`) or a function (`fun(KsbKittyData):KsbOpts`). `KsbKittyData` contains metadata
about Kitty and the scrollback buffer that may be useful when defining a configuration. The structure of `KsbKittyData` is defined in [lua/kitty-scrollback/launch.lua](./lua/kitty-scrollback/launch.lua).
For example, you could add an additional configuration named `myfnconfig` 😂 that only loads the entire scrollback history if the user scrolled past the number of lines on the screen.
For example, you could add an additional configuration named `myfnconfig` 😹 that only loads the entire scrollback history if the user scrolled past the number of lines on the screen.

```lua
require('kitty-scrollback').setup({
Expand Down
Loading

0 comments on commit 89ba2b1

Please sign in to comment.