mirror of
https://github.com/zadam/trilium.git
synced 2024-12-26 09:12:08 +08:00
search string is now a textarea instead of input
This commit is contained in:
parent
1c4358086d
commit
478eca47f4
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue