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

feat: add paste option #10

Merged
merged 2 commits into from
Oct 31, 2022
Merged

feat: add paste option #10

merged 2 commits into from
Oct 31, 2022

Conversation

martiliones
Copy link
Contributor

@martiliones martiliones commented Oct 29, 2022

Description

Hello, I just tried this tool for markdown files and found that writing some parts might not seem natural (like links), so I decided to create an option for pasting text

Example syntax:

--01----------

--02----------
// see
--03----------
// see https://github.com/antfu/retypewriter/
-----options--
paste: true
wait: 0
--------------

I also implemented the wait option as you can see.

Additional context

It would be nice if autodetection of inserting text or finding links was implemented in the future.

btw why was the remove snap function removed from CodeLens? The commented code seems to work

@antfu
Copy link
Owner

antfu commented Oct 31, 2022

why was the remove snap function removed from CodeLens? The commented code seems to work

Because I found the actions become verbose. To remove a snap, the user could simply select and delete them, this also makes it more explicit and avoid accident clicks.

@antfu antfu merged commit 8707de2 into antfu:main Oct 31, 2022
@antfu
Copy link
Owner

antfu commented Oct 31, 2022

Great feature, thanks!

@antfu
Copy link
Owner

antfu commented Oct 31, 2022

Emm. this seems to break the test, can you have a look? Thanks

@antfu
Copy link
Owner

antfu commented Oct 31, 2022

Fixed in 2186aed

@martiliones
Copy link
Contributor Author

martiliones commented Oct 31, 2022

Because I found the actions become verbose. To remove a snap, the user could simply select and delete them, this also makes it more explicit and avoid accident clicks.

The user also should change id for all future steps, shouldn't they?

- --01----------
- // text 1
- --02----------
+ --01----------
// text 2
- --03----------
+ --02----------
// text 3

sorry for the broken test :(

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

Successfully merging this pull request may close these issues.

None yet

2 participants