This update we cleaned up the code base a bit. There is a lot more to clean up
but its a work in progress. Take a look at all the cool new this that have been
added to revi, well basic things really. The editor is getting closer and closer
to being really useable, baby steps.
- Undo command
- Redo command
- Tab key inserts a predefined 4 spaces
e <file path>
command to open new files in editor- '!' command followed by a terminal command will display the results in a message window to the user.
- Floating windows kinda.......
- Fixed a bug that put revi in a frozen state when trying to change buffers.
With this update there was a lot of redesing with the rendering and also the file formating with the removeal
of the command file out of revi-core
. Made a lot of new bugs but I think they were also fixed with the
help of some new test modules. As I work on ReVi more and more things are clear on what should come next
and also what I need to keep in mind for the further.
- Setup for Multiple Windows
- Multiple Buffers so more then one file can be worked on.
- Added a basic Command Mode
- updated mlua crate from
1.2
to1.3.1
- keybinding
gg
to jump to top of file - keybinding
G
to jump to bottom of file - Added more test
- Cursor moving out of max file's line count.
Mon 28 Jun 2021 06:42:48 PM CDT
In these update brought a lot of structural changes to ReVi in the regards to breaking up some
of it into there own packages. Now ReVi has revi-core and revi-ui so that we can
abstract away the drawing of the screen and the core part of this program. In doing so I do not
see way we could not support a GUI state as well. I just wanted to say that making the w
and b
commands was extremely harder then was expected. The implementation of it is certainly not the best
but it gets the job done for now. Getting this working and worrying about how it is implemented on
the first go around is ok. Its helped me see how to make such an algorithm for this and things I
can do to make it better.
- updated ropey crate from
1.2
to1.3.1
- keybinding
o
to insert new line below cursor - keybinding
O
to insert new line above cursor - keybinding
^
place cursor at the first char on current line - keybinding
I
place cursor at the first char in line and place into insert mode - keybinding
b
to move backwards by word - keybinding
w
to move forward by word - keybinding
Enter
in command mode for exiting it for now
- Added Keybinding
A
Move cursor to end of line and place editor in insert mode - Added Keybinding
$
to move cursor to end of line - Added Keybinding
<C-d>
to scroll down by one line - Added Keybinding
<C-u>
to scroll up by one line - Added Keybinding
<C-y>
to scroll up by one line and maintain cursor line - Added Keybinding
<C-e>
to scroll down by one line and maintain cursor line
- Some times cursor would go out of text bounds
- Backspace up a line would not remove line number
- Something I did with Fix #23 made it possible to go to far right letting you back space just the new line.
- When at bottom of screen pressing enter in insert mode does not scroll or move cursor down after inserting '\n'
- Line number does not update correctly when scrolling off screen then backspacing back up.
- General Code Clean up