AutoYADM commit: 2025-05-12 03:47:08

This commit is contained in:
Daniel Fichtinger 2025-05-12 03:47:08 -04:00
parent e03638a692
commit f6bcdb55db
2 changed files with 20 additions and 14 deletions

View file

@ -1,7 +1,16 @@
#!/usr/bin/env python
# TODO: works great when going down, however there are problem
# with going UP if the line above is also wrapped
# TODO: works great for moving within wrapped line,
# not quite when moving from wrapped to normal and vice versa
# 1. Detect line-wrap status of target line before deciding to do vertical jump or visual column shift
# 2. Load the target line in addition
# 3. Use the same wrap_width logic to compare visual row availability
# on the target line
# Basically, look at the target line, and figure out the logical column
# number that corresponds to the visual column number we see right now.
# Also TODO: once this is ironed out, re-write it in Rust for le speed
import sys
@ -33,7 +42,4 @@ if 0 <= new_visual_row < len(chunks):
key = "h" if direction == "up" else "l"
print(f"{diff}{key}")
else:
print(
"j" if direction == "down" else "k"
)
print("j" if direction == "down" else "k")