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!
j
to move downk
to move upl
to move righth
to move left
i
to enterINSERT
modea
to move right one character and enterINSERT
modeA
to move to the end of the current line, move right one character and enterINSERT
modev
to enterVISUAL
mode- Not implemented yet!
:
to enterCMD_LINE
mode\`` to enter
FILE_NAV` mode.
to enterOPTIONS
mode
w
to jump forward a word and then the whitespace in front of the worde
to jump forward a wordb
to jump backward a wordg
to jump to the beginning of the file$
to jump to the end of the current line0
to jump to the beginning of the current linex
to delete the current character under the cursord
to move to delete mode- any movement command following
d
will delete instead of move the cursor dd
will delete the current linedw
will delete the next word and whitespace in front of the worddb
will delete the previous word
- any movement command following
- Any numbers to do an operation multiple times. A couple of examples are below:
75g
to jump to the 75th line3w
to jump forward 3 words (including whitespace at the end)
- Deletion and numbers can be combined. Examples below:
d3w
deletes the next 3 words (and whitespace)
/
to search for a substring in the current text and store it in a buffern
to cycle through the search buffer
u
while in Normal mode to undoctrl+r
while 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:
q
to quit the editorw
to save the currently edited filew fileName
to save a file with name fileName within the current directory
wq
to save and exit!
with some other commands to run them in terminal!ls
will perform thels
command and output todim
!python3 FILENAME.py
will 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.
j
to move downk
to 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 to
NORMAL` mode.
- Press enter to go to the directory selected, or if it's a file it will open it in the text editor.