Kakoune: Colorscheme preview

Created on 23 May 2020  路  2Comments  路  Source: mawww/kakoune

Feature

Allow previewing colorscheme on completion, can just press tab to try out a different one.

Usecase

No need to select colorscheme one by one to try out different colorscheme.

feature request

Most helpful comment

This feature would require some core code support to make it good enough to be bundled, as we would need to ensure that we can restore the initial colorscheme, which might not exist in any file (as the user might have run an arbitrary number of face commands), so we would need the C++ side code to take a snapshot of the current faces configuration.

This is a lot of complexity for a small quality of life feature. A plugin could easily do the basic work (take over color-scheme configuration, store the current colorscheme filename in an option, restore it), and it would be much more acceptable for it to just be a best-effort solution than for a built-in feature.

All 2 comments

You may try colorscheme-browser.kak meanwhile.

This feature would require some core code support to make it good enough to be bundled, as we would need to ensure that we can restore the initial colorscheme, which might not exist in any file (as the user might have run an arbitrary number of face commands), so we would need the C++ side code to take a snapshot of the current faces configuration.

This is a lot of complexity for a small quality of life feature. A plugin could easily do the basic work (take over color-scheme configuration, store the current colorscheme filename in an option, restore it), and it would be much more acceptable for it to just be a best-effort solution than for a built-in feature.

Was this page helpful?
0 / 5 - 0 ratings