Friday, March 21, 2025

Re: BASH script: Indent with tabs, align with spaces

I am glad you find this mutually beneficial!

Here is the result with the latest changes you proposed:

#!/bin/bash⏎

this␣--something␣\⏎
>·······-anotherthing␣\⏎
>·······␣␣␣␣␣␣␣␣␣␣␣␣␣␣-third␣\▪⏎
>·······␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣-andsoon⏎



#!/bin/bash⏎

this␣--example␣\⏎
␣␣␣␣␣--anotherthing␣\▪⏎
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣--foo␣\⏎
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣--bar␣\⏎
␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣␣--notalignedagain⏎


Still not aligning correctly according to the algorithm.
Have you tested it? Does it work for you?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/20250321192429.495b5d4e%40localhost.

No comments: