keybinding jump_to_prompt for semantic prompts

This commit is contained in:
Mitchell Hashimoto
2023-07-06 10:30:29 -07:00
parent b542f7e3c4
commit 9f86c48fd8
8 changed files with 47 additions and 1 deletions

View File

@@ -1504,7 +1504,7 @@ pub fn setScrollingRegion(self: *Terminal, top: usize, bottom: usize) void {
/// (OSC 133) only allow setting this for wherever the current active cursor
/// is located.
pub fn markSemanticPrompt(self: *Terminal, p: SemanticPrompt) void {
// log.warn("semantic_prompt: {}", .{p});
//log.warn("semantic_prompt y={} p={}", .{ self.screen.cursor.y, p });
const row = self.screen.getRow(.{ .active = self.screen.cursor.y });
row.setSemanticPrompt(switch (p) {
.prompt => .prompt,