Commands
In Duat, you can run commands by pressing the : key. This will focus on the
PromptLine Widget, where you can run commands.
You can press <Up> and <Down> to navigate the history of commands, and you
can also press <Tab> and <S-Tab> to scroll through the commands.
Here's the list of commands:
Writing/quitting:
write,wwrites the currentBuffer. If there's an path argument, saves to that path.quit,qquits the currentBuffer, fails if it isn't written. If there's an argument, quits thatBufferinstead.quit!,q!quits the currentBuffer, even if it isn't written. If there's an argument, quits thatBufferinstead.write-quit,wqwrites and quits the currentBuffer. If there's an argument, quits thatBufferinstead.write-all,wawrites allBuffers.quit-all,qatries to quit allBuffers, failing if some aren't written.quit-all!,qa!quits allBuffers, even if they aren't written.write-all-quit,waqwrites to allBuffers and quits.write-all-quit!,waq!writes to allBuffers and quits, even if writing fails for some reason.
Switching Buffers
edit,eopens a newBufferon the current window.open,oopens a newBufferon another window.buffer,bswitches to anotherBuffer.next-bufferswitches to the nextBufferopened.prev-bufferswitches to the previousBufferopened.last-bufferswitches to the previously focusedBuffer.swapSwaps the positions of the currentBufferand another. If there are two arguments, swaps those two buffers instead.
Other
set-formtakes in a name and 0 to 3 colors (##rrggbb,rgb r g borhsl h s l) and sets that name'sfg,bgandulcolors. More settings coming in the future.colorschemesets the colorscheme.aliasAliases a word to a command call.