[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What actually are hypertext commands in vile?
From: |
Chris Green |
Subject: |
Re: What actually are hypertext commands in vile? |
Date: |
Sat, 13 May 2023 21:32:54 +0100 |
On Sat, May 13, 2023 at 01:24:39PM -0400, Paul Fox wrote:
> chris wrote:
> > On Sat, May 13, 2023 at 10:20:14AM -0400, Thomas Dickey wrote:
> > > On Sat, May 13, 2023 at 02:01:41PM +0100, Chris Green wrote:
> > > > While, just now, mucking about in my .vilerc I saw the hypertext macro
> > > > that has been there for ages (copied from help):-
> > > >
> > > > 22 store-macro
> > > > ~force execute-hypertext-command
> > > > ~if ¬ $status
> > > > ~force forward-character-to-eol
> > > > ~endif
> > > > ~endm
> > > > bind-key execute-macro-22 ' '
> > > >
> > > > So what does vile understand/see as a hypertext link? I tried a few
> > > > possibles (http://, file://) but nothing actually appeared to do
> > > > anything. Only file:// would seem to make any sense as a file to go
> > > > to and edit. Maybe I'm misunderstanding what it's supposed to do
> > > > (very likely!).
> > >
> > > It's only used for vile's commands (no web browser).
> > >
> > > "execute-hypertext-command" ^X-z
> > > ( run the hypertext command attached to the region under the cursor )
> > >
> > As in execute a command like 'edit-file' that's in the text of a file?
>
> Yes, but I think there's one more level of indirection. The text in
> the file would say "foo", and the action would be "edit-file bar". Or
> something like that. If you have (or can find) archives of this list,
> search for "hgrep", which is a recursive file grepper written in perl.
> (I've never used it.)
>
Yes, I found a reference to hgrep when I did a web search just now.
Maybe I'll look a bit harder, it's only curiosity though.
--
Chris Green