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

Non-plist filename extensions #4

Open
magebeans opened this issue Oct 26, 2020 · 1 comment
Open

Non-plist filename extensions #4

magebeans opened this issue Oct 26, 2020 · 1 comment

Comments

@magebeans
Copy link

Since this doesn't actually add a new filetype, setting ft to plist doesn't work on a plist file with a different extension (".strings"), for instance. How would I got about getting the plugin to treat such a file as a binary plist?

@darfink
Copy link
Owner

darfink commented Oct 27, 2020

That's a very valid use case and something this plugin should accommodate. I do not know the best way to implement support for this. I'm far from a VimL guru, so I am not aware of any solutions from the top of my head.

A temporary, but subpar solution, would be to add the following to your .vimrc:

autocmd BufReadCmd *.strings call plist#Read(1) | call plist#ReadPost()
autocmd BufWriteCmd,FileWriteCmd *.strings call plist#Write()

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

2 participants