You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I hope you can help me.
When I use the tp.file.selection() function, the part of the text that I have selected is deleted from the note in which I selected it.
Thanks for your help
Plugin information (please complete the following information):
Describe the bug
When I Use the tp.file.selection ( ) function the selected text is erased from the note
Expected behavior
I'd like to be able to assign the selected text to a constant without deleting the text of the original note.
Screenshots
The text from a note
The selected text
The simplest possible script execute with Templater: Open Insert Template modal
The note after the execution of the script
Additional context
I've deactivated all the plugins except templater to test the interactions.
The text was updated successfully, but these errors were encountered:
Hello, I hope you can help me.
When I use the tp.file.selection() function, the part of the text that I have selected is deleted from the note in which I selected it.
Thanks for your help
Plugin information (please complete the following information):
Describe the bug
When I Use the tp.file.selection ( ) function the selected text is erased from the note
Expected behavior
I'd like to be able to assign the selected text to a constant without deleting the text of the original note.
Screenshots
![CleanShot 2024-05-13 at 16 31 18@2x](https://private-user-images.githubusercontent.com/30770206/330096147-d5e99a36-e1c2-49f4-8b24-4d26ba49df7c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1OTkxODMsIm5iZiI6MTcyMTU5ODg4MywicGF0aCI6Ii8zMDc3MDIwNi8zMzAwOTYxNDctZDVlOTlhMzYtZTFjMi00OWY0LThiMjQtNGQyNmJhNDlkZjdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDIxNTQ0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ5YWI3NjJiZmQ4N2Q0OTY4Mzk4YTQ2Yzg3OWU1NjQ2MTc4NzhhYWJhZTVmZDYxZTNmMTI1YTQyMzg2ZjNiNzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.G4lDhsKruVvuJKrcE8JuQaAljEoGt8-FGWtJwJzmdeM)
![CleanShot 2024-05-13 at 16 31 46@2x](https://private-user-images.githubusercontent.com/30770206/330096292-46cc338e-c728-46aa-9c67-8852d5bea560.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1OTkxODMsIm5iZiI6MTcyMTU5ODg4MywicGF0aCI6Ii8zMDc3MDIwNi8zMzAwOTYyOTItNDZjYzMzOGUtYzcyOC00NmFhLTljNjctODg1MmQ1YmVhNTYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDIxNTQ0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjZmEwZDJlOGZjYTUzOTA5YzhiMWQ2NTBhMTY5YjRjNmY3NWQ4ZDZiYzhhMTI2YmFmYTkzNDRiYTZmMTEyNTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.94dEXiDCed9dh0HxP0YPgEvZDBpMDUuLzyymCw7ikdw)
![CleanShot 2024-05-13 at 16 32 21@2x](https://private-user-images.githubusercontent.com/30770206/330096470-d5789ed4-a21b-4aad-9ed9-5e091fa63f56.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1OTkxODMsIm5iZiI6MTcyMTU5ODg4MywicGF0aCI6Ii8zMDc3MDIwNi8zMzAwOTY0NzAtZDU3ODllZDQtYTIxYi00YWFkLTllZDktNWUwOTFmYTYzZjU2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDIxNTQ0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA5ZGQzYTZhOGFmNzQ3OTU2ZjcwZTFhM2UzN2ZkNjBkZDY1OGRhMmFiZThlNmQ4YmYwMDYxMDdlYTg1NGZlOGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EY1L0QKCDeysYbh2qkPMpfs9Rb2MPjB4cDXbKz39LUU)
![CleanShot 2024-05-13 at 16 35 47@2x](https://private-user-images.githubusercontent.com/30770206/330097569-52c66f15-bd3b-45f1-a9ad-3a8e6a543654.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE1OTkxODMsIm5iZiI6MTcyMTU5ODg4MywicGF0aCI6Ii8zMDc3MDIwNi8zMzAwOTc1NjktNTJjNjZmMTUtYmQzYi00NWYxLWE5YWQtM2E4ZTZhNTQzNjU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIxVDIxNTQ0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxODc0YzU2NTU0YWY2MTIyZGRhNTI0MjU0MWE0ZjBhNDE1ZmE3ZTc4OWFkODg5OTAwMDQ1YjE1OWNjOWEyOTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.A73YTrVIZLSHpKGvLdIpG31HgxfjJvQ2CYUN2Ei-qJM)
The text from a note
The selected text
The simplest possible script execute with
Templater: Open Insert Template modal
The note after the execution of the script
Additional context
I've deactivated all the plugins except templater to test the interactions.
The text was updated successfully, but these errors were encountered: