logseq-webpage-title icon indicating copy to clipboard operation
logseq-webpage-title copied to clipboard

[feat] smart shortcut to handle several scenarios

Open huyz opened this issue 3 years ago • 1 comments

This is a follow-up (and slight improvement) of https://github.com/PaulKinlan/logseq-webpage-title/pull/25#issuecomment-1186110482

I wonder if there could be a single smart shortcut:

  • If the cursor is inside (or at the beginning or end of a URL), then the webpage title is fetched only for that URL (not all the URLs in the block)
  • otherwise, if the cursor isn't in an URL, the clipboard is searched and if it contains only a URL, paste the URL and fetch the title.
  • if an entire block is selected (not in the middle of editing a block), then fetch the titles for all URLs in the block

huyz avatar Jul 25 '22 14:07 huyz

These are pretty good ideas. Will think on this.

PaulKinlan avatar Jul 26 '22 13:07 PaulKinlan