Mimir

Project

A project is a working directory Mimir treats as where you are working, usually a Git checkout. It replaces the old Repos section: there is no Project tab, no Alt slot and no Git client. The project is context - it decides where new shells start and what the project panel inspects.

Existing shells keep their own directory. Selecting another project never moves a running session, and clearing the project does not close anything.

Selecting

The palette has three project actions:

ActionWhat it does
Project: switch…Opens the picker: recent projects, checkouts below the local parent, or a typed path
Project: set local parent…Sets the folder whose immediate children are offered. Stored in repos.json beside the config
Project: clearForgets the current project; new shells start at home

The picker filters as you type. A bare word is looked up below the local parent, in the current directory, then in your home; anything path-shaped (~, ./, /) is taken literally. Enter selects, Esc closes.

The same choice is available without the UI:

mimir project                     # print the current project
mimir project mimir               # a name below the local parent
mimir project ~/projects/mimir    # a path
mimir project --clear

The command writes the choice for the next window; a running Mimir keeps its current project until you switch it in the palette.

The top bar shows ⑂ name branch ● on the right when a project is selected, so the context is visible from every section. The marker says nothing about other shells - it is the project, not the active pane's directory.

The project panel

Project: status, diff, pull requests opens a modal panel for the current project. It reads; it never writes.

KeysAction
o / EnterOpen the repository on GitHub in Browser
pRecent pull requests, open and closed, through gh
dWorking-tree diff: status, staged and unstaged stats, patch
fGitHub's fork page
y / cCopy the path / clone URL
rRead git status again
j / kMove in a list, scroll a diff
EscBack one level, then close

The panel shows branch, dirty marker, ahead/behind counts, last commit and the origin URL. A directory without a Git checkout is still a valid project; the panel simply has less to say.

What stays outside Mimir

  • Cloning, fetching, pulling, pushing, committing and branch operations.
  • Creating a fork: the f key hands you GitHub's fork page.
  • GitHub authentication: it stays in gh. Mimir never reads a token.

Remote GitHub repository discovery from the old Repos section is gone. A project is local; listing an owner's repositories was not project context, and the Browser already covers GitHub.

Files

FilePurpose
$XDG_STATE_HOME/mimir/project.jsonCurrent project and a short recent list
$XDG_CONFIG_HOME/mimir/repos.jsonLocal parent for the project picker

project.json is workspace state, written atomically, and is safe to delete: the picker then starts from the local parent alone.