From f7fbff07011bbf659f7d359bae583abd2bb65670 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 3 Nov 2021 21:42:57 +0100 Subject: [PATCH] feat: change hint --- src/components/quick-actions/quick-actions.vue | 7 +++++-- src/i18n/lang/en.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue index 157112739..16d1c2d55 100644 --- a/src/components/quick-actions/quick-actions.vue +++ b/src/components/quick-actions/quick-actions.vue @@ -63,8 +63,9 @@ import {CURRENT_LIST, LOADING, LOADING_MODULE, QUICK_ACTIONS_ACTIVE} from '@/sto import ListModel from '@/models/list' import QuickAddMagic from '@/components/tasks/partials/quick-add-magic.vue' import {getHistory} from '@/modules/listHistory' -import {parseTaskText} from '@/modules/parseTaskText' +import {parseTaskText, PrefixMode} from '@/modules/parseTaskText' import {getQuickAddMagicMode} from '@/helpers/quickAddMagicMode' +import {PREFIXES} from '@/modules/parseTaskText' const TYPE_LIST = 'list' const TYPE_TASK = 'task' @@ -206,7 +207,9 @@ export default { } } - return this.$t('quickActions.hint') + const prefixes = PREFIXES[getQuickAddMagicMode()] ?? PREFIXES[PrefixMode.Default] + + return this.$t('quickActions.hint', prefixes) }, currentList() { return Object.keys(this.$store.state[CURRENT_LIST]).length === 0 ? null : this.$store.state[CURRENT_LIST] diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 3d684db7e..f42b43b9d 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -792,7 +792,7 @@ "quickActions": { "commands": "Commands", "placeholder": "Type a command or search…", - "hint": "You can use # to only seach for tasks, * to only search for lists and @ to only search for teams.", + "hint": "You can use {list} to limit the search to a list. Combine {list} or {label} (labels) with a search query to search for a task with these labels or on that list. Use {assignee} to only search for teams.", "tasks": "Tasks", "lists": "Lists", "teams": "Teams",