From 3dfa286a12bc8ee619eeac52c93834ff79999f37 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 26 Sep 2021 20:19:58 +0200 Subject: [PATCH] feat(quick actions): select the item when only one result is available resolves #703 --- src/components/quick-actions/quick-actions.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue index 0d3091ae..0aa3a1a9 100644 --- a/src/components/quick-actions/quick-actions.vue +++ b/src/components/quick-actions/quick-actions.vue @@ -354,6 +354,11 @@ export default { } }, doCmd() { + if (this.results.length === 1 && this.results[0].items.length === 1) { + this.doAction(this.results[0].type, this.results[0].items[0]) + return + } + if (this.selectedCmd === null) { return }