Tristan Hoellinger15 downloadsShow or hide Claudian's chat panel or its floating chat box with one command each; the box never appears on its own.
Two commands for Claudian: one shows or hides its chat panel, the other its floating chat box, which then appears only when asked for.
This plugin is unofficial and not affiliated with or endorsed by Claudian, Anthropic, or Obsidian.
Neither command has a default hotkey, and the plugin has no settings. The commands act on:
With the panel shown, the command collapses the panel's sidebar, without switching to another of its tabs or letting the floating box appear, and puts the cursor back in the note. Otherwise it turns the floating box off, creates the chat if there is none, reveals it, and puts the cursor in its input.
With the box shown, the command turns it off and puts the cursor back in the note. Otherwise it creates the chat if there is none, collapses the chat's sidebar, turns the box on, and puts the cursor in its input.
While the plugin can use Claudian, the box appears only through this command: not at startup, nor when Claudian is turned on, reloaded, or updated, nor through Claudian's own commands, nor when a sidebar is collapsed by hand.
A new chat opens where Claudian's setting "Open Claudian in" says. With no chat yet, the box command opens none if that setting says "Main editor tab", and neither command opens one at a place the plugin does not know; each says why in a notice.
Only a sidebar collapses, and Claudian shows the floating box only for a chat in a sidebar. For a chat outside the sidebars, the panel command therefore moves the cursor between the chat and the note, bringing the chat to the front of its tab group when needed, and the box command says why it cannot act. When the plugin finds no note, as when every tab outside the sidebars is a chat, hiding the panel or the box leaves the cursor where Obsidian puts it, and for a chat outside the sidebars the panel command shows a notice instead.
The cursor follows the commands across windows. The window in use is the one keys go to or, while Obsidian is in the background or keys go to its settings window, the window of the active tab. A chat or a note in another window becomes the active tab, and while keys go to the main window or a pop-out window, Obsidian brings the window holding it forward.
When a command puts the cursor in the input of the chat or of the floating box, Claudian's "Toggle chat input focus" brings it back to the note if the note is in editing or reading view, in the chat's window, and outside the chat's tab group. Otherwise, pressing the command again brings the cursor back to the note.
While Claudian's setting "Enable dual-pane mode" is on, as it is by default, a chat 600 px wide or more takes the dual-pane layout as it comes on screen, which replaces its tabs with a preview; the commands wait for the preview before moving the cursor.
A command that cannot act shows one notice saying why:
Claudian is not installed., Claudian … is installed., Claudian reports no version., or Claudian reports version "…", which is not of the form x.y.z., each followed by Chat panel toggle needs Claudian 2.3.26 or later.Claudian is turned off. Chat panel toggle needs it turned on.Claudian has not loaded: it is still loading, or failed to load. Chat panel toggle needs it loaded.Claudian … has no … that Chat panel toggle can use., This version of Obsidian has no … that Chat panel toggle can use., or Claudian … opens new chats at "…", which Chat panel toggle does not know.: something the plugin relies on is missing or has changed; report it through the bug form.The chat is outside the sidebars, and Claudian shows the floating box only for a chat in a sidebar.Claudian opens new chats in the main area, and shows the floating box only for a chat in a sidebar.The chat is outside the sidebars, where it cannot be hidden, and no note is open to take the cursor.A step that fails ends the command or background check with one notice, Chat panel toggle could not <step>: <reason>., such as Chat panel toggle could not turn the floating box on: the floating box did not appear within 10 s.; the reason is Claudian was turned off or reloaded when Claudian went away meanwhile. A failure outside these steps, such as while the plugin watches for the floating box, gives one beginning Chat panel toggle failed:. Both kinds also log the error to the console of the main window's developer tools.
A running Claudian that the plugin cannot use can still show the floating box, which the plugin then cannot take down. The background checks it runs at startup and after each layout change therefore show that Claudian's notice too. They show each notice at most once per load of the plugin.
Four notices concern the record described below:
Chat panel toggle could not turn Claudian's "Enable zen mode" back on, since Claudian cannot take the change now. Turn it on in Claudian's settings., or the same with off, when the plugin is turned off or uninstalled and cannot restore the setting.Chat panel toggle could not save its record of Claudian's "Enable zen mode" in data.json, so once Obsidian restarts or Chat panel toggle updates or reloads, turning it off may not restore the setting.Chat panel toggle could not empty its data.json, so turning it off after its next load may not leave Claudian's "Enable zen mode" as it was last set by hand.Chat panel toggle cannot read its data.json, so turning it off may not restore Claudian's "Enable zen mode"., at load.After any of the last three, check "Enable zen mode" once the plugin is turned off.
Claudian shows the floating box whenever its setting "Enable zen mode" is on, as it is by default, a chat sits in a collapsed sidebar, and Claudian's temporary hide of the box is not in force. The plugin therefore keeps that setting off, turning it on only while its box command shows the box, and takes down any box that appears unasked before it is painted. It saves the setting through Claudian, only when the value changes, and turns it off again when it finds it turned on by hand. Taking a box down at once sets the temporary hide, which saves nothing and which the box command clears before turning the box on. DECISIONS.md gives the reasons.
The plugin keeps a record in its data.json: the value it last wrote, and the value to restore, which is the one its first write replaced. Whenever it finds the setting no longer holding the value it last wrote, it takes the setting for the person's own again and forgets the record; its next write starts a new one.
When the plugin is turned off or uninstalled, it waits for a write still in Claudian's hands, as long as for any write, then puts the value to restore back if the setting still holds the value the plugin last wrote, and leaves any other value alone; it then clears any temporary hide of the box and empties data.json. Updating or reloading the plugin, or quitting Obsidian, restores nothing, and the next load carries on.
The setting stays as the plugin wrote it, until changed in Claudian's settings, if Claudian is turned off, not installed, not loaded, or otherwise unable to take the change when the plugin is turned off or uninstalled; if Claudian still holds an earlier write unsaved after that wait; or if it refuses the restore. A notice then names the value to set, and the record waits for the plugin's next load, unless uninstalling deleted it with the plugin's folder. The same applies to a restore that Claudian does not finish within 10 s, which may still take effect later. The setting also stays as written if Obsidian stops between Claudian saving a change and the plugin recording it.
In a vault synced between devices, data.json may travel with the vault while Claudian's settings stay on each device: Obsidian Sync, once set to sync community plugins, carries data.json but never the .claudian folder. A device whose setting holds the value another device last wrote then takes that device's record for its own, and turning the plugin off there puts back the value the other device started from.
Once the plugin is in Obsidian's community directory: open Settings → Community plugins, select Browse, search for "Chat panel toggle for Claudian", then select Install and Enable.
By hand: download main.js and manifest.json from a release into the vault's .obsidian/plugins/chat-panel-toggle/ folder, then, under Settings → Community plugins, select Reload plugins and turn on "Chat panel toggle for Claudian".
Set them under Settings → Hotkeys; no Obsidian or Claudian command binds them by default.
| Command | macOS | Windows and Linux |
|---|---|---|
| Show or hide the chat panel | Cmd+Option+J | Ctrl+Shift+J |
| Show or hide the floating chat box | Cmd+Control+J | Ctrl+Shift+K |
The macOS pair does not carry over: Obsidian saves Cmd as Mod, which is Ctrl on Windows and Linux, and a vault's hotkeys apply on every system that opens it. There the pair becomes Ctrl+Alt+J, which Windows reads as AltGr+J on many layouts, and Ctrl+Ctrl+J, which never fires.
A key bound to several commands runs the first of them that is registered, in the order of the vault's .obsidian/hotkeys.json, where Settings → Hotkeys appends any command not yet listed. In that file, this plugin's commands are chat-panel-toggle:toggle-panel and chat-panel-toggle:toggle-floating-box. Listed after one of them on the same key, Claudian's "Toggle chat view", realclaudian:open-view, keeps that key working while this plugin is turned off. Without such a fallback, Ctrl+Shift+K pressed while editing a note with this plugin turned off deletes the current line, the editor's own use of that key.
The plugin makes no network requests and collects nothing. It never touches Claude's or Claudian's credentials, sessions, or conversations. Its data.json holds only the two values of "Enable zen mode" described above.
The plugin is free, takes no donations, and is supported as time allows. Use the bug form for a problem that disappears with this plugin turned off, a floating box that appears unasked, or "Enable zen mode" not put back as described above; report any other problem to Claudian, and a vulnerability as SECURITY.md describes.
This release supports Claudian 2.3.26 to 2.3.49 and Obsidian 1.13.4 to 1.15.1: the releases on which its whole end-to-end suite passed on Linux. A newer release is not refused.
The suite runs real Obsidian with real Claudian:
Obsidian updates itself but not its installer, which sets the Electron version, so old installers stay in use. On Linux, the suite runs under X11.
For this release, these are Obsidian 1.13.4 and 1.15.1, installer 1.5.11, and Claudian 2.3.26 and 2.3.49.
The plugin uses Obsidian's public API wherever it can, and neither Claudian's plugin API nor its commands, for reasons DECISIONS.md gives. Neither Obsidian's public API nor Claudian's plugin API finds another plugin, reads the settings Claudian is using or saves them through Claudian, reports or controls the floating box, or moves the cursor into the chat's input with a way back, so the plugin relies on the surfaces below. Obsidian's internal members are absent from its published types. Of Claudian's members, the plugin takes those public in its TypeScript source, though outside its plugin API, and private ones only where no public one does the job. src/private.ts declares every surface below.
The plugin checks each member before each use: a missing or changed one stops each command that needs it with a notice naming it, except settings, without which Claudian counts as not loaded, and a chatViewPlacement naming a place the plugin does not know, which the notice quotes. The element, the class, and the states provisional and open raise no notice of their own: Claudian finds the element the same way and, without it, shows no box either; a chat without the class reads as one in Claudian's single-pane layout, which needs no wait; and the dual-pane layout never counts as settled on a preview or an opened tab whose state is renamed, so a command waiting for it fails at the 10 s limit. The end-to-end suite checks every surface first, in each cell, and names the Claudian release that changed one. Its CI cells check them on the releases in the last column, and the sweep before this release checked them on each release of Claudian 2.3.26 to 2.3.49 and each public desktop release of Obsidian 1.13.4 to 1.15.1.
| Surface | Kind | Used for | Checked in CI on |
|---|---|---|---|
app.plugins: manifests, enabledPlugins, getPlugin |
Obsidian, internal | Finding Claudian, its version, whether it is on, and whether this plugin is turned off or uninstalled, not updated or reloaded | Obsidian 1.13.4 and 1.15.1 |
The main area's element, .workspace-split.mod-root: its children and class |
Obsidian, internal; observed only | Seeing the floating box appear, which no event reports: the box arrives as a child of this element, which gains a class | Obsidian 1.13.4 and 1.15.1 |
realclaudian, Claudian's plugin id |
Claudian, identifier | Finding Claudian among Obsidian's plugins | Claudian 2.3.26 and 2.3.49 |
claudian-view, Claudian's view type |
Claudian, identifier | Finding the chat, telling it from a note, and opening a new one | Claudian 2.3.26 and 2.3.49 |
settings |
Claudian, TypeScript-public | Telling whether Claudian has loaded | Claudian 2.3.26 and 2.3.49 |
settings.enableZenMode |
Claudian, TypeScript-public | Reading "Enable zen mode" | Claudian 2.3.26 and 2.3.49 |
settings.chatViewPlacement: right-sidebar, left-sidebar, main-tab |
Claudian, TypeScript-public | Opening a new chat where "Open Claudian in" says | Claudian 2.3.26 and 2.3.49 |
providerHost.mutateSettingsConditionally |
Claudian, TypeScript-public | Saving "Enable zen mode" through Claudian's write queue, on a condition checked there, and waiting at load for its writes | Claudian 2.3.26 and 2.3.49 |
The chat view's getActiveTab() |
Claudian, TypeScript-public | Reaching the input of the tab Claudian shows inside the chat | Claudian 2.3.26 and 2.3.49 |
That tab's composer: isFocused, isVisible, toggleFocus |
Claudian, TypeScript-public | Telling whether the input is visible and has the cursor, and putting the cursor there with Claudian's way back | Claudian 2.3.26 and 2.3.49 |
That tab's lifecycleState: provisional, open |
Claudian, TypeScript-public | Telling when the dual-pane layout has settled: on its preview, or on an opened tab a race left | Claudian 2.3.26 and 2.3.49 |
The chat view's content element, its class claudian-wide-session-layout |
Claudian, internal; observed only | Waiting for Claudian's dual-pane layout, which replaces the chat's tabs, before moving the cursor | Claudian 2.3.26 and 2.3.49 |
zenMode.getActiveLeaf() |
Claudian, private | Telling whether the floating box is shown, and for which chat | Claudian 2.3.26 and 2.3.49 |
zenMode.toggleVisibility() |
Claudian, private | Taking the box down at once without saving anything, and clearing Claudian's temporary hide | Claudian 2.3.26 and 2.3.49 |
CI builds each release's main.js from its tag, attaches it only if it is byte-identical to the build the tests ran on, and attests the SLSA build provenance of both release files, main.js and manifest.json. Releases are immutable. Check one in an empty folder with the GitHub CLI 2.102.0 or later, since older versions' --signer-workflow also accepts a workflow whose path begins with the one named:
version=1.0.0 # the release to check
gh release download "$version" --repo hoellin/chat-panel-toggle
gh release verify "$version" --repo hoellin/chat-panel-toggle
for file in main.js manifest.json; do
gh attestation verify "$file" --repo hoellin/chat-panel-toggle \
--signer-workflow hoellin/chat-panel-toggle/.github/workflows/release.yml \
--source-ref "refs/tags/$version" --deny-self-hosted-runners
gh release verify-asset "$version" "$file" --repo hoellin/chat-panel-toggle
done
gh release verify checks GitHub's attestation of the release; for each file, gh attestation verify checks that the release workflow built it from the tag on a GitHub-hosted runner, and gh release verify-asset that it is the release's own. When a release is published, CI runs the two per-file checks on its files, then the end-to-end suite. Obsidian appends a line, /* nosourcemap */, to the main.js it installs from the community directory, so check the release's files as downloaded.
A clean checkout of the tag rebuilds the release's main.js byte for byte, as CI checks on Linux under Node 22, 24, and 26. From the same folder:
git clone --depth 1 --branch "$version" https://github.com/hoellin/chat-panel-toggle.git
cd chat-panel-toggle
npm ci --ignore-scripts
npm run build
cmp main.js ../main.js # silent when identical
The plugin is released under the MIT licence. Copyright (c) 2026 Tristan Hoellinger.
Claude Code wrote the plugin to its author's specification.