yorkxin / copy-as-markdown

A browser extension to copy tabs and links as Markdown
MIT License
530 stars 81 forks source link

Direct context menu if there's only one option #59

Closed borekb closed 6 years ago

borekb commented 6 years ago

What an awesome extension! I use it via a context menu and this is what I see 99% of the time as I'm generally interested only in full page titles:

image

This means that I need to hover over the top-level menu item, move my cursor to the right and select the single option. Would it be possible to somehow make the top-level item do the copy already if there's just a single nested item?

I realize that there are situations where there are more nested items, in which case they would stay. For example:

image

yorkxin commented 6 years ago

Hi, thanks for your suggestion. It turns out that the default behavior in Chrome and Firefox are exactly what you wished, so I modified it with just a little bit code modifications.

The new version is now available on Chrome Web Store and Firefox Add-Ons.

Enjoy!

borekb commented 6 years ago

Awesome, thank you!