terminal user interface to jujutsu. Focused on speed and clarity
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

add file view commit command

Eli Dowling 2010d062 997fee95

+20 -1
+1 -1
README.md
··· 20 20 To open a shell with jj_tui on nix:`nix shell github:faldor20/jj_tui`` 21 21 22 22 ## Dependencies 23 - The jujutsu CLI. 23 + The jujutsu CLI (minimum version 0.30.0) 24 24 I haven't tested on windows or Mac. 25 25 I believe it won't work outside Unix so Windows users will currently have to use wsl. 26 26
+18
jj_tui/bin/file_commands.ml
··· 85 85 @ Lwd.peek active_files ))) 86 86 } 87 87 ; { 88 + id = "commit" 89 + ; description = "Create a commit with the selected files" 90 + ; sorting_key = 3.0 91 + ; make_cmd = 92 + (fun () -> 93 + PromptThen 94 + ( "Commit message" 95 + , fun message -> 96 + 97 + Fun 98 + (fun _-> (* I need this to work with any commit. So i should split then describe instead*) 99 + let rev=Vars.get_hovered_rev () in 100 + jj 101 + ( [ "split";"-r"; rev; "-m";message; "--insert-before"; "@" ] 102 + @ Lwd.peek active_files )|>ignore; 103 + ))) 104 + } 105 + ; { 88 106 id = "abandon" 89 107 ; description = "Restore to previous revision (git discard)" 90 108 ; sorting_key = 4.0
+1
jj_tui/lib/key_map.ml
··· 217 217 ; cmd "N" "move_to_child" 218 218 ; cmd "P" "move_to_parent" 219 219 ; cmd "a" "abandon" 220 + ; cmd "c" "commit" 220 221 ; sub 221 222 "A" 222 223 "absorb"