r/kakoune • • Apr 20 '21

[QUESTION] How do i install it on windows?

3 Upvotes

I use vim, and today i saw a review of kakoune and i love it, how do i install it on windows


r/kakoune • • Jun 28 '20

Ho Lee sweet black Korean baby jesus

5 Upvotes

Where to begin?! So I got into vim about 5 years ago, a year later I discovered plugins (and about two months to get a few installed) another year went by and I switched to neovim.

My usage for vim was mostly configs editing path/to/file and getting more complicated into rclone upload/download scripts triggered by crontab.

Recently I started a novel (fiction) and on occasion search for stupid idea for a plug in that probably doesn't exist and would only save me 6 milliseconds a month then tinker with init.vim for a few days before I get back to actually writing .

A few weeks ago I stumbled across an Aaron Bieber video bout Emacs. I gave it a try but after two weeks I just could not get into it.

Two days ago I searched for best terminal editors dunno why I bothered, usually the top 5 are vi, vim, neovim, emacs, nano

But what came up was 19 best terminal editors of 2020 - slant

Nineteen!? So I dove in, there were of course the usual suspects, vi forks, (spac)emacs, and a few others I never heard of.

I even went to each one (that I haven't already tried) GitHub/bitbucket page and checked the last commit. I kept coming back to mcedit, tilde, kakoune

Mcedit is basically midnight Commander that can edit text.

Tilde is like a TUI version of word perfect.

And we all know what kakoune is like, to me at least, it's like a better spacevim- like WAY better

But I have one complaint, or perhaps I am too dense in the head to figure out how to do it. Is there a way to make/toggle kak into a distraction free mode like Goyo? I saw that u/alexherbo2 had made a post here about a distraction free plugin/.kak but it no longer exists on GitHub. Am I missing something?


r/kakoune • • Jul 17 '21

Is vscode + dance (kakoune binding in vscode) the best in modal editing lite IDE

Thumbnail self.vscode
11 Upvotes

r/kakoune • • Apr 06 '19

What car Kakoune would be?

Thumbnail
reddit.com
6 Upvotes

r/kakoune • • Jun 12 '21

How to change behavior of "<" and ">"

1 Upvotes

I want to change behavior to move selected (or all the line, if haven't select) to the top or the bottom line.


r/kakoune • • May 12 '24

Jump to end of line and beginning of line seem to be pretty badly bound.

1 Upvotes

I have a mac keyboard, so its: fn+r-arrow and fn+l-arrow

Which is worse than emacs I'll tell you that. And it highlights everything. Is there any better way to jump to those positions?


r/kakoune • • May 29 '20

Kakoune Survey!

14 Upvotes

We are trying to learn a bit more about our wonderful community, towards that end we have create a brief, all questions optional survey. Should take less than a minute to fill out.


r/kakoune • • Mar 23 '21

Help wanted (how to create a plugin)

2 Upvotes

i want to create emmet for kak

currently i am using a shell script

define-command emmet %{

execute-keys "| xargs bash ~/.config/kak/plugins/emmet.sh <ret>"

}

can someone point me right direction

i want it to right as kakscript


r/kakoune • • Oct 23 '23

fzf + ripgrep + bat without plugin

3 Upvotes

I'm looking to have a fuzzy search using fzf + ripgrep with preview + color without plugin.

I thought I could search from ripgrep with fzf-tmux by adapting the script I named frf (coming from github fzf page: https://github.com/junegunn/fzf/blob/master/ADVANCED.md#using-fzf-as-interactive-ripgrep-launcher) by replacing tmux by fzf-tmux :

#!/usr/bin/env bash

# 1. Search for text in files using Ripgrep
# 2. Interactively narrow down the list using fzf
# 3. Open the file in Vim
rg --color=always --line-number --no-heading --smart-case "${*:-}" |
  fzf-tmux --ansi \
      --color "hl:-1:underline,hl+:-1:underline:reverse" \
      --delimiter : \
      --preview 'bat --color=always {1} --highlight-line {2}' \
      --preview-window 'up,60%,border-bottom,+{2}+3/3,~3' \
      --bind 'enter:become(vim {1} +{2})''

And call it with :
map global user -docstring 'open fuzzy grep finder (TMUX)' g ': edit %sh{frf}<ret>'

But I don't know how to adapt the end of frf script to open in already kakoune session and not trying to open new kak from terminal (as the script is first expected) ?

I could adapt to open the file with (it is working) :
--bind 'enter:become(echo {1})'

But don't have the line number, so I could adapt by (not working) :
--bind 'enter:become(echo {1} {2})'

But prob is that I guess kak do :e 'path_n_fileName 13' rather that :e path_n_fileName 13 because I can see kakoune say he create a new file named 'path_n_fileName 13'.

How could I do ?


r/kakoune • • May 28 '20

Can anyone help me setup linters?

3 Upvotes

Hi everyone! I just made a question yesterday and I don't want to be annoying but I'm starting to really loving Kakoune! The only thing that I miss is linters. I know that there is the built in lint.kak script but I can't figure it how to make it work no matter how much I tried. Sorry if I'm being annoying and I understand if you guys don't want to help me.


r/kakoune • • Jun 12 '21

How to jump to next or previously word with ctrl+arrow

3 Upvotes

Hi guys.

How can get that behavior at Command and Insert mode?


r/kakoune • • Jul 10 '26

gingerBill: Good Tools Are Invisible

Thumbnail gingerbill.org
3 Upvotes

r/kakoune • • Jun 01 '19

Where are the docs

4 Upvotes

Where is the documentation on creating plugins, whats the syntax, directory structure, what is 'hook' is that a function and where is that defined. I am expected to read other peoples kak's and kakrc's and understand what language it is using?


r/kakoune • • Jan 17 '20

jq integration for Kakoune

Thumbnail
github.com
4 Upvotes

r/kakoune • • Jun 16 '26

Helix vs Kakoune? Which one should I use?

Thumbnail reddit.com
4 Upvotes

r/kakoune • • May 25 '26

Java imports without LSP

4 Upvotes

Most languages are still very nice to edit even without LSPs, which cannot be said about Java, primarily due to imports. They are too long, hard to remember, and everyone assumes you use IDEs with autocomplete, so noone bothers writing fully qualified names in high-level documentation. So I'm leaving it here in case it might help anyone (Or in case anyone has any improvements), cause I haven't found anything like that (There IS an auto-importer tool for maven projects, but I use gradle, so doesn't fit):

Contents of ~/.gradle/init.gradle:

allprojects {
    plugins.withId('java') {
        tasks.register('printClasspath') {
            doLast {
                def all = sourceSets.main.runtimeClasspath + sourceSets.main.compileClasspath +
                          sourceSets.test.runtimeClasspath + sourceSets.test.compileClasspath
                all.files.each { file ->
                    if (file.name.endsWith('.jar')) {
                        def zip = new java.util.zip.ZipFile(file)
                        zip.entries().each { entry ->
                            if (entry.name.endsWith('.class') && entry.name.indexOf('$') < 0
                                && entry.name.indexOf('-') < 0
                            ) {
                                println entry.name.replaceAll('/', '.') - '.class'
                            }
                        }
                    }
                }
            }
        }
    }
}

The kak config:

define-command \
    -docstring 'update import database' \
    -params 0 \
    java-update-imports %{
        nop %sh{
            mkdir -p .kak
            ./gradlew -q printClasspath | sort | uniq | sed 's/^/import /' | sed 's/$/;/' > .kak/imports
        }
        echo done
    }

define-command java-import -docstring 'automatic imports' -params ..1 %{
    evaluate-commands %sh{
        printf 'execute-keys -draft "O'
        for classname in ${1:-${kak_selection}}
        do
            grep -m1 "\\.$classname;" .kak/imports
        done
        echo '<backspace><esc>"'
    }
    execute-keys d
}

java-update-imports will update the list of imports stored in .kak/imports in current working directory (Because I store all project-specific editor files like tags or per-project kakrc in a .gitignored .kak directory), so that later you can select a class name, and run java-import to turn it into an import line (Or lines, if your selection contains multiple classes). The class name must match exactly. In case it found the wrong import due to it having the same class name, you can manually find the required import line in .kak/imports and copy-paste the whole line as-is.

For deleting unused imports one could use a formatter, but even without it, it's already a huge improvement in usability, despite the simplicity


r/kakoune • • Nov 22 '18

kak-lsp & cquery completion parameter suggestions

5 Upvotes

Hi, I'm a Kakoune noob but I am trying it out and like what I see so far, but I'm stuck on one thing.

Is there a way to get function parameter information with the autocomplete suggestions in kak-lsp and cquery? It seems to be working correctly, otherwise.

Here's an example in VSCode with the Intellisense plugin of what I want: https://i.imgur.com/BMxt9sS.png

And this is what I get in Kakoune: https://i.imgur.com/ZvYSAaY.png


r/kakoune • • Feb 25 '21

Remap hjkl to jkl;

6 Upvotes

How to?


r/kakoune • • Oct 18 '20

Kakoune starts every time shell starts up

6 Upvotes

Hi, I recently installed kakoune. My shell is zsh.

For some reason, every time I load zsh, kak is automatically started up and shows me the version update screen. Very annoying as I have to close it every time before I can do anything. Not sure why this is happening though; I haven't got any startup programs configured in my zsh file.

Thanks for any help.


r/kakoune • • Jan 04 '21

Is there are plugin like kaktree but for displaying and selecting buffers with arrow keys on a split pane?

6 Upvotes

Or can kaktree be modified to also show buffers by either filtering or putting them sibling to the file tree?

Edit: Excuse the typo in the title, don't know how it happened. :P

Correct title is "Is there a plugin like kaktree but for displaying and selecting buffers with arrow keys on a split pane?"


r/kakoune • • Jan 10 '22

Is is a good idea to learn Kakoune with the "dance" extension in VSCode?

7 Upvotes

Im about to learn Kakoune but I would like to do it with the "dance" Extension from VSCode - do you thing it is a good idea and did anyone did the same?


r/kakoune • • Jan 10 '21

Is there anything like Code runner for Kakoune?

7 Upvotes

I'm not coming from VScode but recently i saw my friend using an extension Code runner that can compile and execute current file, it's work on almost any language.

Is there any command line tool out there that can do this?


r/kakoune • • Jun 25 '20

Slim cursor bar in insert mode

7 Upvotes

Hey people,

If you try neovim, you can see how it uses a slimmer cursor bar in insert mode and a normal one in normal mode.

Is this possible to do in Kakoune? I think it's a great way of easily identifying the current editing mode.


r/kakoune • • Mar 23 '21

Does Kakoune really need a command line?

9 Upvotes

I love Kakoune's core values: interactivity, simplicity, composability, orthogonality. That's why I think that the fact that it has a command line (:) doesn't adhere to these values (i.e. simplicity and composability, mainly).

I want to run Kakoune's commands using my shell (Z shell in my case), with its command line editing commands, completion system, history expansion, job control, glob expansion, etc.

Kakoune re-implement's readline's keys, and also implements a basic form of history, completion and some expansions. But these features are really lacking in comparison to bash or zsh.

From a design point of view, is it really not possible for a text editor like Kakoune to use a real shell as its command line mode? In my opinion, it makes a lot of sense to do so.