Re: UTL plugin query
Hi, Sam, On Tue, Nov 07, 2006 at 11:27:33AM +, Samuel Wright wrote: Hi All, I'm using the UTL plugin to navigate local files. I have a markdown formatted file (which should not affect things), and a list of files in a directory * file.txt * other.txt When the cursor is on one of the files, leadergu opens it, which is the desired effect. However sometimes it is opened in the current window, and sometimes the window is split. I can't seem to find why this happens, but it seems file dependent. Supposably the file containing these two references is modified!? \gu opens in the current window unless the current buffer cannot be abandoned ( see URL:vimhelp:abandon ). This is a feature, in order to avoid annoying No write since last change vim messages ( see URL:vimhelp:E37 ). If interested, see utl.vim, lines 785 - 791, for the code that handles this behaviour. You can just remove these lines if you do not like this smart open feature. Any help? Sam HTH, Stefan
Re: active links for opening files
Hi Michal, On Fri, Nov 03, 2006 at 11:49:19PM +0100, Michael M. Tung wrote: Hi Samuel: Thanks for the link to GtdWithVim! Actually I saw it on the vim script site just after writing my hack. I didn't have a chance yet to try it out, but as far as I understand from the script description it's philosophy is quite different. GtdWithVim seems to work independently from any external program. With vimGTD I just wanted to quickly write a frontend to PyGTD. So all the power is in there... I use vimGTD in mutt and it works well. The UTL plugin sounds great stuff. Maybe it also resolves some of my other problems with various links in email which I want to combine with external launchers. The upcoming version utl.vim V2.1 will support preliminary support to reference emails via a new mail: URL like URL:mail:///Inbox?07.11.2006 18:38 This would open the email which you received on the specific date. Other example: URL:mail:///Sent Items?07.11.2006 18:40 . Currently I only have an implementation for MS-Outlook (which is implemented using OLE Automation via Visual Basic Script). It seems you are using the mutt mailer though. Anyway, I would be interested to know what you mean with other problems with various links in emails...; perhaps we can dicuss some requirements. An implementation for mutt mailer / mbox format should not be to difficult then. Regards, Stefan If you want to get in touch with me about some more thoughts, just write me directly to [EMAIL PROTECTED] Best, Mike Samuel Wright [EMAIL PROTECTED] wrote: Hi Michal, I notice you are working on a GTD plugin. Have you tried the existing plugin? http://www.bartholomew.id.au/projects/Project.aspx?ProjectCode=GtdWithVim The other thing of interest (perhaps) is vim outliner I started playing around with that a few days ago. Mor sepcifically regarding your questions, the UTL plugin lets you open plain text 'links' including emails, and other files. I'd be interested to swap thoughts on where you are going with GTD on vim. S -- - Dr. Michael M. Tung Email: [EMAIL PROTECTED] Departamento de Matemática Aplicada [EMAIL PROTECTED] Universidad Politécnica de Valencia Phone: +34 96 3877000 x88287 Inst. de Matemática Multidisciplinar+34 96 38-79777 Edificio 8-G, 2º pisoIM: ICQ96423950 Camino de Vera, s/n 46022 Valencia (Spain) http://www.uv.es/~tung/ - PGP Public Key http://personales.upv.es/mictun/mtung_pubkey.pgp - --
WG: Launch a browser from url in text
Hi, is it possible to hide ex commands called via a mapping from appearing in the command line? TIA, Stefan -Ursprüngliche Nachricht- Von: Bittner, Stefan Gesendet: Freitag, 7. Juli 2006 20:56 An: 'Cesar Romani' Betreff: AW: Launch a browser from url in text Hi Cesar, I don't think there is a way to hide it. The \gu is a mapping to that :call Utl_goUrl('edit') and this can't be hidden as far as I know. Sometimes I think, it would be nicer to only have : commands - no \xx mapping at all. So the \gu would be replaced by, say, :Gu . (The latter exists, but not to open URL under cursor but takes an URL as argument.) I guess, that what you want is: to get the right hyperlink feeling, just follow the URL with no noise. Correct? Regards, Stefan -Ursprüngliche Nachricht- Von: Cesar Romani [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. Juli 2006 03:57 An: [EMAIL PROTECTED] Cc: Vim Betreff: R: Launch a browser from url in text -Messaggio originale- Da: Bittner, Stefan [mailto:[EMAIL PROTECTED] Inviato: lunedì 3 luglio 2006 19.19 A: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Oggetto: WG: Launch a browser from url in text Hi Cesar, if you consider to use the Utl-plugin mentioned by Tom below, please don't hesitate to contact me if you have any questions. I think Utl.vim can do what you need. With the mapping :nmap 2-LeftMouse Leadergu you can doubleclick an URL. It would also be possible to use URLs without embeddings, e.g. execute http://www.vim.org/scripts/script.php?script_id=293 instead of URL:http://www.vim.org/scripts/script.php?script_id=293 Regards, Stefan (Creator of utl.vim plugin) -Ursprüngliche Nachricht- Von: Tom Purl [mailto:[EMAIL PROTECTED] Gesendet: Sonntag, 2. Juli 2006 04:30 An: Cesar Romani Cc: Vim Betreff: Re: Launch a browser from url in text Check out the utl plugin: * http://www.vim.org/scripts/script.php?script_id=293 It may not be exactly what you want, but it's very close. HTH! Tom Purl On Sun, Jul 02, 2006 at 04:19:10AM +0200, Cesar Romani wrote: Is it possible to doubleclick a highlighted URL in a text and thus launch a browser, f.e. internet explorer or firefox? The command gf allows to open a file under a cursor. Isn't there anything similar for URLS? Many thanks in advance, Andalou I'm using utl.vim to open url under the cursor. When I press \gu under an url, it opens the url but it appears at the bottom: :call Utl_goUrl('edit') How can it be hidden? Many thanks in advance, Cesar - End forwarded message - --