From b989126041f1b1088ebe9f730c379dda22042a1b Mon Sep 17 00:00:00 2001 From: Falk Bruskeland Date: Fri, 2 Aug 2024 22:52:43 +0200 Subject: [PATCH] Add README --- README.md | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf12c02 --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ +# Kakoune Qt + +Kakoune Qt is a Qt-based GUI for Kakoune written in C++. + +![screenshot](https://github.com/user-attachments/assets/8bdba0c8-3921-4b37-94a4-0a599819c58b) + +# Features + +- Create splits with `:kakqt-split-horizontal` and `:kakqt-split-vertical` + +- Focus splits with `:kakqt-focus ` + +- Show and hide clients with `:kakqt-show ` and `:kakqt-hide ` + +- Navigate between splits with keybindings ``, ``, `` and `` + +# Install from source + +1. Install the necessary build dependencies + +`sudo apt install -y git build-essentials cmake qt6-base-dev qt6-svg-dev` + +2. Clone the repository + +```sh +git clone https://github.com/falbru/kakoune-qt ~/.config/kak/autoload/ +``` + +3. Build the project + +```sh +cd ~/.config/kak/autoload/kakoune-qt +mkdir build +cd build +cmake -DCMAKE_BUILD_TYPE=Release .. +make +``` + +You can then run the application with `./kak-qt` + +> NOTE: Make sure Kakoune is installed on your system! + +# Configuration + +Kakoune Qt is configured using the `ui_option` in Kakoune. The following options are implemented: + +- `kakqt_set_font `: Set the font + +- `kakqt_set_color_ `: Set the default colors (color_name can be: black, red, green, yellow, blue, magenta, cyan or white) + +Example configuration: + +`set global ui_options 'kakqt_set_font="Ubuntu Mono 12" kakqt_set_color_red="rgb:FF0000"'`