Tuesday, November 17, 2020

Re: best library for data forms entry in vim

mustache and m4 are tools for automation right? Ie: you are reliant on data-structures and can't interact with them - ie you can't have users enter in input and have that input applied correct?

again, the reason I want vim is because it is an editor. Users could enter in values, have derivative values calculated for them and then inserted directly into the same form - in the editor. Again, think excel and macros, except with free text. It needs to be interactive because the users need to be able to play around with given constraints and see which constraints work for them given specific input - before saving that form for a program to later use it.

Since users are going to be potentially editing hundreds or thousands of files, said templates will need to do data checking and should be programmable to do both calculations and these checks- and since vim already has the possibility of having either perl or python embedded into it, vim seemed to be a powerful and natural fit. The fact that people also know vim in my particular environment points to vim as well.

If I'm wrong about this or you know tools to do this please let me know, but I'm pretty sure because my application is interactive I need the power of an editor here.

On Tuesday, November 17, 2020 at 4:14:32 PM UTC-6 asymp...@posteo.net wrote:
>I need to quickly enter data for thousands of structured documents - ie:
>where I know the bulk of the document but there are placeholders for
>specific variables. Think something like this:
> ...

Without specifying why you are constrained to only using Vim, it's hard to avoid pointing out that there are better ways to do this.

Either m4 or mustach should be your friends unless you can explain why Vim is literally the only program that could possibly be used.

Recommended reading:

https://www.catb.org/~esr/writings/unix-koans/shell-tools.html

--
--
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 on the web visit https://groups.google.com/d/msgid/vim_use/423ff046-0dfa-4efe-b914-fe33aceae941n%40googlegroups.com.

No comments:

Post a Comment