Compilation Mode Emacs-Like (most full featured)

demo
This plugin heavely inspired by Emacs’s Compiler Mode. If you know the Rusian Twitch streamer / Youtube, he use that in every single his Programming Session.

Instalation

Just copy compiler-mode.kak to your autoload directory and paste this command to your kakrc file:

require-module compilation

https://github.com/mardhiluthfilhadi/Kak-Compiler-Mode/

4 Likes

nice.

tip: your command could(?) be rewritten using require-module grep and set local grepcmd

1 Like

Supeer cool, I remember found your repository some time ago when I was looking for something like that. I end it using kakoune-repl-buffer with some hacks. Nice to see it:D

1 Like

But the pattern for “jump-to-error” is limited to grep pattern. I wrote this for alot compiler error pattern included. ODIN, lua, js, python, and etc.

This is an updated feature, now you can kill the running program, more pattern for error/warning compiler output

Take a look at tools/make.kak

kinda similar (this plugin is inspired by it, actually), but doesn’t it nice when you can type arbitrary shell command run it or kill it when you like, without committing to any build dependency? How about, “I wanna run this lua script and check if there is no error…” I can just do lua main.lua and quickly jump-to-error when there is, and you know the gist…