···2020To open a shell with jj_tui on nix:`nix shell github:faldor20/jj_tui``
21212222## Dependencies
2323-The jujutsu CLI.
2323+The jujutsu CLI (minimum version 0.30.0)
2424I haven't tested on windows or Mac.
2525I believe it won't work outside Unix so Windows users will currently have to use wsl.
2626
+18
jj_tui/bin/file_commands.ml
···8585 @ Lwd.peek active_files )))
8686 }
8787 ; {
8888+ id = "commit"
8989+ ; description = "Create a commit with the selected files"
9090+ ; sorting_key = 3.0
9191+ ; make_cmd =
9292+ (fun () ->
9393+ PromptThen
9494+ ( "Commit message"
9595+ , fun message ->
9696+9797+ Fun
9898+ (fun _-> (* I need this to work with any commit. So i should split then describe instead*)
9999+ let rev=Vars.get_hovered_rev () in
100100+ jj
101101+ ( [ "split";"-r"; rev; "-m";message; "--insert-before"; "@" ]
102102+ @ Lwd.peek active_files )|>ignore;
103103+ )))
104104+ }
105105+ ; {
88106 id = "abandon"
89107 ; description = "Restore to previous revision (git discard)"
90108 ; sorting_key = 4.0
+1
jj_tui/lib/key_map.ml
···217217 ; cmd "N" "move_to_child"
218218 ; cmd "P" "move_to_parent"
219219 ; cmd "a" "abandon"
220220+ ; cmd "c" "commit"
220221 ; sub
221222 "A"
222223 "absorb"