Repository navigation
Settings Files
Nibtree keeps its files in a folder in your home folder. This page explains what is in it, how to edit settings.json by hand and what happens when a file is broken. The options themselves are explained in Settings.
~/.nibtree/
settings.json your preferences, safe to edit by hand
state.json recent folders, the last session, panel sizes and layout
mcp.json the MCP secret token, and the port while the server runs
logs/memory.log the debug memory log, written while it is on
unsaved/ unsaved text kept until it is saved (Remember unsaved changes)
On Windows the folder is C:\Users\<you>\.nibtree. It is created the first time a setting is saved. Settings > Settings Files shows the Settings folder path, a Copy settings.json Path button and Changed from defaults: each setting you changed, such as tabSize: 2, or Nothing yet.
Your GitHub token is not in this folder: it is kept in the system keychain. See Terminal, GitHub and Automation Settings.
Each key matches a setting in the dialog. Values in quotes must be one of the choices listed.
Appearance: theme ("system", "light", "dark"), roundedPanels, fileToolbar ("top", "bottom", "none"), fileToolbarBreadcrumbs, fileToolbarBadges, fileToolbarChanges, fileToolbarBlame, fileToolbarCopyPath, fileToolbarMarkdownView, fileToolbarMarkdownFormat, uiFontSize.
Editor: lightColorTheme and darkColorTheme (theme ids such as "github-light" or "dracula", see Color Themes), editorFontFamily, editorFontSize, editorLineHeight, mouseWheelZoom, fontLigatures, syntaxHighlighting, tabSize (2, 4 or 8), detectIndentation, renderWhitespace ("none", "boundary", "selection", "trailing", "all"), wordWrap, unloadHiddenTabs, unloadHiddenTabsMinutes (5, 15, 30 or 60), rememberUnsaved, markdownViewMode ("editor", "split", "preview"), currentLineBlame, blameGutter.
Git: diffLayout ("sideBySide" or "inline", see Inline Diffs), ignoreWhitespace, logAllRefs, commitSignOff, commitGpgSign ("default", "sign", "noSign"), gitConsole, and updateMethod ("merge" or "rebase", default "merge", saved by Git > Update Project...; there is no switch for it in Settings).
Terminal: terminalShell (the shell's full path, or null for the login shell), terminalFontFamily (empty for the editor font), terminalFontSize, terminalLineHeight, terminalLetterSpacing, terminalFontWeight and terminalFontWeightBold ("normal", "medium", "bold"), terminalLigatures, terminalNerdFontIcons, terminalCursorStyle ("block", "bar", "underline"), terminalCursorBlink, terminalScrollback, terminalCopyOnSelect, and the switches terminalFind, terminalFileLinks, terminalGpuAcceleration, terminalUnicode11, terminalOptionAsMeta, terminalVisualBell, terminalSmoothScrolling and terminalDropPaths (true or false).
Automation: mcpEnabled, mcpPort, mcpTools (tool names switched away from their default, each true or false), cliEnabled, memoryLogEnabled, memoryLogIntervalMs, memoryLogThresholdMb.
Layout: confirmDragAndDrop (ask before a drag in the Files panel moves files). The other Layout choices live in state.json.
Updates: checkForUpdates, updateChannel ("auto", "stable", "beta").
For example:
{
"theme": "dark",
"darkColorTheme": "dracula",
"editorFontFamily": "'JetBrains Mono', Menlo, monospace",
"fontLigatures": true,
"renderWhitespace": "trailing",
"tabSize": 2
}Nibtree checks every value when it loads:
- A value it does not understand falls back to the default.
- Numbers are kept within their range: a font size of 40 becomes the largest allowed size.
- A light color theme in
darkColorTheme(or the other way round) falls back to the default theme. - Keys it does not know are kept when it saves, so a key from a newer version survives. Only Reset to Defaults drops them.
The exact ranges and defaults are in Settings Reference. If saving fails, a note says Could not save settings.
state.json is written by the app; you rarely need to touch it. It holds:
-
Recent and last session:
recentFolders,recentWorkspaces,recentWorkspaceFiles,lastSession,lastSessionFileandactiveRepos(the active repository per folder). -
Updates:
lastRunVersion(for What's New) andskippedVersion. -
Layout:
explorerOpen(Files panel),leftPanel("changes","branches","scripts"ornullwhen hidden),leftBarVisibleandrightBarVisible(the activity bars),sidebarWidth,explorerWidth,terminalHeight,terminalListWidth,changesListWidthandchangesListVisible(the Changes tab's file list),diffSplitRatio(the left side's share of a side-by-side diff) andmarkdownPreviewRatio(the preview's share in Editor and Preview). -
Scripts:
scriptNodeVersions, the Node version picked for eachpackage.json. See Scripts.
Reset to Defaults in Settings does not touch this file.
If settings.json is not valid JSON (a missing comma, say), Nibtree uses the defaults, shows settings.json could not be read at the top of Settings, and does not overwrite your file. Fix the file, then click Try Again.
The same goes for state.json. Recent folders, the last session and panel sizes then start empty, and the file is left alone. You see state.json could not be read in three places:
- a note at start;
- a banner at the top of Settings;
- the welcome screen, which says why recent folders are missing. Its Open Settings link opens Settings Files.
Fix the file and click Try Again, or click Reset to start a fresh one. Reset asks first, because what the old file held is lost.

The state.json banner, shown above every Settings section: Try Again rereads the file, Reset replaces it with a fresh one.
These pages are generated from docs/wiki. To correct something, open a pull request against the source file; edits made here are overwritten.
Using Nibtree
- Getting Started
- Welcome Screen
- Workspaces
- Files Panel
- File Operations
- File Icons
- Rounded Panels
- Editor and Tabs
- Pin Reorder and Wrap Tabs
- Single Tab Title
- Split Editor
- New File and Unsaved Changes
- Unload Hidden Tabs
- Editing Code
- Code Appearance
- Markdown Editor
- Image and PDF Preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and Replace
- Changes and Commits
- Sign In Prompts
- Commit Box Layout
- Repository Actions
- Commit Options
- Ignoring Files
- Diffs
- Inline Diffs
- Staging View
- Revert a Change
- Resolving Conflicts
- Merge Tool
- Blame
- History and Log
- Merge Commits
- Branches and Tags
- Branches Popup
- Remotes
- Stashes
- Shelf
- Git Menu
- Git Dialogs
- Interactive Rebase
- Worktrees
- AI Agents
- AI Tasks
- AI Usage
- Keep Computer Awake
- Submodules
- Git LFS
- GitHub
- Git Console
- Terminal
- Terminal Features
- Scripts
- Navigation
- Menus
- Settings
- Settings Search
- Color Themes
- Settings Terminal and Automation
- Settings Files
- Updates
- Status Bar and Help
- Notifications
- Memory Use
- Clear Cache
- MCP and CLI
- Git Mergetool
- Keyboard Shortcuts
- Keyboard Shortcuts Editor
- Troubleshooting
- Troubleshooting Git
Developers
- Developer Guide
- Architecture
- Project Layout
- Backend
- How Folder Watching Works
- Folder Watching Bugs We Fixed
- How Workspace Files Work
- How the Preview Scheme Works
- Backend Services
- How Terminal Features Work
- Terminal Bugs We Fixed
- Frontend
- How the Rich Markdown Editor Works
- Rich Markdown Bugs We Fixed
- Git Menu Links
- Menu Keys and Routing
- Frontend Modules
- Blame Bugs We Fixed
- Project Color And Title Bar
- One Diff View
- Diff Bugs We Fixed
- Merge Tool Layouts
- Merge Tool Bugs We Fixed
- Color Theme Bugs We Fixed
- How the Connected Diff Works
- Rounded Panels Bugs We Fixed
- Update Bugs We Fixed
- Status Bar Bugs We Fixed
- MCP and CLI Bugs We Fixed
- Repository Actions Bugs We Fixed
- How the Changes Tab Works
- CodeMirror Patterns
- How the Cursor Works
- How Editor Features Work
- How the Path Bar Works
- Commands and Events
- Settings Reference
- Commands Workspace and Changes
- Commands Branches and Remotes
- Commands History and Extras
- Commands App and Tools
- Testing
- Test Suites
- Debugging
- Debugging with MCP
- Measuring Setting Memory
- How Terminal Memory Is Measured
- How Markdown Diagrams Work
- Releases and CI
- Publishing the Wiki
- Versioning and Changelog
- Browser Version Packages
- Browser Release Checks
- Docker Image
- Platforms and Signing
- Windows Support
- Windows Bugs We Fixed
- Windows MCP and CLI
- Docs and Screenshots
- UI Library
- UI Library MCP
- UI Library Bugs
- UI Library Migration
- Contributing
How features work
- Welcome screen
- Workspaces and folders
- Files panel
- File operations
- File icons
- Editor and tabs
- Pin, reorder and wrap tabs
- Single tab title
- Split editor
- New File and unsaved changes
- Unload hidden tabs
- Editing code
- Code appearance
- Markdown editor
- Image and PDF preview
- Search Everywhere
- Recent Files
- Navigation Bar
- Find and replace
- Changes and commits
- Sign-in prompts
- Commit box layout
- Repository actions
- Commit options
- Ignoring files
- Diffs
- Inline diffs
- Staging view
- Revert a change
- Resolving conflicts
- Merge tool
- Blame
- History and log
- Merge commits
- Commit tabs
- Branches and tags
- Branches popup
- Remotes
- Stashes
- Shelf
- Git menu
- Git dialogs
- Interactive rebase
- Worktrees
- AI agents
- AI usage
- Keep computer awake
- AI tasks
- Submodules
- Git LFS
- GitHub account
- Git Console
- Back and Forward
- Integrated terminal
- Scripts tool window
- Menu bar
- Settings
- Search in Settings
- Color themes
- Rounded panels
- Updates and release channels
- Status bar and help links
- Notifications
- Memory readout and memory log
- Clear Cache
- MCP server and command line tool
- git mergetool mode