-
I want to insert this template in a list and have consistent indentation like on copy/paste #log/effort on [[<% tp.file.cursor() %>]]
- I did
-
- Next
- and have this result - test
- test
- #log/effort on [[/*cursor*/]]
- I did
-
- Next
- Currently, the indent is like absolute. I have tried:
|
Beta Was this translation helpful? Give feedback.
Answered by
Zachatoo
Feb 28, 2025
Replies: 1 comment 1 reply
-
You may need to adjust the numbers slightly, but here's a proof of concept. <%*
const { ch } = tp.app.workspace.activeEditor.editor.getCursor();
-%>
#log/effort on [[<% tp.file.cursor() %>]]
<% " ".repeat(ch + 2) %>- I did
<% " ".repeat(ch + 4) %>-
<% " ".repeat(ch + 2) %>- Next
<% " ".repeat(ch + 4) %>- |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
laofik219
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You may need to adjust the numbers slightly, but here's a proof of concept.