dim editing its own source code below
Navigate to dim, and type
python3 setup.py
to install the dim alias. Then type dim to run!
NOTE:
Tested only on zsh and bash. If this doesn't work for your shell please log it as an issue, containing the name of your shell and your config ('bashrc, zshrc, etc) file if you can.
Super similar to vim bindings, so if you use vim bindings a lot you'll be (mostly) right at home!
jto move downkto move uplto move righthto move left
ito enterINSERTmodeato move right one character and enterINSERTmodeAto move to the end of the current line, move right one character and enterINSERTmodevto enterVISUALmode- Not implemented yet!
:to enterCMD_LINEmode\`` to enterFILE_NAV` mode.to enterOPTIONSmode
wto jump forward a word and then the whitespace in front of the wordeto jump forward a wordbto jump backward a wordgto jump to the beginning of the file$to jump to the end of the current line0to jump to the beginning of the current linexto delete the current character under the cursordto move to delete mode- any movement command following
dwill delete instead of move the cursor ddwill delete the current linedwwill delete the next word and whitespace in front of the worddbwill delete the previous word
- any movement command following
- Any numbers to do an operation multiple times. A couple of examples are below:
75gto jump to the 75th line3wto jump forward 3 words (including whitespace at the end)
- Deletion and numbers can be combined. Examples below:
d3wdeletes the next 3 words (and whitespace)
/to search for a substring in the current text and store it in a buffernto cycle through the search buffer
uwhile in Normal mode to undoctrl+rwhile in Normal mode to redo
Type as normally! To exit insert mode and go back to NORMAL mode, press ESC.
Entering command line mode will bring you to the line at the bottom of the editor and you can enter in a command below.
Available commands are:
qto quit the editorwto save the currently edited filew fileNameto save a file with name fileName within the current directory
wqto save and exit!with some other commands to run them in terminal!lswill perform thelscommand and output todim!python3 FILENAME.pywill run FILENAME.py with the python3 interpreter
When in NORMAL mode, press \`` to enter FILE_NAV` mode.
(Picture of what this looks like coming soon!)
Folders are colored in a cyan like color in default color scheme, and files are a middle grey color.
jto move downkto move up?to enter a searching submode. Enter in any prefix of a file you want to search for, and if there's anything in the current directory that matches the characters to the beginning it will move your cursor to that point.- Press
\`` to go back toNORMAL` mode.
- Press enter to go to the directory selected, or if it's a file it will open it in the text editor.
