AutoYADM commit: 2025-05-12 03:15:08
This commit is contained in:
parent
dc8ac7f4cb
commit
c6543d13f4
2 changed files with 23 additions and 10 deletions
|
@ -3,15 +3,23 @@
|
|||
# 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{
|
||||
define-command visual-vertical -params 1 %{
|
||||
execute-keys %sh{
|
||||
line="$kak_cursor_line"
|
||||
col="$kak_cursor_column"
|
||||
width="$kak_window_width"
|
||||
count="$kak_buf_line_count"
|
||||
path="$kak_buffile"
|
||||
new_col=$($kak_config/scripts/nav.py "$line" "$col" "$width" "$count" "$path" "down")
|
||||
session="$kak_session"
|
||||
distance=$($kak_config/scripts/nav.py "$session" "$line" "$col" "$width" "$count" "$path" "$1")
|
||||
echo "$distance"
|
||||
# TODO: figure out how to jump to this column?
|
||||
} %sh{
|
||||
if [ "$1" = "up" ]; then
|
||||
echo h
|
||||
else
|
||||
echo l
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue