[kitty-scrollback.nvim v5.0.0](https://github.com/mikesmithgh/kitty-scrollback.nvim/releases/tag/v5.0.0) is officially released! Check out the announcement [here](https://github.com/mikesmithgh/kitty-scrollback.nvim/discussions/259) # What is kitty-scrollback.nvim? A Neovim plugin (and Kitty Kitten) that allows you to navigate your Kitty scrollback buffer to quickly search, copy, and execute commands in Neovim. ![demo](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fpreview.redd.it%2Fv5-0-0-drop-support-for-kitty-version-0-32-2-use-kittys-v0-0iutp6z7a55d1.gif%3Fwidth%3D1342%26auto%3Dwebp%26s%3Dd3af4bf4b6d9c528d22a3a338d6830ec8713a0d8) Check out the [README](https://github.com/mikesmithgh/kitty-scrollback.nvim) for detailed information, the [Wiki](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki) for additional configurations, and [Advanced Configuration Examples](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/Advanced-Configuration-Examples) for more demos! # What changed? See [Migrating to v5.0.0](https://github.com/mikesmithgh/kitty-scrollback.nvim#-migrating-to-v500) for the detailed migration guide. - 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. # Other minor version updates - Added experimental tmux support in v4.0.3! See [tmux (🧪 experimental )](https://github.com/mikesmithgh/kitty-scrollback.nvim?tab=readme-ov-file#tmux--experimental-) for setup instructions. - A handful of bug fixes and smaller features, see the [CHANGELOG](https://github.com/mikesmithgh/kitty-scrollback.nvim/blob/main/CHANGELOG.md) for more information. # What's next? The next feature I plan to work on is adding command-line editing support (see [#253](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues/253)). I also plan to complete the work necessary to move tmux support from experimental to stable. If you have any questions, comments, or feedback feel free to create an [issue](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues) or open a [discussion](https://github.com/mikesmithgh/kitty-scrollback.nvim/discussions).

7
0

[kitty-scrollback.nvim v4.0.0](https://github.com/mikesmithgh/kitty-scrollback.nvim/releases/tag/v4.0.0) is officially released! Check out the announcement [here](https://github.com/mikesmithgh/kitty-scrollback.nvim/discussions/178). # What is kitty-scrollback.nvim? A Neovim plugin (and Kitty Kitten) that allows you to navigate your Kitty scrollback buffer to quickly search, copy, and execute commands in Neovim. ![kitty_scrollback_screencapture_00_kitty_scrollback_nvim](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fgithub.com%2Fmikesmithgh%2Fkitty-scrollback.nvim%2Fassets%2F10135646%2F5a5ca054-e5b1-4ebc-b158-c95d9c3a8e9f) Check out [Advanced Configuration Examples](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/Advanced-Configuration-Examples) for more demos! # What changed? See [Migrating to v4.0.0](https://github.com/mikesmithgh/kitty-scrollback.nvim#-migrating-to-v400) for the detailed migration guide. - 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](https://github.com/mikesmithgh/kitty-scrollback.nvim#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](https://github.com/mikesmithgh/kitty-scrollback.nvim/blob/main/tests/example.lua) into your kitty-scrollback.nvim configuration. See [Plugin Configuration](https://github.com/mikesmithgh/kitty-scrollback.nvim#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](https://github.com/mikesmithgh/kitty-scrollback.nvim#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. # Other minor version updates - You can now paste and execute commands directly from visual mode! Previously, this could only be done with the paste window that is used for editing commands. Check out the demos in the [Features](https://github.com/mikesmithgh/kitty-scrollback.nvim#-features) section. ![kitty_scrollback_screencapture_03_should_paste_visual_selection_to_kitty](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fgithub.com%2Fmikesmithgh%2Fkitty-scrollback.nvim%2Fassets%2F10135646%2Faf79ca5e-72fe-430d-bdf1-66d4ed7ce757) - The environment variable `KITTY_SCROLLBACK_NVIM` was added and is set to `true` while kitty-scrollback.nvim is active. See [Environment Variables](https://github.com/mikesmithgh/kitty-scrollback.nvim#-environment-variables). - Documented the filetype `kitty-scrollback` and provided an example of using it in an autocmd. See [Filetypes](https://github.com/mikesmithgh/kitty-scrollback.nvim#-filetypes). # What's next? The next feature I plan to work on is adding tmux support (see [#155](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues/115)). If you have any questions, comments, or feedback feel free to create an [issue](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues) or open a [discussion](https://github.com/mikesmithgh/kitty-scrollback.nvim/discussions).

16
3

[kitty-scrollback.nvim v3.0.0](https://github.com/mikesmithgh/kitty-scrollback.nvim/releases/tag/v3.0.0) is officially released! Check out the announcement [here](https://github.com/mikesmithgh/kitty-scrollback.nvim/discussions/130). # What is kitty-scrollback.nvim? A Neovim plugin (and Kitty Kitten) that allows you to navigate your Kitty scrollback buffer to quickly search, copy, and execute commands in Neovim. ![kitty_scrollback_screencapture_00_kitty_scrollback_nvim](https://github.com/mikesmithgh/kitty-scrollback.nvim/assets/10135646/5ec633b0-2d7c-4dc6-bd18-3e2a3eb5fb62) Check out [Advanced Configuration](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/Advanced-Configuration) for more demos. # Migrating to v3.0.0 See [Migrating to v3.0.0](https://github.com/mikesmithgh/kitty-scrollback.nvim#-migrating-to-v300) for the detailed migration guide. # What changed? - The Neovim icon is now the default icon in the status window. - Added support for the new Neovim default colorscheme (available on Neovim nightly `v0.10.0`) - Added a lot of tests - New logo on the README ![ksb-new-logo-small](https://github.com/mikesmithgh/kitty-scrollback.nvim/assets/10135646/75716950-1758-4c89-ba95-f2e3bc8309a2) - If you missed it, check out my ⚡️ Lightning Talk @ Neovim Conf 2023 [Developing kitty-scrollback.nvim](https://youtu.be/9TINe0J9rNg?si=_ISKqAQVS2NCuSRF)! [![Developing kitty-scrollback.nvim NeovimConf 2023](https://github.com/mikesmithgh/kitty-scrollback.nvim/assets/10135646/d103a326-dfac-4948-8f15-d2885e646a6c)](https://www.youtube.com/watch?v=9TINe0J9rNg) If you have any questions, comments, or feedback feel free to create an [issue](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues) or open a [discussion](https://github.com/mikesmithgh/kitty-scrollback.nvim/discussions).

18
3

## What is kitty-scrollback.nvim? A Neovim plugin (and Kitty Kitten) that allows you to navigate your Kitty scrollback buffer to quickly search, copy, and execute commands in Neovim. ![kitty-scrollback.nvim demo](https://github.com/mikesmithgh/kitty-scrollback.nvim/assets/10135646/3513aada-c19c-4e4a-bd9e-91b9907a2c8d) ## v2.2.0 adds support for Neovim v0.9 kitty-scrollback.nvim was originally written only supporting Neovm v0.10 (nightly). Thanks to community interest, I have added support for Neovim v0.9 for those that prefer using a stable version of Neovim. If you have any problems or questions feel free to open an issue or discussion here [https://github.com/mikesmithgh/kitty-scrollback.nvim](https://github.com/mikesmithgh/kitty-scrollback.nvim) ## Neovim Conf 2023: Developing kitty-scrollback.nvim ![kitty-scrollback.nvim neovimconf](https://github.com/mikesmithgh/mikesmithgh/assets/10135646/2e356e56-611b-4353-adbf-31dfa9e7dd8f) I am doing a lightning talk at Neovim Conf this year about developing kitty-scrollback.nvim. [https://neovimconf.live/speakers/mikesmith/](https://neovimconf.live/speakers/mikesmith/) If you are interested in Neovim, block off your day on Dec 8th 🙂 and register here [https://neovimconf.live/](https://neovimconf.live/)

16
0
neovim
Neovim 12mo ago
Jump
😽 kitty-scrollback.nvim: v2.0.0 breaking changes + setup config + kitty_mod + demos
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearNV
    nvimmike
    12mo ago 100%

    Yep you got it. Kitty is a terminal. The scrollback buffer is the screen + history of the terminal session. This plugin lets you open it with Neovim plus some extras 👍

    1
  • [kitty-scrollback.nvim](https://github.com/mikesmithgh/kitty-scrollback.nvim) has officially released [v2.0.0](https://github.com/mikesmithgh/kitty-scrollback.nvim/releases/tag/v2.0.0)! ## What is kitty-scrollback.nvim? ![kitty-scrollback.nvim](https://github.com/mikesmithgh/kitty-scrollback.nvim/assets/10135646/6dd229dd-0206-4d50-b627-f5f0f5fe8cd1) A Neovim plugin (and Kitty Kitten) that allows you to navigate your Kitty scrollback buffer to quickly search, copy, and execute commands in Neovim. ## Migrating to v2.0.0 See [Migrating to v2.0.0](https://github.com/mikesmithgh/kitty-scrollback.nvim#-migrating-to-v200) for the detailed migration guide. ## What changed? * The `--config-file` option has been removed. Custom configurations are now supplied in the `setup()` function instead of separate config file. The config name corresponds to the key of the table provided to `setup()`. * The default mapping keys changed from `ctrl+shift` to `kitty_mod` * 36 demos added to the Wiki [Advanced-Configuration](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/Advanced-Configuration) to exercise the different configuration options of `kitty-scrollback.nvim`. Here are a few. **ksb_example_status_win_autoclose** ![ksb_example_status_win_autoclose](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/assets/kitty_scrollback_screencapture_08_ksb_example_status_win_autoclose.gif) **ksb_example_status_win_show_timer** ![ksb_example_status_win_show_timer](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/assets/kitty_scrollback_screencapture_09_ksb_example_status_win_show_timer.gif) **ksb_example_highlight_overrides** ![ksb_example_highlight_overrides](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/assets/kitty_scrollback_screencapture_21_ksb_example_highlight_overrides.gif) **ksb_example_paste_win_winopts** ![ksb_example_paste_win_winopts](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/assets/kitty_scrollback_screencapture_30_ksb_example_paste_win_winopts.gif) **ksb_example_nvim_args_tokyonight** ![ksb_example_nvim_args_tokyonight](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/assets/kitty_scrollback_screencapture_34_ksb_example_nvim_args_tokyonight.gif) **ksb_example_nvim_args_cellular_automation** ![ksb_example_nvim_args_cellular_automation](https://github.com/mikesmithgh/kitty-scrollback.nvim/wiki/assets/kitty_scrollback_screencapture_36_ksb_example_nvim_args_cellular_automation.gif) If you have any questions, comments, or feedback feel free to let me know here or create an [issue](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues). **Breaking Changes 😿 Sorry** ![breaking-changes-cat](https://github.com/mikesmithgh/kitty-scrollback.nvim/raw/main/media/sad_kitty_thumbs_up.png)

    15
    7
    😽 kitty-scrollback.nvim: Open your Kitty scrollback buffer with Neovim. Ameowzing!
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearNV
    nvimmike
    1y ago 100%

    ah I gotcha. There is no option at the moment to completely disable the scrollback, but you could hook into some callbacks to trigger and customizations.

    For example,

    your_awesome_config.lua

    local M = {}
    
    M.config = function(kitty_data)
      return {
        paste_window = {
          winblend = 10,
          winopts_overrides = function(paste_winopts)
            local h = vim.o.lines - 5 -- TODO: magic number 3 for footer and 2 for border
            return {
              border = 'solid',
              row = 0,
              col = 0,
              height = h < 1 and 3 or h, -- TODO: magic number 3 for footer
              width = vim.o.columns,
            }
          end,
          footer_winopts_overrides = function(footer_winopts, paste_winopts)
            return {
              border = 'single',
              title = ' kitty-scrollback.nvim ',
              title_pos = 'center',
            }
          end,
        },
        kitty_get_text = {
          extent = 'screen',
          ansi = true,
        },
        callbacks = {
          after_ready = function(kitty_data, opts)
            vim.cmd.startinsert()
          end,
        },
      }
    end
    
    return M
    

    kitty.conf

    map f1 kitty_scrollback_nvim --config-file /your_awesome_config.lua
    

    demo-kitty-exec

    I plan to document some of the advanced configurations, just haven't had time to get to it 👍

    I could add an option to have no scrollback and a single buffer like you mentioned similar to `` behavior in bash. I'll think on that one.

    Thanks for the kind words 🙂

    3
  • github.com

    👋 Hey all, first post on Lemmy. I recently released `v1.0.1` of [kitty-scrollback.nvim](https://github.com/mikesmithgh/kitty-scrollback.nvim). If you have any feedback, issues, or suggestions feel free to open an [issue](https://github.com/mikesmithgh/kitty-scrollback.nvim/issues). I'm interested to get feedback if the setup easy or if there are any unclear/confusing steps. This requires Neovim nightly (`v0.10`) and Kitty `v0.29`. ![kitty-scrollbakc.nvim](https://github.com/mikesmithgh/kitty-scrollback.nvim/assets/10135646/6dd229dd-0206-4d50-b627-f5f0f5fe8cd1) ✨ **Features** * 😻 Navigate Kitty's scrollback buffer with Neovim * 🐱 Copy contents from Neovim to system clipboard * 😺 Send contents from Neovim to Kitty shell * 🙀 Execute shell command from Neovim to Kitty shell

    16
    6