Open raineorshine opened 2 weeks ago
a
- =note - test - b
The cursor is moved to =note on paste.
=note
The cursor should be set on b.
b
The cursor should be set on the first sibling that is not a metaprogramming attribute when state.showHiddenThoughts is false.
state.showHiddenThoughts
Add importText tests for showHiddenThoughts true and false.
The logic for where the cursor is set on import is here: https://github.com/cybersemics/em/blob/5ffafd3a22beb062ff2b55b87115fe898aea7870/src/actions/importText.ts#L192
Steps to Reproduce
a
a
, paste the following text:Current Behavior
The cursor is moved to
=note
on paste.Expected Behavior
The cursor should be set on
b
.The cursor should be set on the first sibling that is not a metaprogramming attribute when
state.showHiddenThoughts
is false.Testing
Add importText tests for showHiddenThoughts true and false.
Notes
The logic for where the cursor is set on import is here: https://github.com/cybersemics/em/blob/5ffafd3a22beb062ff2b55b87115fe898aea7870/src/actions/importText.ts#L192