Prefix key: Ctrl-b (denoted as C-b below)
| Command | Description |
|---|
| # Copy on select (like Warp) | |
| copy-on-select = clipboard | |
| # Quality of life | |
| mouse-hide-while-typing = true | |
| confirm-close-surface = false | |
| quit-after-last-window-closed = true | |
| window-padding-x = 4 | |
| window-padding-y = 4 | |
| function memoize(fn: (...args: any) => any) { | |
| const cache = {}; | |
| return function(..._args) { | |
| const key = JSON.stringify(arguments); | |
| if (cache[key]) { | |
| console.log(cache); | |
| return cache[key]; | |
| } | |
| const value = fn.apply(null, arguments); | |
| cache[key] = value; |