···82828383 let hovered_var = ref "./"
84848585- let file_view focus =
8585+ let file_view ~focus summary_focus =
8686 let file_uis =
8787 let$ files = Lwd.get Vars.ui_state.jj_change_files in
8888 files
···113113 Show_view.(push_status (File_preview (Vars.get_hovered_rev (), hovered))))
114114 ~custom_handler:(fun ~selected:_ ~selectable_items:_ key ->
115115 match key with
116116+ | `Enter, [] ->
117117+ Focus.request_reversable summary_focus;
118118+ `Handled
116119 | `ASCII k, [] ->
117120 handleInputs command_mapping k
118121 | _ ->
+4-1
jj_tui/bin/graph_view.ml
···351351352352 (*TODO:make a custom widget the renders the commit with and without selection.
353353 with selection replace the dot with a blue version and slightly blue tint the background *)
354354- let graph_view ~focus () =
354354+ let graph_view ~focus summary_focus () =
355355 (*We have a seperate error var here instead of using a result type. This allows us to avoid using Lwd.bind which would cause our list selection to get reset anytime the content changes *)
356356 let error_var = Lwd.var None in
357357 let revset_ui =
···417417 in
418418 (* run commands when there is keybaord input*)
419419 let handleKeys = function
420420+ | `Enter, [] ->
421421+ Focus.request_reversable summary_focus;
422422+ `Handled
420423 | `ASCII k, [] ->
421424 handleInputs command_mapping k
422425 | _ ->