rexim / org-cliplink

Insert org-mode links from clipboard
323 stars 11 forks source link

Support multiple url #114

Closed azzamsa closed 3 years ago

azzamsa commented 5 years ago

Hi

I think this is outside org-'clip'link roadmap. But do you consider to support multiple url / batch fetching.

e.g

1) I have 3 or more url

https://foo
https://bar
https://baz

2) select region then do org-cliplink. Or select region -> copy to clipboard -> org-cliplink then detect how many url in clipboard then parse it one by one.

the result will be

Foo title
Bar title
Baz title

Thanks :)

rexim commented 5 years ago

@azzamsa sounds like an interesting idea. I'll see what we can do about it. Thanks!

azzamsa commented 5 years ago

It will be nice if we have this kind of ability. At the beginning, I integrate org-cliplink to my workflow. I used to track my daily activity in org-mode. One of them is tracking what I've read. I put the link with it's title with org-cliplink.

Lately my tracking habit is growing. Sometimes I need to research on something, I just yank all the important link and rearrange them later. My current steps are:

There are bunch of links

https://foo
https://bar
https://baz

1) Go to the first link 2) copy the first link with C-a C-SPACE C-e C-w 3) fetch the title and link with org-cliplink 4) loop until finished

I can simplify the second step with easy-kill. Instead of 4 keybinding (move to beginning of the line, Mark, move to the end, copy). I just use C-w which mark all the line then send it to clipboard. But it still need the rest of step.

If we can mark all the link then call org-cliplink. That would be a magic :)

Thank you

baerrach commented 4 years ago

Have you considered using https://github.com/magnars/multiple-cursors.el?

Highlight the block, enable multiple cursors, run the org-cliplink command (edit: via keybinding, M-x commands dont work with multiple cursors)

That should do it.

azzamsa commented 4 years ago

Peek 2020-08-26 08-06 - org-cliplink

@baerrach is that works in your side?


@rexim I don't think I need this feature anymore. Now I organize my workflow to be more simple. Adding this feature require many changes in the codebase (IMHO), and the result is that instead of doing what org-cliplink created for, it goes out of scope.

baerrach commented 4 years ago

@azzamsa I dont have this tool installed, but bumped into it on the interwebs.

Multiple cursors doesn't work with M-X extended commands, you need to use key bindings...

azzamsa commented 4 years ago

Highlight the block, enable multiple cursors, run the org-cliplink comman

I don't think it works, since org-cliplink need a link to be placed in the clipboard.

azzamsa commented 3 years ago

I don't need this feature anymore. I changed my workflow. I don't do copy-paste much URL as before. Implementing this feature could lead to massive change on org-cliplink codebase with less benefit.