I have been a Vim user for a long time. However, I found that Vim is not good enough for me to write blog with Pelican. I need a good reStructuredText previewer, but I am not very satisfied with InstantRst. I wish to have a two-panel editor that I can edit the document and see the preview side-by-side.
Atom, an open-source editor developed by GitHub, comes into my mind.
Installation
$ wget https://atom.io/download/deb -O atom.deb
$ sudo dpkg -i atom.deb
Install Packages
$ apm install advanced-open-file git-plus highlight-selected \
language-restructuredtext rst-preview-pandoc
Package descriptions:
advanced-open-filemakes it easy to open or create files.git-plusallows us to commit changes to Git repositories.highlight-selectedwill highlight the double-clicked words.language-restructuredtextenables the syntax highlight for reStructuredText.rst-preview-pandocprovides preview panels for reStructuredText.
Keyboard Shortcuts
- Open Files
- Press
Ctrl-Tto open files with fuzzy finder. - Press
Ctrl-Alt-Oto open the advanced open file dialog.
- Press
- Search
- Press
Ctrl-F3to highlight the occurrence of word under the cursor. - Press
Ctrl-Fto search in the current buffer. - Press
Ctrl-Shift-Fto search in the project.
- Press
- Edit
- Press
Ctrl-Alt-Qto re-flow or wrap the selected text. - Press
Ctrl-[to indent selected lines. - Press
Ctrl-]to outdent selected lines.
- Press
- Git Commands
- Press
Shift-Ctrl-A(andRight) to add current file (staging.) - Press
Shift-Ctrl-Xto commit staged changes. - Press
Shift-Ctrl-Hto show all commands supported by Git-Plus.
- Press
- reStructuredText
- Press
Ctrl-Shift-Eto open the preview panel for reStructuredText.
- Press





