finished the command mode logic and integrated it into the status bar. Commands can also be used simultaneously ie “wq” saves and quits.
this now allows for the running of commands like
Log in to leave a comment
finally have an actual text editor (although file saving isnt quite there yet lol)
finished off the editor and statusbar widgets today. visual mode selection highlighting landed in editor.py, then the rest of the editor rendering got polished up gutter, cursor, cursorline, the works. statusbar is now complete with the mode pill, filename, modified dot and cursor position. also started a theme config file (colors.toml) so colours can eventually be swapped out without touching code -c atppuccin mocha as the default for now.
Log in to leave a comment
Log in to leave a comment
its official, the spaghetti code of my classes and functions has now become organised spaghetti
updated the main file so txtr actually does something when called (although still no ui yet)
finished the modes logic:
INSERT - text goes into the buffer (where you actually edit files as you would normally)
NORMAL - default mode, each keypress is a command
VISUAL - selection of characters
VISUAL LINE - same as visual but line by line
COMMAND (WIP) - the : command prompt, hardly ready yet.
Also added some vim inspired keybinds (heavily inspired as this is a vim-style editor and its what im used to)
The basic things include:
gg and G - jump to start/end
u/ctrl r - undo/redo
and a lot more, theyre all in the repo :)
Also cleaned up some buffer code and fixed a little bit of logic :)
(and i managed to make it actually install as a pip package this time)
Log in to leave a comment
the buffer is pretty much sorted, the main logic for deletions, undo/redo (i love stacks), file writing/opening etc is done.
Log in to leave a comment
New project!! (lantern is still going dw)
This is my first devlog for txtr (aka texitor).
txtr/texitor will be a Vim-style text editor, specifically designed for incredibly fast LaTeX typesetting or in more simple terms, writing cool math equations way faster than you could hand write them :)
So far, I have created the initial structure of the project, created a pyproject.toml file for the pip package that this will eventually be distributed as and also have begun to code some core logic such as the buffer and modes (insert, visual, normal etc).
(no code output yet so heres a ss of the repo lol)
Log in to leave a comment