refactor: consistent alias of clojure.string

This commit is contained in:
rcmerci
2025-01-03 16:45:10 +08:00
parent dd17560fd5
commit b65a2d5c0f
15 changed files with 409 additions and 410 deletions

View File

@@ -1,6 +1,6 @@
(ns frontend.modules.shortcut.config
(:require [clojure.data :as data]
[clojure.string :as str]
[clojure.string :as string]
[electron.ipc :as ipc]
[frontend.commands :as commands]
[frontend.components.commit :as commit]
@@ -1026,7 +1026,7 @@
(swap! *config assoc-in [handler-id id] shortcut-map)
(when-not config-only?
(swap! *shortcut-cmds assoc id (:cmd shortcut-map))
(let [plugin? (str/starts-with? (str id) ":plugin.")
(let [plugin? (string/starts-with? (str id) ":plugin.")
category (or (:category shortcut-map)
(if plugin?
:shortcut.category/plugins