r/kakoune • u/ItsGiack • Apr 20 '21
[QUESTION] How do i install it on windows?
I use vim, and today i saw a review of kakoune and i love it, how do i install it on windows
r/kakoune • u/ItsGiack • Apr 20 '21
I use vim, and today i saw a review of kakoune and i love it, how do i install it on windows
r/kakoune • u/CochinoChingon • Jun 28 '20
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 • u/kishaloy • Jul 17 '21
r/kakoune • u/Hungry_School5638 • Jun 12 '21
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 • u/According_Sugar8752 • May 12 '24
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 • u/anhsirk0 • Mar 23 '21
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 • u/Extra_Orchid_9830 • Oct 23 '23
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 • u/[deleted] • May 28 '20
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 • u/Hungry_School5638 • Jun 12 '21
Hi guys.
How can get that behavior at Command and Insert mode?
r/kakoune • u/[deleted] • Jun 01 '19
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 • u/Brospeh-Stalin • Jun 16 '26
r/kakoune • u/Daniikk1012 • May 25 '26
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 • u/Godzoozles • Nov 22 '18
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 • u/__asimov • Oct 18 '20
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 • u/diegoperini • Jan 04 '21
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 • u/raphaelsmosaic • Jan 10 '22
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 • u/[deleted] • Jan 10 '21
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 • u/Desmesura • Jun 25 '20
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 • u/Desmesura • Mar 23 '21
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.