From 7d3f6f6b8b6d55a57e629dc69c0967416b3be74c Mon Sep 17 00:00:00 2001 From: eltrac Date: Mon, 6 Jul 2026 11:24:04 +0800 Subject: support default target --- vimulti.clj | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vimulti.clj b/vimulti.clj index 38c87c6..6c59807 100644 --- a/vimulti.clj +++ b/vimulti.clj @@ -54,8 +54,11 @@ ;; target should be a string like "app-name:branch" or "app-name@tag" ;; returns a map with keys :app-name :branch :tag... -(defn- parse-target-string [target] - (let [branch-style? (str/includes? target ":") +(defn- parse-target-string [target-string] + (let [target (or target-string + (:default-target config) + "nvim:") + branch-style? (str/includes? target ":") tag-style? (str/includes? target "@") alias-style? (and (not branch-style?) (not tag-style?))] (if alias-style? -- cgit v1.2.3