Center matching line when focusing from iTerm
Improve the UX by centering the focused line verically.
This commit is contained in:
parent
6393e47c77
commit
3dadd97ef3
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ e "file: $file"
|
|||
e "number: $number"
|
||||
|
||||
if ! [ -z "$number" ]; then
|
||||
$emacs -n -e "(find-file \"$file\")" "(goto-line $number)"
|
||||
$emacs -n -e "(find-file \"$file\")" "(goto-line $number)" "(call-interactively #'evil-scroll-line-to-center)"
|
||||
else
|
||||
$emacs -n -e "(find-file \"$file\")"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue