Closed ezpuzz closed 5 years ago
oh I may have removed your default maps, it's mostly not good form to clobber the global maps like that.
You may have noticed I also moved the main vim file to a ftplugin so it only loads on yaml files. This has the added benefit of working with compound filetypes. The docker vim plugin I use reads docker-compose files as the filetype yaml.docker-compose
which did not load with your plugin. By using a ftplugin the code is loaded for the filetype correctly.
Hi @ezpuzz ! Thank you so much for your work! I just have a question: it seems the echoed line has changed.
services:
php:
build: './docker/php'
Being on the build
line will echo services > php
while before it was services > php > build
.
Was it changed on purpose?
I'm not sure what behavior is the best (maybe the new one is better cause sometimes there is no key like when we are in an array), but if we keep this new behavior I think it would be nice to update the readme example. At least the code example (I can make another gif later to update it) :)
@ezpuzz Also, I can't create a new yaml file with your version. It works well with existant files but not with new files I create. I get a syntax error:
Error in function GetAncestors[6]..GetAncestors :
line 12 :
E554: Syntax error in \{...}
Woah, didn't catch that. I'll fix it up.
On Tue, Oct 16, 2018, 7:38 AM Yann Rabiller notifications@github.com wrote:
@ezpuzz https://github.com/ezpuzz Also, I can't create a new yaml file with your pluggin. It works with existant files but not with new files I create. I get a syntax error:
Error in function GetAncestors[6]..GetAncestors : line 12 : E554: Syntax error in {...}
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Einenlum/yaml-revealer/pull/3#issuecomment-430263262, or mute the thread https://github.com/notifications/unsubscribe-auth/AApBtrYXP2pcZsGnBUNu-SEMz6N6Ap0qks5ule9vgaJpZM4Xawpp .
hey @Einenlum know it's been a while but i've been using my fork the past few months. this latest push should update readme, fix behavior with empty file, and sets autogroup in a more correct way.
I missed this! Sorry for the late merge. Thanks for your work @ezpuzz !
hi @Einenlum ! Thanks for the great plugin, it makes working with docker-compose yml files a breeze!
I looked in to your code because I noticed a few bugs and saw that it could be implemented more simply with a recursive function. 😄
It works more reliably and is faster I think! Let me know your thoughts.
Thanks, e