CMB / edbrowse

A command-line editor and web browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use buffer contents as filename?

hallyn opened this issue · comments

Hi,

I'm sorry, this is probably a FAQ, but I've several times searched through the docs and failed to find the answer.

I'd like to edit an empty buffer, write the filename of buffer 1 to it, edit that filename, then use that new path in an edbrowse command (r into a new buffer or w another buffer to the path).

Is there some variable substituion I can do in the command to do that?

Thanks! 'A' is certainly interesting. It doesn't seem to be in the userguide?

It looks like in your version of edbrowse the filename must be in quotes when you do 'A'? But mine is not, so

s/'>$//
s/^.*?'//

Both fail. I can just skip the ' , but am curious about the difference.

(ah, 'A' in my version only works in browse mode; it worked in my first attempt because i happened to be looking at /usr/share/doc/edbrowse/usersguide.html)