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

Make pane contents reader configurable #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pigmonkey
Copy link

This changes the plugin so that the contents of the pane are read using an optionally configurable program. The output of the reader is then piped to the URL extractor. The reader defaults to cat, which means the default behaviour ends up being exactly the same as what users are currently used to.

Currently this plugin passes the URLs to urlview/extract_url in the order they appear in the pane. Most of the time the URL I want is at the bottom of the pane (ie, the most recent). I want to reverse the order in which the contents of the pane are sent to the extractor, so I don't have to scroll (as much) in urlview. This can be done by reading the saved pane with tac (reverse cat, part of coreutils) and piping that to the url extractor. With this change, I can add an option to my ~/.tmux.conf to make the plugin use tac instead of cat.

@pigmonkey
Copy link
Author

Any chance of getting this merged?

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

Successfully merging this pull request may close these issues.

1 participant