New feature: link export #2

Closed
opened 2019-11-27 11:41:15 +01:00 by teldra · 3 comments

It would be nice, if there is a feature/backend to only export links from a search, to pass to another program, eg. browser.

$ remwharead -e link -s foo
https://foo.com/bar
https://bar.com/foo

or

$ remwharead -e link -s foo -o
#-o to open them rightaway in the browser

compared to buku:

buku -s foo --oa --np
It would be nice, if there is a feature/backend to only export links from a search, to pass to another program, eg. browser. ``` $ remwharead -e link -s foo https://foo.com/bar https://bar.com/foo ``` or ``` $ remwharead -e link -s foo -o #-o to open them rightaway in the browser ``` compared to buku: ``` buku -s foo --oa --np ```
tastytea self-assigned this 2019-11-27 20:31:41 +01:00
tastytea added the
enhancement
label 2019-11-27 20:31:52 +01:00
Owner

I'm not sure it should open a browser automatically. What happens if there are more than 1 matches? More than 20?

It would be pretty easy to make a shell script if this is desired.

OLDIFS=${IFS}
IFS=$'\n'

for url in $(remwharead -e link -s foo); do
    xdg-open "${url}"
done

IFS=${OLDIFS}
I'm not sure it should open a browser automatically. What happens if there are more than 1 matches? More than 20? It would be pretty easy to make a shell script if this is desired. ``` zsh OLDIFS=${IFS} IFS=$'\n' for url in $(remwharead -e link -s foo); do xdg-open "${url}" done IFS=${OLDIFS} ```
Author

I think, that is a good solution.

I think, that is a good solution.
Owner

Will be in 0.9.0.

Will be in 0.9.0.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tastytea/remwharead#2
No description provided.