summaryrefslogtreecommitdiff
path: root/rc
AgeCommit message (Collapse)Author
2025-07-11Fix uses of non-standard == in shell testsHEADmasterMaxime Coste
Fixes #5357
2025-07-10fix(zig): remove empty alternatives from regexAdrià Arrufat
2025-07-08Update zig keywords and builtinsAdrià Arrufat
- keywords removed: `async`, `noasync`, and `usingnamespace` - builtins added: `memmove`
2025-06-28Merge remote-tracking branch 'erikeah/master'Maxime Coste
2025-06-27Fix julia module unbalanced separatorsMaxime Coste
Fixes #5349
2025-06-20rc windowing hyprland: initErik Alonso
2025-06-19Merge branch 'make_error_pattern_multiline' of https://github.com/ygrek/kakouneMaxime Coste
2025-06-09Add indentation for JuliaIntricate
2025-05-23Fixed latex highlighting the rest of the wayEric Toombs
I forgot to handle escaped backslashes in \[ and \( blocks.
2025-05-16latex: highlight $ $$ \[ and \( math modes properly.Eric Toombs
These math modes were being split apart by control sequence regions. To avoid this, they must be their own regions. Fixes https://github.com/mawww/kakoune/issues/5249 . Also, I got rid of an errant / in the control sequence ending regex that couldn't be right.
2025-05-11Revert "rc git: clarify reason for NormalIdle hook"Johannes Altmanninger
Commit eee362087 (Improve info box clearing behaviour, 2025-03-22) was merged shortly before commit 1c50bcd89 (rc git: clarify reason for NormalIdle hook, 2025-03-24). The first commit broke the second in the sense that "git blame-jump" no longer displays a message in the status line (with commit date/author/subject). I haven't had time to debug this yet. Revert the part of this cleanup commit that was broken.
2025-04-29Merge remote-tracking branch 'thacuber2a03/master'Maxime Coste
2025-04-29Merge remote-tracking branch 'svmhdvn/push-onupwmqqpspt'Maxime Coste
2025-04-29Merge remote-tracking branch 'arrufat/go-new-line-comment'Maxime Coste
2025-04-29Merge branch 'fix-rust-return' of https://github.com/vbauerster/kakouneMaxime Coste
2025-04-29Merge remote-tracking branch 'nojhan/feat-filetype-ttl'Maxime Coste
2025-04-27rc/filetype/moon.kak: more small changesthacuber2a03
2025-04-27rc/filetype/moon.kak: extra adjustmentsthacuber2a03
2025-04-27rc/filetype/moon.kak: overhaulthacuber2a03
2025-04-16filetype/prolog: fix comment highlightersSiva Mahadevan
2025-04-15improve inserting comments on new lines for goAdrià Arrufat
Now it matches the behavior from c-family, python, and zig
2025-04-11rc filetype rust: hl return as keywordVladimir Bauer
That line makes return keyword to highlight same color as macro plus bold which makes it look like a macro. I'm not sure if it was done on purpose but it's wrong. Return is the same keyword like any other so why make it look apart?
2025-04-10feat(filetype): ttl syntax highlighternojhan
2025-04-09Fixed latex highlighter escaping math modeEric
Previously, using any macro in math mode (e.g. `$x \in X$`) causes the whole thing to fail to be recognized as math because the macro (`\in`) would be captured by the "cs" region.
2025-04-05Merge remote-tracking branch 'eraserhd/Rmd-is-markdown'Maxime Coste
2025-04-03update zig builtinsAdrià Arrufat
2025-03-31Handle RmdJason Felice
2025-03-29Revert "editorconfig: fix trim_trailing_whitespace"Johannes Altmanninger
https://editorconfig.org says > trim_trailing_whitespace: set to true to remove any whitespace > characters preceding newline characters and false to ensure it > doesn't. We also trim trailing empty lines, which causes unnecessary formatting discrepancies when working with other tools that implement the specification only. This backs out commit 33f44f6abcd758977e346adb91b991c003725281. Cc: Jonathan Halmen <jonathan@halmen.org>
2025-03-25rc git: fix blame/blame-jump/apply on files with eolformat=crlfJohannes Altmanninger
<a-|> produces \n line endings, which confuses Git when the tracked file uses \r\n line endings. Work around that.
2025-03-25rc git: clarify reason for NormalIdle hookJohannes Altmanninger
When blame and blame-jump invoke "git show" they set a BufCloseFifo hook to display a statusline message and center the viewport. As mentioned in the previous patch (which fixed a copy-paste error), the statusline message does not need a NormalIdle hook. Move it to prevent such errors.
2025-03-25rc git: display error from git blame immediatelyJohannes Altmanninger
When "git blame" fails, it prints an error message to the status line via a NormalIdle hook. But the hook is only necessary for "execute-keys vv". (as a workaround for https://github.com/mawww/kakoune/issues/5082). Since we run "git blame" in the background, it will not trigger a NormalIdle hook when finished. This means that the "failed to run git blame" message will only be shown after the next key press. This problem can be reproduced by first adding a sleep here: diff --git a/rc/tools/git.kak b/rc/tools/git.kak index 05e6ff144..bd899365f 100644 --- a/rc/tools/git.kak +++ b/rc/tools/git.kak @@ -301,4 +301,5 @@ define-command -params 1.. \ echo 'echo -markup {Information}Press <ret> to jump to blamed commit' ( + sleep .1 trap - INT QUIT if [ -z "${kak_opt_git_blob}" ]; then and then running ':git blame' in a file that is not Git-tracked. Reduce the scope of the hook to show this error message immediately.
2025-03-24rc git: fail blame-jump explicitly when there is no clientJohannes Altmanninger
My kak -e 'hook global WinCreate /.* %{ git blame-jump }; edit README.asciidoc' hangs until I cancel it with <c-c>. The error is error while waiting for shell: 1:1: 'evaluate-commands': 3:21: 'execute-keys': no such client: '-draft' git blame-jump cannot do anything useful without a client in context, so fail early and explicitly.
2025-03-24rc git: throw an error when diffutils is not installedJohannes Altmanninger
Some of our git wrappers use the diff utility; if it's not installed we'll hang because no one is opening the fifo for reading. For example, this happens when running chmod -x $(which diff) && kak -e "edit README.asciidoc; git apply" Fail earlier, I guess -- although it's probably fine as-is.
2025-03-24rc git: blame to not hide error when cd_bufdir failsJohannes Altmanninger
Running "git blame" in a scratch buffer echoes "Press <ret> to jump to blamed commit" even though the blaming clearly fails. The failure is silent because cd_bufdir exits the shell, so we don't even attempt to run "git blame". cd_bufdir prints a "fail" command stdout but that goes to /dev/null in this case. I don't really understand why 891a9f5fe (Merge remote-tracking branch 'lenormf/fix-git-tools', 2019-09-22) moved cd_bufdir inside this background subshell. I guess it didn't matter as much back then when we didn't have the "Press <ret> to jump" message. Also the existing error message printed by cd_bufdir for scratch buffers is confusing. Fail as early as possible, showing a suitable error. Note that "git blame" does work in filetype=git-diff and filetype=git-log buffers, so don't attempt cd_bufdir inside those.
2025-03-24rc git: fix blaming when in subdirectoryJohannes Altmanninger
When $PWD is different from $(git rev-parse --show-toplevel, recursive blaming is broken. For example (assuming k moves to a delted line): kak -e 'cd src; edit main.cc; git blame-jump; hook -once g NormalIdle .* %{ exec k; git blame-jump }' Fix this by 1. computing the correct path from diff-parse (we already require the git command be run in a git directory). 2. passing absolute paths to the recursive "git blame" invocations
2025-03-18Add syntax highlighting for PRQLJonathan
PRQL is a modern language for transforming data — a simple, powerful, pipelined SQL replacement. https://prql-lang.org/ https://github.com/PRQL/prql
2025-02-28Merge remote-tracking branch 'velrest/gjs' into HEADMaxime Coste
2025-02-26Merge branch 'patch-1' of https://github.com/Supreeeme/kakoune into HEADMaxime Coste
2025-02-26Merge remote-tracking branch 'thacuber2a03/master' into HEADMaxime Coste
2025-02-18rc git: Use wider characters for added/modified linesShawn Wallace
2025-02-18rc git: fix blame in diff of deleted/renamed filesJohannes Altmanninger
The code paths around "Missing commit line, assume it is an uncommitted change" in both blame and blame-jump code look suspiciously similar. It's possible that we can extract at least something, but there is a fundamental difference: blame-jump only jumps to another diff, while blame jumps from diff to blob, which may be a good reason for keeping them separate. More specifically, blame-jump passes « $version = "-" » because it's only interested in the parent commit/file/line, whereas blame wants to default to using the child commit/file/line (for added and context lines) and only uses the parent commit/file/line when run on deleted lines or on uncommitted changes (where HEAD is assumed to be parent commit even if there is no child). Unfortunately the blame path forgot to change to use the parent file for these; fix that and get rid of some code duplication.
2025-02-18rc git: remove dead codeJohannes Altmanninger
This branch is always taken since we check $diff_line_text above.
2025-02-18rc git: remove else after returnJohannes Altmanninger
2025-02-10Format blamed commit timestamps using the original time zoneJohannes Altmanninger
Surprisingly, these two commands show different commit times: git blame README.asciidoc kak -e 'git blame' README.asciidoc This is because git shows times as of the original time zone (of the author/committer). Our blame integration uses the current local time. - blame-jump displays the date in the status line of a git-show buffer This date may be inconsistent with the buffer's "Date:" header, so this seems surprising. Fix that. This fixes a test in some time zones. - Unlike "git blame", our ":git blame" does not display time zone info by default. So, the conversion to localtime might make sense. I don't really have an opinion on this. Change it too I guess, since the current behavior might not have been intended. Fixes #5285
2025-02-05rc/filetype/lua.kak: fix some highlighter issuesthacuber2a03
2025-02-04Merge branch 'master' of https://github.com/rowanxshi/kakouneMaxime Coste
2025-02-04Merge remote-tracking branch 'mu-suwi/fix-fennel-highlight'Maxime Coste
2025-01-26rc/filetype: add forth.kakSiva Mahadevan
2025-01-24julia lang block commentsRowan Shi
2025-01-24Fix highlighting regex for operators and values in Fennelmu suwi