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

Edbrowse as a pager #15

Open
galaxor opened this issue Mar 7, 2016 · 1 comment
Open

Edbrowse as a pager #15

galaxor opened this issue Mar 7, 2016 · 1 comment

Comments

@galaxor
Copy link

galaxor commented Mar 7, 2016

I would like to use edbrowse as a pager, like more or less. But piping something to edbrowse will cause edbrowse to interpret the input as commands, rather than as a file to edit. There should be an option that's like "--as-pager" or something.

@eklhad
Copy link
Collaborator

eklhad commented Mar 7, 2016

I would like to use edbrowse as a pager, like more or less.

we've talked about this for, well, for years.
Probably easy to do and I'd do it, but I never use pagers,
so I'm not even sure how it should work.
Perhaps - as a file name reads stdin and then you can look through that.

edbrowse -

Or maybe some other way.
Or maybe the interactive session changes,
cause running less is definitely not like running an editor.
So I'm just not sure what to do.

Meantime you can write a little script.

#!/bin/sh

ebpager script

cat >/tmp/ebpage$$.temp
edbrowse /tmp/ebpage$$.temp </dev/tty
rm /tmp/ebpage$$.temp

Karl Dahlke

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