From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] Apostrophe Macros
Date: Fri, 15 Sep 2017 06:57:08 -0400 [thread overview]
Message-ID: <20170815065708.eklhad@comcast.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]
You know there are some apostrophe macros in edbrowse when you run a shell escape.
!echo '.
echo the contents of the current line. And so on.
Some of you use these a lot, I use them from time to time.
Anyways in one of my scripts I want to be able to expand these, but not in a shell escape.
It's like the file name is in amongst other stuff on the line and I strip out the other stuff by substitutions and then I want to
e '.
edit that file.
but of course '. doesn't expand on an e command, just shell escape.
I wouldn't want it to expand all the time, that would be damn confusing.
So I wanted to add this feature but not with a user interface that is horribly clunky.
I can think of three ways.
1.
!!e '.
The ! would shell escape, but !! just expands the macros and on we go.
2.
apmac
This command sets a one time flag so that the next command expands these macros.
3. Don't add any more edbrowse commands, we have enough already.
Use the substitute commands to put
file://
in front and then use the g command to go to that file.
I like this, but it assumes I don't have any other reason to expand these macros, besides shell escapes
and this special case of going to a file whose name is embedded in the current line.
I don't have a strong preference here.
Karl Dahlke
reply other threads:[~2017-09-15 10:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170815065708.eklhad@comcast.net \
--to=eklhad@comcast.net \
--cc=Edbrowse-dev@lists.the-brannons.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).