Re: gui dialogs

2010-06-24 Thread Tony Mechelynck
On 10/04/10 16:56, Steve Hall wrote: On Sat, 2010-04-10 at 00:09 -0700, Tom Link wrote: The resulting form would look like this: http://github.com/downloads/tomtom/vimform_vim/replace_gui.html Weird, in Firefox this page reports: "/tmp/replace_gui-3.html could not be opened, because the a

Re: gui dialogs

2010-04-11 Thread Tom Link
> Weird, in Firefox this page reports: > >   "/tmp/replace_gui-3.html could not be opened, because the associated >   helper application does not exist. Change the association in your >   preferences." > > Looks like something on the server side is broken. Well, ff tries to download the file. Sinc

Re: gui dialogs

2010-04-10 Thread Steve Hall
On Sat, 2010-04-10 at 00:09 -0700, Tom Link wrote: > > The resulting form would look like this: > http://github.com/downloads/tomtom/vimform_vim/replace_gui.html Weird, in Firefox this page reports: "/tmp/replace_gui-3.html could not be opened, because the associated helper application does n

Re: gui dialogs

2010-04-10 Thread Tom Link
> Now I suppose if you could create a more "web like" text page, > complete with underlines, highlighting, and mouse-overs, then you > might have something. Think elinks.cz. But it would be a huge pain, > a real GUI toolkit would be much easier. I rewrote my library. No mouse-over effects yet but

Re: gui dialogs

2010-04-10 Thread Tom Link
> 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. You'd probably have some difficulties to distinguish between focusing a checkbox and selecting a checkbox. -- You received this message from the

Re: gui dialogs

2010-04-09 Thread Andy Wokula
Am 02.04.2010 06:49, schrieb Tom Link: I found VIM Form Toolkithttp://www.vim.org/scripts/script.php?script_id=2160, unfortunately it's not under development anymore. There are two more plugins of that kind somewhere on the internet. autoload/forms.vim by Hari Krishna Dara (2006-10-01) http

Re: gui dialogs

2010-04-08 Thread mmarko
On 8 apr., 20:20, "Steve Hall" wrote: > If we were to make a gui dialog system for gVim using Python, what > would the preferable cross-platform (Windows/Linux) be? WxPython? > TkInter? PyGTK? > A year ago while developing vimuiex I tried several Python toolkits and the only one that worked was w

Re: gui dialogs

2010-04-08 Thread Steve Hall
On Thu, 2010-04-08 at 12:13 -0700, Tom Link wrote: > > ...I personally would rather like to see text-only GUI widgets. A Graphical User Interface requires graphical elements with which to interface. In the experiments I've done in Vim with "clickable text", it is about the most baffling interface

Re: gui dialogs

2010-04-08 Thread Matt Wozniski
On Thu, Apr 8, 2010 at 2:01 PM, Tom Link 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. >>

Re: gui dialogs

2010-04-08 Thread Tom Link
> I don't think it unreasonable these days to request a user to install > Python+toolkit to get a sophisticated dialog system. One thing I love about vim is that, e.g., the omni completion popup menu works the same in the gui version and in the terminal version. This is also the reason why I perso

RE: gui dialogs

2010-04-08 Thread Steve Hall
From: Tom Link, Thu, April 08, 2010 2:01 pm > [...gui dialog methods...] If we were to make a gui dialog system for gVim using Python, what would the preferable cross-platform (Windows/Linux) be? WxPython? TkInter? PyGTK? I don't think it unreasonable these days to request a user to install Pytho

Re: gui dialogs

2010-04-08 Thread Tom Link
> > 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

Re: gui dialogs

2010-04-05 Thread Aarto Matti
> You might also want to check vimuiex, which requires python-support > and a patched version of vim though. Found it, looks very interesting! > > You could use external tools that display a dialog and return some > kind of value you could work with. Those are often named Xdialog, > where X is th

Re: gui dialogs

2010-04-01 Thread Tom Link
> I found VIM Form Toolkithttp://www.vim.org/scripts/script.php?script_id=2160, > unfortunately > it's not under development anymore. There are two more plugins of that kind somewhere on the internet. You might also want to check vimuiex, which requires python-support and a patched version of vi

Re: gui dialogs

2010-04-01 Thread Aarto Matti
> gvim uses the gtk toolkit. Yeah, I know, but I don't want to hack the vim code. > vim is a console application and to my knowledge doesn't support gui > interactions But vim does support basic dialogs like inputdialog() and confirm(), I was looking for more sophisticated ones. I suppose I can u

Re: gui dialogs

2010-04-01 Thread Reid Thompson
On Thu, 2010-04-01 at 17:35 +0300, Aarto Matti wrote: > > Do you mean like that shown in the attachment? > > It's the standard gvim search and replace dialog, or is that what you're > > saying is ugly and stupid? > > This is ugly and stupid > http://www.linux-mag.com/i/articles/6045/Figure_2.jpg >

Re: gui dialogs

2010-04-01 Thread Aarto Matti
> Do you mean like that shown in the attachment? > It's the standard gvim search and replace dialog, or is that what you're > saying is ugly and stupid? This is ugly and stupid http://www.linux-mag.com/i/articles/6045/Figure_2.jpg The Cream way: a bunch of dialogs, in each you set some option befo

gui dialogs

2010-04-01 Thread Aarto Matti
Hello, Is there a way to write more or less complex gui dialog for vim similar to this one http://mrwlwan.files.wordpress.com/2008/03/find_replace.png I would need a couple of text fields and radio(check) buttons in a single dialog. Cream tries to mimic such by splitting a dialog into dozens of b