sideways.vim icon indicating copy to clipboard operation
sideways.vim copied to clipboard

Feature request: Bash Scripts

Open polvoazul opened this issue 4 years ago • 3 comments

It would be nice to have bash support (I suppose something similar to html would work). I'm trying to use customization but it would be nice to have official support :)

polvoazul avatar Jul 12 '21 21:07 polvoazul

Extra points if it supports multiline commands with escaped new lines (i cant get these to work):

ls file1 file2 \
    a_large_filename

polvoazul avatar Jul 12 '21 22:07 polvoazul

I had forgotten about it, but it seems like there already is support for shell scripts. The filetype has to be sh or zsh and it seems to work sensibly for me, try it out on the arguments in this:

ls --full-time --no-group --all | grep -C5 "foo"

Admittedly, it doesn't work for the \ case. I'll see if I can figure out a solution, but before that, does the basic support not activate for you? Could it be a filetype detection issue? Looking at the built-in Vim runtime files, I guess there is a bash filetype, so maybe I just need to copy or reuse the existing support.

AndrewRadev avatar Jul 15 '21 18:07 AndrewRadev

I've added support for the bash filetype, too, so it might work for you now. The backslash support is going to take some more fiddling.

AndrewRadev avatar Jul 15 '21 18:07 AndrewRadev