Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View commands in BufCloseFifo hook are sometimes ignored #5082

Open
krobelus opened this issue Jan 14, 2024 · 1 comment
Open

View commands in BufCloseFifo hook are sometimes ignored #5082

krobelus opened this issue Jan 14, 2024 · 1 comment

Comments

@krobelus
Copy link
Contributor

rm -f /tmp/fifo
mkfifo /tmp/fifo
kak -n -e '
	hook g BufCloseFifo .* %{ exec -client client0 gjvv };
	nop %sh{ ( seq 100 >/tmp/fifo 2>&1 & ) >/dev/null 2>&1 </dev/null }
	edit -fifo /tmp/fifo *fifo*
'

Expected behavior: cursor is centered on screen.
Actual behavior: cursor is on top of screen. Except sometimes it works fine.

I wonder if this is supposed to work. Maybe there is a workaround.

@krobelus
Copy link
Contributor Author

I'm working around this by replacing vv with hook global -once NormalIdle .* %{ execute-keys vv }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant