Thursday, April 8, 2010

Re: gui dialogs

On Thu, Apr 8, 2010 at 2:01 PM, Tom Link <micathom@gmail.com> wrote:
>> > You could also think of presenting the users a buffer with a form that
>> > can be easily parsed and set nomodifiable via CursorMoved(I) if the
>> > cursor is over a field tag. I use that approach in one plugin and it
>> > works well for me.
>>
>> Could you please share the link to the plugin, if it's public.
>
> I used this approach in the following two experiments:
> http://github.com/tomtom/vimform_vim
> http://github.com/tomtom/worksheet_vim
>
> Neither is actually useful in its present state.
>
> For checkboxes, you had to define a buffer-local map for <LeftMouse>.

For a sufficiently simple form, I'd instead use a CursorMoved autocmd
that detects when the cursor has been moved to the "inside" of a
checkbox.

~Matt

--
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

Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en

No comments: