mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	search string is now a textarea instead of input
This commit is contained in:
		
							parent
							
								
									1c4358086d
								
							
						
					
					
						commit
						478eca47f4
					
				@ -7,7 +7,7 @@ const TPL = `
 | 
			
		||||
<tr>
 | 
			
		||||
    <td class="title-column">Search string:</td>
 | 
			
		||||
    <td>
 | 
			
		||||
        <input type="text" class="form-control search-string" placeholder="fulltext keywords, #tag = value ...">
 | 
			
		||||
        <textarea class="form-control search-string" placeholder="fulltext keywords, #tag = value ..."></textarea>
 | 
			
		||||
    </td>
 | 
			
		||||
    <td class="button-column">
 | 
			
		||||
        <div class="dropdown help-dropdown">
 | 
			
		||||
@ -46,6 +46,9 @@ export default class SearchString extends AbstractSearchOption {
 | 
			
		||||
        this.$searchString.on('input', () => this.spacedUpdate.scheduleUpdate());
 | 
			
		||||
 | 
			
		||||
        utils.bindElShortcut(this.$searchString, 'return', async () => {
 | 
			
		||||
            // this also in effect disallows new lines in query string.
 | 
			
		||||
            // on one hand this makes sense since search string is a label
 | 
			
		||||
            // on the other hand it could be nice for structuring long search string. It's probably a niche case though.
 | 
			
		||||
            await this.spacedUpdate.updateNowIfNecessary();
 | 
			
		||||
 | 
			
		||||
            this.triggerCommand('refreshResults');
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user