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 :tabclose | close the tab |
:qa :qall :wqa :xa | quit Lean; the session is saved |
:w :write | save the session |
:e :edit :o :open | open; with an address or search text it goes there directly |
:tabnew :tabe :tabedit :t | the same in a new tab |
:tabn :bn / :tabp :bp | next, previous tab |
:b :ls :buffers :tabs | search tabs |
:u :undo | reopen the closed tab |
:sp :split / :vs :vsplit | split down, split right |
:close / :on :only | close this pane, close the other panes |
:set / :so :source | settings, reload the config |
:colo :colorscheme | another theme |
:reload :back :forward :y :yank | reload, back, forward, copy the address |
:devtools :console :restart | developer tools, console, restart the tab |
:pass :totp :passbolt | fill login, fill one-time code, Passbolt hand-off |
:kittens | kittens, 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.