# Latest

**URL:** https://discuss.kakoune.com/latest.md?page=3

[Latest](https://discuss.kakoune.com/latest.md) · [Categories](https://discuss.kakoune.com/categories.md) · [Tags](https://discuss.kakoune.com/tags.md)

**Page:** 4

---

## [Repeat-char: inserting a character n times in Insert mode](https://discuss.kakoune.com/t/repeat-char-inserting-a-character-n-times-in-insert-mode/2774)

<div class="topic-metadata">

**Author:** [@ftonneau](https://discuss.kakoune.com/u/ftonneau)\
**Replies:** 1\
**Last updated:** [October 24, 2025, 9:28am UTC](https://discuss.kakoune.com/t/repeat-char-inserting-a-character-n-times-in-insert-mode/2774 "2025-10-24T09:28:13Z")

</div>

This plugin is a resurrection of the first plugin/recipe I ever wrote for Kakoune. I deleted the original repository and created a new one: The new version has been improved by the inclusion of a default character an…

---

## [Nanoline.kak: A modeline inspired by Nano Emacs](https://discuss.kakoune.com/t/nanoline-kak-a-modeline-inspired-by-nano-emacs/2773)

<div class="topic-metadata">

**Author:** [@ftonneau](https://discuss.kakoune.com/u/ftonneau)\
**Replies:** 0\
**Last updated:** [October 19, 2025, 9:58am UTC](https://discuss.kakoune.com/t/nanoline-kak-a-modeline-inspired-by-nano-emacs/2773 "2025-10-19T09:58:54Z")

</div>

The title speaks for itself. Screenshots: And project link:

---

## [Lookup dictionary definitions with the dict protocol](https://discuss.kakoune.com/t/lookup-dictionary-definitions-with-the-dict-protocol/2769)

<div class="topic-metadata">

**Author:** [@marcc](https://discuss.kakoune.com/u/marcc)\
**Replies:** 2\
**Last updated:** [October 7, 2025, 9:54pm UTC](https://discuss.kakoune.com/t/lookup-dictionary-definitions-with-the-dict-protocol/2769 "2025-10-07T21:54:51Z")

</div>

Heya, I just wanted to share this small snippet for looking up definitions of words from dict.org. It uses the dict protocol and requires curl. define-command -override lookup\_word -docstring "Lookup word under selecti…

---

## [Saving & restoring scroll position/window view](https://discuss.kakoune.com/t/saving-restoring-scroll-position-window-view/2766)

<div class="topic-metadata">

**Author:** [@ficd](https://discuss.kakoune.com/u/ficd)\
**Replies:** 0\
**Last updated:** [October 3, 2025, 7:34pm UTC](https://discuss.kakoune.com/t/saving-restoring-scroll-position-window-view/2766 "2025-10-03T19:34:39Z")

</div>

Imagine you have a command that uses Z to save and restore some selections. What if you want everything to restore exactly how it looked before, including the window scroll position? Turns out, we can easily write comma…

---

## [Eval 'Source' no buffer in context](https://discuss.kakoune.com/t/eval-source-no-buffer-in-context/2760)

<div class="topic-metadata">

**Author:** [@IronKing127](https://discuss.kakoune.com/u/IronKing127)\
**Replies:** 2\
**Last updated:** [October 2, 2025, 1:04am UTC](https://discuss.kakoune.com/t/eval-source-no-buffer-in-context/2760 "2025-10-02T01:04:32Z")

</div>

Hello I suddenly started getting an error which prints /home/\*\*\*\*/.config/kak/kakrc:no buffer in context followed by a /usr/share/kak/kakrc:29:1 eval 163:1 'source' no buffer in context error while parsing kakrc 1:1: …

---

## [Vertical line for suggested max line width](https://discuss.kakoune.com/t/vertical-line-for-suggested-max-line-width/2501)

<div class="topic-metadata">

**Author:** [@vorboyvo](https://discuss.kakoune.com/u/vorboyvo)\
**Replies:** 10\
**Last updated:** [October 1, 2025, 7:54pm UTC](https://discuss.kakoune.com/t/vertical-line-for-suggested-max-line-width/2501 "2025-10-01T19:54:27Z")

</div>

Hi - not sure how to describe this problem super easily, so I haven’t been able to search for a good solution on the internet. On JetBrains IDEs I’ve used in the past, there’s a vertical line that serves as a guideline …

---

## [Is it possible to highlight whole lines with a regex?](https://discuss.kakoune.com/t/is-it-possible-to-highlight-whole-lines-with-a-regex/2762)

<div class="topic-metadata">

**Author:** [@igr](https://discuss.kakoune.com/u/igr)\
**Replies:** 12\
**Last updated:** [October 1, 2025, 12:44am UTC](https://discuss.kakoune.com/t/is-it-possible-to-highlight-whole-lines-with-a-regex/2762 "2025-10-01T00:44:06Z")

</div>

This is what I have:

---

## [Shadow.kak: a plugin to colorize buffer regions in Kakoune](https://discuss.kakoune.com/t/shadow-kak-a-plugin-to-colorize-buffer-regions-in-kakoune/2763)

<div class="topic-metadata">

**Author:** [@ftonneau](https://discuss.kakoune.com/u/ftonneau)\
**Replies:** 0\
**Last updated:** [October 1, 2025, 12:43am UTC](https://discuss.kakoune.com/t/shadow-kak-a-plugin-to-colorize-buffer-regions-in-kakoune/2763 "2025-10-01T00:43:09Z")

</div>

As a follow-up on the previous conversation: https://discuss.kakoune.com/t/is-it-possible-to-highlight-whole-lines-with-a-regex/ I have published a plugin to colorize buffer regions in Kakoune. The plugin allows multip…

---

## [Is anyone interested in writing Github Copilot plugin?](https://discuss.kakoune.com/t/is-anyone-interested-in-writing-github-copilot-plugin/2131)

<div class="topic-metadata">

**Author:** [@theowenyoung](https://discuss.kakoune.com/u/theowenyoung)\
**Replies:** 38\
**Last updated:** [September 25, 2025, 9:12pm UTC](https://discuss.kakoune.com/t/is-anyone-interested-in-writing-github-copilot-plugin/2131 "2025-09-25T21:12:00Z")

</div>

It really helps a lot: there is an official vim plugin: https://github.com/github/copilot.vim and, an unofficial emacs plugin: https://github.com/zerolfx/copilot.el I want to implement it in kakoune, but have abso…

---

## [Extra\_word\_chars is used for two unrelated things](https://discuss.kakoune.com/t/extra-word-chars-is-used-for-two-unrelated-things/2756)

<div class="topic-metadata">

**Author:** [@7v0lk0v](https://discuss.kakoune.com/u/7v0lk0v)\
**Replies:** 9\
**Last updated:** [September 21, 2025, 7:17am UTC](https://discuss.kakoune.com/t/extra-word-chars-is-used-for-two-unrelated-things/2756 "2025-09-21T07:17:39Z")

</div>

extra\_word\_chars is used for movement but also for lsp identifier extraction. I think these should be decoupled by introducing extra\_word\_chars\_id, unless there’s a better idea. The issue is that I change extra\_word\_ch…

---

## [Helper command for registering toggle commands](https://discuss.kakoune.com/t/helper-command-for-registering-toggle-commands/2759)

<div class="topic-metadata">

**Author:** [@ficd](https://discuss.kakoune.com/u/ficd)\
**Replies:** 0\
**Last updated:** [September 19, 2025, 9:34pm UTC](https://discuss.kakoune.com/t/helper-command-for-registering-toggle-commands/2759 "2025-09-19T21:34:53Z")

</div>

I’m certain we’re all familiar with the following pattern: define-command foobar-enable %{ echo enabling foobar... # ... } define-command foobar-disable %{ echo disabling foobar... # ... } Fair enough, it’s sim…

---

## [Oil shell as an alternative shell script language in Kakoune](https://discuss.kakoune.com/t/oil-shell-as-an-alternative-shell-script-language-in-kakoune/2722)

<div class="topic-metadata">

**Author:** [@marcc](https://discuss.kakoune.com/u/marcc)\
**Replies:** 6\
**Last updated:** [September 18, 2025, 3:44pm UTC](https://discuss.kakoune.com/t/oil-shell-as-an-alternative-shell-script-language-in-kakoune/2722 "2025-09-18T15:44:57Z")

</div>

So I just gave this a spin, but it shows some promise. There is oils.pub which provides osh, a posix compatible shell, which can be upgraded to ysh, which is a shell scripting language with data structures and more. Si…

---

## [POC: Configuring Kakoune in Guile](https://discuss.kakoune.com/t/poc-configuring-kakoune-in-guile/2685)

<div class="topic-metadata">

**Author:** [@marcc](https://discuss.kakoune.com/u/marcc)\
**Replies:** 8\
**Last updated:** [September 18, 2025, 8:19am UTC](https://discuss.kakoune.com/t/poc-configuring-kakoune-in-guile/2685 "2025-09-18T08:19:09Z")

</div>

What if Kakoune was turned into a Lisp machine? I modified this code to connect Kakoune to a guile script that sets up a repl on startup. So the basic setup in Kakoune is the following: declare-option str guile\_socket …

---

## [Using other name than keys name in \`execute-keys\`, \`map\`, etc](https://discuss.kakoune.com/t/using-other-name-than-keys-name-in-execute-keys-map-etc/1177)

<div class="topic-metadata">

**Author:** [@scr](https://discuss.kakoune.com/u/scr)\
**Replies:** 17\
**Last updated:** [September 17, 2025, 4:09am UTC](https://discuss.kakoune.com/t/using-other-name-than-keys-name-in-execute-keys-map-etc/1177 "2025-09-17T04:09:36Z")

</div>

Hello ! Anyone has remapped most of kakoune keybinding to a point where it’s difficult to write/read script using the execute-keys function ? I feel like it would be more readable to have: execute-keys \<unselect\> \<g…

---

## [Binding complex command](https://discuss.kakoune.com/t/binding-complex-command/2753)

<div class="topic-metadata">

**Author:** [@peperronii](https://discuss.kakoune.com/u/peperronii)\
**Replies:** 5\
**Last updated:** [September 15, 2025, 3:26am UTC](https://discuss.kakoune.com/t/binding-complex-command/2753 "2025-09-15T03:26:08Z")

</div>

So I roughly understands how kakoune’s parsing works and I can get buy raw dogging a command in the kakoune’s command line. Right now, I’m trying to bind this: :try %{exec "%%s(/\\\*.\*\\\*/\\n){11}\<ret\>”} this selects C-mul…

---

## [Selecting whole buffer immediately after a grep command](https://discuss.kakoune.com/t/selecting-whole-buffer-immediately-after-a-grep-command/2750)

<div class="topic-metadata">

**Author:** [@albak](https://discuss.kakoune.com/u/albak)\
**Replies:** 2\
**Last updated:** [September 4, 2025, 10:21pm UTC](https://discuss.kakoune.com/t/selecting-whole-buffer-immediately-after-a-grep-command/2750 "2025-09-04T22:21:53Z")

</div>

Hello fellow mouilleurs I’m trying to create a command that greps a pattern in a buffer, selects the whole grep buffer and applies a few commands (aligns the matched patterns). I am getting an error/inconsistency. My c…

---

## [Syntax highlighting for typst in kakoune](https://discuss.kakoune.com/t/syntax-highlighting-for-typst-in-kakoune/2744)

<div class="topic-metadata">

**Author:** [@Migsej](https://discuss.kakoune.com/u/Migsej)\
**Replies:** 0\
**Last updated:** [August 22, 2025, 5:40pm UTC](https://discuss.kakoune.com/t/syntax-highlighting-for-typst-in-kakoune/2744 "2025-08-22T17:40:12Z")

</div>

---

## [Refer to begin-of/end-of selection, like BOL/EOL (^/$)](https://discuss.kakoune.com/t/refer-to-begin-of-end-of-selection-like-bol-eol/2740)

<div class="topic-metadata">

**Author:** [@7v0lk0v](https://discuss.kakoune.com/u/7v0lk0v)\
**Replies:** 5\
**Last updated:** [August 19, 2025, 1:37am UTC](https://discuss.kakoune.com/t/refer-to-begin-of-end-of-selection-like-bol-eol/2740 "2025-08-19T01:37:45Z")

</div>

Hi all, aim: to delete leading and trailing whitespace chars in an arbitrary selection - not to be confused with unselecting leading/trailing whitespace which is what the \_ cmd does. I can’t figure out how to do this, …

---

## [Autoindent always uses row above, even when it's empty](https://discuss.kakoune.com/t/autoindent-always-uses-row-above-even-when-its-empty/2318)

<div class="topic-metadata">

**Author:** [@joncol](https://discuss.kakoune.com/u/joncol)\
**Replies:** 1\
**Last updated:** [August 11, 2025, 1:28pm UTC](https://discuss.kakoune.com/t/autoindent-always-uses-row-above-even-when-its-empty/2318 "2025-08-11T13:28:02Z")

</div>

Hi, is there some reasonably easy way to make autoindentation use the previous non-empty line when calculating what indentation to use, instead of always using the previous line? For example: int main() { printf("h…

---

## [Toolsclient and extrernal tools](https://discuss.kakoune.com/t/toolsclient-and-extrernal-tools/2733)

<div class="topic-metadata">

**Author:** [@shinyzero0](https://discuss.kakoune.com/u/shinyzero0)\
**Replies:** 7\
**Last updated:** [August 3, 2025, 6:39am UTC](https://discuss.kakoune.com/t/toolsclient-and-extrernal-tools/2733 "2025-08-03T06:39:56Z")

</div>

We have a toolsclient that allows to have various tools always at hand without much overhead of switching windows and such. Sadly, that works only with kakoune tools, while our philosophy seems to be against reimplementi…

---

## [Kakoune meme fresh off the press](https://discuss.kakoune.com/t/kakoune-meme-fresh-off-the-press/2735)

<div class="topic-metadata">

**Author:** [@ficd](https://discuss.kakoune.com/u/ficd)\
**Replies:** 0\
**Last updated:** [August 1, 2025, 3:21am UTC](https://discuss.kakoune.com/t/kakoune-meme-fresh-off-the-press/2735 "2025-08-01T03:21:37Z")

</div>

Some of us in the Discord server collaboratively cooked up this meme, I felt I would share it here (there probably aren’t many other places online it will be appreciated)

---

## [Catch piping errors not working](https://discuss.kakoune.com/t/catch-piping-errors-not-working/2464)

<div class="topic-metadata">

**Author:** [@7v0lk0v](https://discuss.kakoune.com/u/7v0lk0v)\
**Replies:** 22\
**Last updated:** [July 30, 2025, 4:01pm UTC](https://discuss.kakoune.com/t/catch-piping-errors-not-working/2464 "2025-07-30T16:01:23Z")

</div>

I assume I’m missing something obvious but all I want is to display a message if a pipe fails instead of the error silently being written to \*debug\* buffer - eg. pipe a selection through bla and if it fails (bla doesn’t …

---

## [How do you easily disable the default init file for a filetype?](https://discuss.kakoune.com/t/how-do-you-easily-disable-the-default-init-file-for-a-filetype/2607)

<div class="topic-metadata">

**Author:** [@GavinSmith0123](https://discuss.kakoune.com/u/GavinSmith0123)\
**Replies:** 11\
**Last updated:** [July 28, 2025, 12:59pm UTC](https://discuss.kakoune.com/t/how-do-you-easily-disable-the-default-init-file-for-a-filetype/2607 "2025-07-28T12:59:21Z")

</div>

I am using Kakoune v2021.11.08-135-geae8ea8a. I would like to disable a filetype completely. I use kakoune for editing email and the file filetype/mail.kak is activated. Specifically it overrides the binding of the \<ret\>…

---

## [Window title?](https://discuss.kakoune.com/t/window-title/751)

<div class="topic-metadata">

**Author:** [@andreyorst](https://discuss.kakoune.com/u/andreyorst)\
**Replies:** 5\
**Last updated:** [July 26, 2025, 5:36pm UTC](https://discuss.kakoune.com/t/window-title/751 "2025-07-26T17:36:10Z")

</div>

I’ve never noticed this, because I’ve used tmux all the time, but recently I’ve started Kakoune outside of tmux and saw this window title: Funny enough it is exactly my modeline: What should I change to make it di…

---

## [What do you use registers for?](https://discuss.kakoune.com/t/what-do-you-use-registers-for/2188)

<div class="topic-metadata">

**Author:** [@FlyingWombat](https://discuss.kakoune.com/u/FlyingWombat)\
**Replies:** 5\
**Last updated:** [July 25, 2025, 2:38am UTC](https://discuss.kakoune.com/t/what-do-you-use-registers-for/2188 "2025-07-25T02:38:53Z")

</div>

I just realized: In my years of using kakoune, I have never used non-special registers (e.g. a, b, 1, 2, etc.). I have considered using them in plugins and scripts, but options are better suited for that because, with r…

---

## [My plugins](https://discuss.kakoune.com/t/my-plugins/2729)

<div class="topic-metadata">

**Author:** [@andreyorst](https://discuss.kakoune.com/u/andreyorst)\
**Replies:** 0\
**Last updated:** [July 24, 2025, 10:14pm UTC](https://discuss.kakoune.com/t/my-plugins/2729 "2025-07-24T22:14:40Z")

</div>

Hi everyone! I’ve been absent for several years, just checking in to say that I’m honestly amazed that my plugins, while being archived for almost four years now, are still in a working shape, despite Kakoune changing s…

---

## [Troubles with kaktree plugin](https://discuss.kakoune.com/t/troubles-with-kaktree-plugin/2704)

<div class="topic-metadata">

**Author:** [@coldmayo](https://discuss.kakoune.com/u/coldmayo)\
**Replies:** 1\
**Last updated:** [July 24, 2025, 10:06pm UTC](https://discuss.kakoune.com/t/troubles-with-kaktree-plugin/2704 "2025-07-24T22:06:29Z")

</div>

I have just added kaktree to my bashrc but have had some trouble getting it to work. When I use the :kaktree\_toggle command the file tree does seem to come up, but when I try to open a directory with the tab key or use …

---

## [Buffer order](https://discuss.kakoune.com/t/buffer-order/2727)

<div class="topic-metadata">

**Author:** [@gregk](https://discuss.kakoune.com/u/gregk)\
**Replies:** 8\
**Last updated:** [July 24, 2025, 7:45pm UTC](https://discuss.kakoune.com/t/buffer-order/2727 "2025-07-24T19:45:09Z")

</div>

At times I want to stack buffers in one kakoune window instead of opening multiple instances of kakoune in multiple windows. files a,b,c,d,e,f for example, but in some arbitrary order such as f, e, d, c, b, a kak f e d …

---

## [One way to tackle mode confusion](https://discuss.kakoune.com/t/one-way-to-tackle-mode-confusion/2725)

<div class="topic-metadata">

**Author:** [@tuerda](https://discuss.kakoune.com/u/tuerda)\
**Replies:** 1\
**Last updated:** [July 13, 2025, 11:38pm UTC](https://discuss.kakoune.com/t/one-way-to-tackle-mode-confusion/2725 "2025-07-13T23:38:13Z")

</div>

I posted this on r/kakoune and a user asked me to post the same thing here. Copying verbatim: Hi. Recent convert from vim here. One thing that has bothered me about kakoune is how little feedback it gives about whether…

---

## [How can I pass the project root variable from kak-lsp into a shell command](https://discuss.kakoune.com/t/how-can-i-pass-the-project-root-variable-from-kak-lsp-into-a-shell-command/2706)

<div class="topic-metadata">

**Author:** [@IronKing127](https://discuss.kakoune.com/u/IronKing127)\
**Replies:** 7\
**Last updated:** [July 11, 2025, 10:03pm UTC](https://discuss.kakoune.com/t/how-can-i-pass-the-project-root-variable-from-kak-lsp-into-a-shell-command/2706 "2025-07-11T22:03:34Z")

</div>

Hello I wanted to make it easier to open files in the current project. Right now I am using a one program one job Unix philosophy workflow using Hyprland as the tiling system, ranger as an in terminal file explorer, and …

[Previous page](https://discuss.kakoune.com/latest.md?page=2)

[Next page](https://discuss.kakoune.com/latest.md?page=4)
