static void cmd_ctrl_wH(key_info_t key_info, keys_info_t *keys_info) { if(is_right_or_bottom()) { view_switch_views(); } move_window(get_active_view(), 0, 1); }
aligned_size = aligned_size - aligned_size%8; estimated_string_space_size += aligned_size; } Jump_Lister_Parameters jump_lister_params = {0}; jump_lister_params.list_buffer_id = list_buffer_id; jump_lister_params.activation_rule = activation_rule; if (optional_target_view != 0){ jump_lister_params.target_view_id = optional_target_view->view_id; } begin_integrated_lister__basic_list(app, "Jump:", activate_jump, &jump_lister_params, sizeof(jump_lister_params), options, option_count, estimated_string_space_size, ui_view); end_temp_memory(temp); } } CUSTOM_COMMAND_SIG(view_jump_list_with_lister) CUSTOM_DOC("When executed on a buffer with jumps, creates a persistent lister for all the jumps") { View_Summary view = get_active_view(app, AccessAll); open_jump_lister(app, &global_part, &global_heap, &view, view.buffer_id, JumpListerActivation_OpenInNextViewKeepUI, 0); } // BOTTOM
/* 4coder_direct_jump.cpp - Commands and helpers for parsing jump locations from compiler errors and jumping to them in the corresponding buffer. */ // TOP CUSTOM_COMMAND_SIG(goto_jump_at_cursor_direct) CUSTOM_DOC("If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in another view and changes the active panel to the view containing the jump.") { Temp_Memory temp = begin_temp_memory(&global_part); View_Summary view = get_active_view(app, AccessProtected); Name_Line_Column_Location location = {0}; if (parse_jump_from_buffer_line(app, &global_part, view.buffer_id, view.cursor.line, false, &location)){ change_active_panel(app); View_Summary target_view = get_active_view(app, AccessAll); Buffer_Summary buffer = {0}; if (get_jump_buffer(app, &buffer, &location)){ switch_to_existing_view(app, &target_view, &buffer); jump_to_location(app, &target_view, &buffer, location); } } end_temp_memory(temp); } CUSTOM_COMMAND_SIG(goto_jump_at_cursor_same_panel_direct) CUSTOM_DOC("If the cursor is found to be on a jump location, parses the jump location and brings up the file and position in this view, losing the compilation output or jump list..") {