You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a command which shows the duration of media (mp4) files in the status bar (macro %S). It works ok with executing manually. I want to add it to the autocmd to show the information (duration) when the cursor is on the mp4 files. I only found DirEnter event, I am not sure how to use that, since the files can be in any directory.
here I attach the code: command! statf vstat singlef %d %c %S 2> /dev/null (vstat is the script file name)
The use case like this was never considered. The closest thing is to use extcached() function in status line format and filter out non-mp4 files in the script to return an empty line and take no extra space.
I have a command which shows the duration of media (mp4) files in the status bar (macro
%S
). It works ok with executing manually. I want to add it to theautocmd
to show the information (duration) when the cursor is on the mp4 files. I only foundDirEnter
event, I am not sure how to use that, since the files can be in any directory.here I attach the code:
command! statf vstat singlef %d %c %S 2> /dev/null
(vstat
is the script file name)The text was updated successfully, but these errors were encountered: