mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			454 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			454 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Bulk actions
 | |
| ### Execute script
 | |
| 
 | |
| For more complex scenarios, it is possible to type in a JavaScript expression in order to apply the necessary changes.
 | |
| 
 | |
| To apply a suffix (`- suffix` in this example), to the note title:
 | |
| 
 | |
| ```javascript
 | |
| note.title = note.title + " - suffix";
 | |
| ```
 | |
| 
 | |
| To alter attributes of a note in a bulk action, such as setting the `#shareAlias` label to the title of the note:
 | |
| 
 | |
| ```javascript
 | |
| note.setLabel("shareAlias", note.title)
 | |
| ``` | 
