LEAN

Use

Command line

Type : and a command, as in Vim.

Using it

: opens a prompt. It lists the commands that start with what you typed. Enter runs the highlighted one (an exact match comes first), <C-y> completes the name, Esc closes.

Commands

Command Action
:q :quit :wq :x :bd :tabc :tabcloseclose the tab
:qa :qall :wqa :xaquit Lean; the session is saved
:w :writesave the session
:e :edit :o :openopen; with an address or search text it goes there directly
:tabnew :tabe :tabedit :tthe same in a new tab
:tabn :bn / :tabp :bpnext, previous tab
:b :ls :buffers :tabssearch tabs
:u :undoreopen the closed tab
:sp :split / :vs :vsplitsplit down, split right
:close / :on :onlyclose this pane, close the other panes
:set / :so :sourcesettings, reload the config
:colo :colorschemeanother theme
:reload :back :forward :y :yankreload, back, forward, copy the address
:devtools :console :restartdeveloper tools, console, restart the tab
:pass :totp :passboltfill login, fill one-time code, Passbolt hand-off
:kittenskittens, for 5 seconds

Every action also works under its own name, for example :foldAll.

Your own commands

Add them under commands in config.json. The value is an action; for open and openNewTab an address may follow, and %s in it stands for what you type after the command.

"commands": {
  "q": "quit",
  "issue": "openNewTab https://example.atlassian.net/browse/%s",
  "mail": "openNewTab https://mail.example.com/",
  "bd": "none"
}

With this, :issue WEB-214 opens that issue in a new tab, :q quits Lean instead of closing the tab, and :bd does nothing.