New Variables {{caret_content}} related #117
Replies: 1 comment 8 replies
-
I'd change the naming here. When referring to a certain line and/or column, there's no need to access the caret's position, so there's also no need to include the word caret in the variable's name.
This instead is related to the caret, so the word caret is good here. I'd just change the argument Another way: Use distinct variables like
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello @Taitava
Following our conversations about caret position in #116 and #114
New variables to select the content of inside the caret position in the current file. It’s a new variable that selects text using the caret position as a method of search
{{caret_content:line}} - get the content of an entire line
{{caret_content:line:column}} - get the WORD that is inside of a specific caret position
{{caret_content:current}} - get the WORD that is inside the current caret position
Example 1: get the content of the line 11 in the current file and send to an specific note INP.md
Echo {{caret_content:11}} >> INP.md
Example 2: send the WORD to my note of Swedish words that I need to learn
Echo {{caret_content:current}} >> Swedish_Dictionary.md
Have a great day!
Beta Was this translation helpful? Give feedback.
All reactions