0.6.9
The first of a few updates that aims to improve Ox through small changes to existing features to really polish what already exists.
Added ➕
- A cancel selection method to the editor API (you can now cancel selection by default through the
Esc
key) - A method in the editor API to move the viewport over the cursor (you can now move the viewport to the cursor using
Alt + V
) - You can now move groups of lines up and down when pressing
Alt + Up / Down
and selecting text, this also includesmove_line_up
andmove_line_down
editor API methods. - Added a quick comment plug-in (installed by default) where you can quickly comment and uncomment lines using
Alt + C
- You can now indent and dedent lines using
Ctrl + Tab
andShift + Tab
, this includes single lines and selections over lines (bulk indent / dedent) - Better selection editor API (cancelling selection, setting selection, getting selection)
- Search feature has been improved, it now selects search candidates and also searches as you initially type your search string. Also
Esc
actually puts you back to where you were before you started the search. - Line moving editor API methods
- You can now react to pastes in plug-ins and the config file
Fixed 🔧
- When you click out of range (off the bottom of the document) the editor will go to the last line instead of staying where it is
- Awkward undo cursor position was fixed (still requires more work, but it seems to be a bit better)
- Emmet plug-in now places cursor into the action field when making forms:
<form action="|">
- Stopped Git plug-in from spamming git commands and significantly slowing down the editor when many files were open
- Ox can now be opened using ranger without opening a weird file called
--
- Editor APIs causing a panic (now they just return
nil
) - Much better error handling of status line rendering
- Fixed problem where certain built-in plug-ins were being loaded twice or not loaded at all
- Tab line can now much better handle the case where there are many files open (more than can be rendered in the terminal width)
- Files can no longer be opened twice, to prevent confusion
- Issue where files weren't being opened due to CWD changing so much
- Much better handling of file errors (no more panics, instead you get a nice message instead)