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

Clip selected text #2

Closed
deathau opened this issue May 14, 2020 · 1 comment
Closed

Clip selected text #2

deathau opened this issue May 14, 2020 · 1 comment
Assignees

Comments

@deathau
Copy link
Owner

@deathau deathau commented May 14, 2020

I want to select text on a page, then hit the button and clip only that (properly markdown formatted, of course).

@deathau deathau self-assigned this May 14, 2020
@deathau
Copy link
Owner Author

@deathau deathau commented Sep 6, 2020

I've worked out how to do this (https://stackoverflow.com/a/5084044/304786) but the UX needs a little bit of thinking.

For example, when I click the button and get the parsed selection, should I also apply the frontmatter template? Does it make sense to do that? Should I potentially provide a second set of templates for selections?
Also, should I put a button somewhere to select the whole document? Or is it okay to have the user just click off their selection and click the button again? Either way, should I display a notification that the extension grabbed selected text only?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant