AutoYADM commit: 2025-05-12 00:20:08
This commit is contained in:
parent
102b66f863
commit
97b84921f3
2 changed files with 24 additions and 0 deletions
14
.config/kak/autoload/nav.kak
Normal file
14
.config/kak/autoload/nav.kak
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# 1. Find actual visual column width of content area
|
||||||
|
# 2. Parse current cursor position and buffer line content
|
||||||
|
# 3. Split the logical line into chunks based on wrap width
|
||||||
|
# 4. Move cursor to the same column offset on the wrapped line
|
||||||
|
|
||||||
|
define-command visual-down %{
|
||||||
|
nop %sh{
|
||||||
|
line="$kak_cursor_line"
|
||||||
|
col="$kak_cursor_column"
|
||||||
|
width="$kak_window_width"
|
||||||
|
count="$kak_buf_line_count"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
10
.config/kak/scripts/nav.py
Executable file
10
.config/kak/scripts/nav.py
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
line = sys.argv[1]
|
||||||
|
col = int(sys.argv[2])
|
||||||
|
width = int(sys.argv[3])
|
||||||
|
count = int(sys.argv[4])
|
||||||
|
path = sys.argv[5]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue