AutoYADM commit: 2025-05-12 00:52:10
This commit is contained in:
parent
4cc2892f14
commit
dc8ac7f4cb
2 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,9 @@ define-command visual-down %{
|
||||||
col="$kak_cursor_column"
|
col="$kak_cursor_column"
|
||||||
width="$kak_window_width"
|
width="$kak_window_width"
|
||||||
count="$kak_buf_line_count"
|
count="$kak_buf_line_count"
|
||||||
|
path="$kak_buffile"
|
||||||
|
new_col=$($kak_config/scripts/nav.py "$line" "$col" "$width" "$count" "$path" "down")
|
||||||
|
# TODO: figure out how to jump to this column?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,3 +23,6 @@ visual_col = col % wrap_width
|
||||||
new_visual_row = visual_row + (-1 if direction == "up" else 1)
|
new_visual_row = visual_row + (-1 if direction == "up" else 1)
|
||||||
if 0 <= new_visual_row < len(chunks):
|
if 0 <= new_visual_row < len(chunks):
|
||||||
target_chunk = chunks[new_visual_row]
|
target_chunk = chunks[new_visual_row]
|
||||||
|
new_col = min(visual_col, len(target_chunk) - 1)
|
||||||
|
new_abs_col = new_visual_row * wrap_width + new_col
|
||||||
|
print(new_abs_col)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue