This is a text editor for the encrypted note taking app https://standardnotes.org/.
A simple text editor that makes it easy to write and read nested notes.
Online demo with explanations: https://maxlap.github.io/standard-notes-indent-editor/demo.html
The demo shows everything nicely, but compared to a basic text editor:
Tab
to indent the line (or selected lines) with 2 spaces (even if in the middle of the line).Shift
+ Tab
removes 2 spaces from the beginning of line (or selected lines).Enter
creates a new line with the same indentation as the current line.Enter
copies the *->+ along with the spaces.`code`
function hello() { console.log('hello world') }
Ctrl
+ D
duplicates the selection or the current line if no selection.Ctrl
+ Shift
+ Up
and Ctrl
+ Shift
+ Down
will move the selected lines up and down.In Standard Notes (either browser or desktop), click Extension, then Import Extension, paste this link: https://listed.to/p/eUPdNELfEu
, press Enter.
You should then be able to select the Indent Editor in your list of editors.
This means:
If you enjoy the editor, please consider hitting the sponsor button at the top of the page to encourage my work.
Clone the repo.
Install the dependencies:
npm install
To run the server to try out the editor:
python3 -m http.server 8080
To update dist/ files which are sent as editor, run:
grunt
You can use the demo to just try out the editor:
http://localhost:8080/demo.html
To refresh your editor with the modified version, the way that always work is to open the Chrome console, then right-click the refresh icon and do a "Empty cache and hard reload". Other ways of doing hard refreshes may work, but the cache clearing has sometimes been necessary for me.
You can also try it in StandardNotes (but it's more painful to do so):
Import the local test extension if you didn't already. Do it from the desktop app because otherwise, it's a http call within a https one which is refused by your browser. This is the link to the extension:
http://localhost:8080/local_ext.json
Once the app is imported, you can test it from: