On Thu, 5 Oct 2006 at 9:35am, David Fishburn wrote:

> I gave the demo a whirl.
>
> When you enter the State field the omni completion pops up.
> You cannot hit escape to get out of this.
> In fact you must choose something, even if you didn't want to.

You can press <C-E> to close the popup, just like for the normal
completion popup. Escape restores the old value, but doesn't close the
popup. There is a lot of scope for improvements with the combobox, but
using the Vim native popup features, it is very hard to do this. I am
thinking of using a recursive <expr> map in combination of getchar() to
make this better, but I don't know if it will work. It is right now
usable, though a bit flaky.

> Entering the Country field.
> If you cursor is on U, press C.  I wanted to just type "Canada", but of
> course C in normal mode changes to end of line.  So this wiped out the rest
> of the line.  It seems when the > is gone, things get messed up.  You can't
> actually type anything.

I plugged a lot of such holes in the latest release. I encourage to
break it in other ways and let me know how you did it. There is no
reward for breaking though :) (well, you could consider a more robust
form.vim as a reward).

> So I restarted the form.
> When to USA hit cw, typed in "Canaada".
> Realized my mistake, but my cursor on the a and hit x.
> Since I was in visual mode this left me with "xada".  Now use the left and
> right keys to reposition yourself.  Very funky behaviour ending up with the
> existing characters being repeated many times.  Actually it does this with
> h,l as well.

This is an issue with complete(), you can only specify the start column,
and end column is restricted to the current column, so you can't
complete an item when the cursor is in the middle of it. I faced this
same issue with LookupFile also, and the solution was to just hide the
popup if the cursor is not at the end. I did the same thing here, so you
shouldn't see this anymore.

> That is all I had a chance to try this morning.

Thanks for trying, I was actually counting on you :)

-- 
Thanks,
Hari

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to