How to set up buffer auto-reload from a script?

Hello,

When modifying a file from outside of kak, kak ask to auto-reload the file ( by press Y ).

Is it possible to set it up from a script and not manually ?

You can enable autoreload with :set-option buffer autoreload true if that’s what you’re asking.

4 Likes

I came here when searching for how to do this from the command line (looking for something matching shell script and auto-reload). You can use @xfoo’s solution for that as well by using the -e commandline option (and leaving out the initial colon):

kak -e 'set-option buffer autoreload true' your-file
1 Like