scateu / tsv_edl.vim

video editing with vim/spreadsheet/sed/python. methodology inspired by BBC digital paper edit. "Excel-dit"
GNU General Public License v3.0
84 stars 5 forks source link

tsv file content based ftdetect didn't work as expected #5

Open scateu opened 8 months ago

scateu commented 8 months ago

Expected:

 vim something_didnt_start_with_edl.tsv

it should do nothing, i.e., map keys or change banner, in the case when user edits raw tsv files.

However, autoload/ and ftplugin/ will be invoked (keys mapped, banner changed) while syntax/ ignored, which makes this ftdetect feature useless.

scateu commented 8 months ago

currently disabled on https://github.com/scateu/tsv_edl.vim/commit/736720621bb87069e58d5c68298a65525b616362

scateu commented 8 months ago

a solution may be adding

if (&filetype !#= 'tsv_edl')
    finish
endif

to ftplugin/ and autoload

but still thinking....