mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-09 08:59:40 +02:00
fix: COD-157 refine shortcut palette labels
This commit is contained in:
committed by
Aamer Akhter
parent
e8f5ac94f3
commit
596899e19b
@@ -361,7 +361,7 @@ Object.assign(CodemanApp.prototype, {
|
||||
seen.add(sessionId);
|
||||
const session = this.sessions?.get?.(sessionId);
|
||||
if (!session) continue;
|
||||
const title = session.name || session.title || sessionId.slice(0, 8);
|
||||
const title = this.getSessionName?.(session) || session.name || session.title || sessionId.slice(0, 8);
|
||||
const subtitleParts = [session.workingDir, session.mode, session.status].filter(Boolean);
|
||||
const haystack = [title, session.workingDir, session.mode, session.status, sessionId].filter(Boolean).join(' ').toLowerCase();
|
||||
if (needle && !haystack.includes(needle)) continue;
|
||||
|
||||
Reference in New Issue
Block a user