Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use buffer contents as filename? #52

Open
hallyn opened this issue Nov 20, 2019 · 4 comments
Open

use buffer contents as filename? #52

hallyn opened this issue Nov 20, 2019 · 4 comments

Comments

@hallyn
Copy link

hallyn commented Nov 20, 2019

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?

@eklhad
Copy link
Collaborator

eklhad commented Nov 20, 2019 via email

@hallyn
Copy link
Author

hallyn commented Nov 21, 2019

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.

@hallyn
Copy link
Author

hallyn commented Nov 21, 2019

(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)

@eklhad
Copy link
Collaborator

eklhad commented Nov 21, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants