Today I added error queries and they are used to check for tree-sitter parsing errors. If tree-sitter reports a syntax error it may be because of an error in the file, or just because the tree-sitter partial reparse has become confused due to over complicated edits. Either way we now trigger a full reparse to be safe and make sure that the syntax tree doesn’t get stuck in a bad state.
The branch widget now displays a mini git status along with the branch name.
Flow now loads the project file list from git if the project is contained in a git repository. This means that files ignored by git via it’s many configuration options are now also ignored by the flow file browser. Explicitly specifying the path to a file will still open it in flow and also store it in the project’s most recently used files list.
Also, the branch widget is now included in the default configuration of the status bar.
Added a statusbar widget called branch
that shows the current git branch if the current project is in a git repository.
Highlight columns are now rendered using alpha blending of the background color. They are also enabled now in the default configuration.
I added a command to copy the current file name and position to the system clipboard. This is very useful for grabbing something to use for setting a breakpoint, or for pasting into a bookmarks file. It’s bound to shift+alt+c
for file name and line, column position and ctrl+k alt+c
for just the file name. Also, if there are multiple cursors it will copy multiple entries on a line each. Nice for creating jump lists.
The installer script is now significantly more intelligent. It will request permissions with sudo if the destination directory is not writable and it will check the version of the currently installed flow version before downloading to avoid re-downloading the same version. This makes it a pretty useful auto update tool.
Today brings a new configuration option: highlight_columns
. This string contains a list of space separated columns numbers where flow should draw a border. This can help with manual wrapping of text as as visual indicator of how long the current line is.
Integer arguments are back! Now you can once again use integer prefixes for many commands. Most commands use the integer prefix as a repeat count, but the exact meaning is dependant on the command being executed. The current value of the prefix is displayed in the keybind
widget in the status bar. Prefix digits are bound to alt+0
through alt+9
in flow and emacs mode and just the plain digit keys in vim and helix modes.
I added init_command
and deinit_command
support for keybinding modes that allow us to now call pause_undo_history
and resume_undo_history
when entering/exiting insert modes. This means that insert modes will now create just one single undo step for the entire input made while in the mode.
You can now customise the current theme in your local configuration directory without modifying flow itself. Just run the Customize theme
command and flow will copy the current theme to your configuration directory and open it for you to edit.
There is now a small warning on the home screen when you run a debug build. Debug builds are significantly slower than ReleaseFast builds. The build type is also now mentioned in the version information.
Mini feature today. You can now add parameters to (some of) the status bar widgets by separating them from the widget name with a colon.
linenumber
widgets may have (up to) three parameters: pad width (int), pad value (space/zero) and digit style (ascii/digital/subscript/superscript).For example: linenumber:4,zero,digital
.
spacer
widgets may have one parameter: width (int)
clock
widgets may have one parameter: digit style (ascii/digital/subscript/superscript)
A few major behind the scene updates in the last week. Nothing directly user facing, but still worth mentioning here.
Flow now uses pre-loaded binary versions of the tree-sitter queries. The scheme query text is loaded at compile time and serialized to binary which is then loaded at runtime. The tree-sitter query parser is incredibly slow and the binary loader is close to instant, so this saves around 20-30ms when loading files. Every frame counts!
Flow’s LSP backend is now 100% async. It used to be able to block the project manager in some cases, potentially leading to pauses when listing project files and occationally timeouts when loading the first file of a file type. These issues can no longer occur. LSP pauses can now only effect LSP things, like diagnostics or goto_* requests.
Today we have a couple of useful quality of life features.
A much improved smart_insert_pair
command, and to go along with it, new commands smart_insert_pair_close
and smart_delete_backwards
. This pretty much completes smart pair handling as far as I am concerned and flow should generally do-the-right-thing when inserting or deleting paired characters like ()
, {}
, []
, ""
, etc.
Automatic file link parsing in selections when using the open_file
command. What this means is that flow will automatically open files (if they actually exist) if you select the file path before pressing ctrl+o
, including parsing for line number and column indexes. This is especially useful for command output buffer and means that you can easily jump to files in compiler errors or grep matches. Tip: use the expand_selection
command to select a whole file path in a command output buffer.
Wierd issues on macos with zig-0.14
today, so I have reverted the master
branch to zig-0.13
with a force push and cherry-picked all the new features since the zig-0.14
update. There is now a zig-0.14
branch pointing to the zig-0.14
changes (where master
used to be). I also added the build mode and zig version to the version info.
Todays feature of the day is a little bit of bliiiiing. You can now select from four different digit styles for the line number gutter!
Flow Control is now on zig master once again! 🎉
41 files changed, 648 insertions(+), 623 deletions(-)
By far the most painful zig update in flow’s history!
Today’s update brings better support for ephemeral buffers. These buffers are used for task output, new files and the help buffer. They can only be saved by giving them a new name first with the save_as
command and do not store undo info when closed unless first given a name. Also added is the new create_new_file command, bound by default to ctrl+shift+n
.
Today’s feature is a task runner. You can now run commands inside flow and have their output placed in a buffer. Tasks are remembered per project. The default keybinding for the task palette is alt+!
.
Today’s quality flow time brings a new tabs
widget. Add it to your topbar config option to get a tab bar that you can use to switch buffers with the mouse or a keybinding to next_tab
/previous_tab
. You can close a tab with middle mouse click.
There is now a delete_buffer
command that is bound to the delete
key when in the buffer selector palette. Deleting a buffer will remove it from the buffers list and free it’s undo history.
Today’s feature of the day is multi-buffer support. Thanks to a new buffer manager module you can now switch buffers without first saving them. The recent files list has gained a dirty indicator so you can see which files need to be saved and there is a new command switch_buffer
that will bring up a list of currently open buffers. The home screen now also has a save_all
command for those times you just want to exit without saving each file individually first.
A lot has happened over the last two weeks. Sorry about the lack of posts here in the devlog. Due to the huge uptick in community contributions I have been concentrating on getting PRs reviewed and merged. Here’s a list of highlights of whats new (in no particular order):
Beam cursor mode mouse select - Selecting with the mouse when you have a beam cursor active now gives selection behaviour like a GUI editor. ie. the position of the selection is calculated gap to gap instead of char to char.
Flow select mode - Press ctrl+space
in flow input mode to enter a select mode that lets you extend your selection with regular movement keys.
Emacs bindings greatly improved - Emacs input mode keybindings are now much more fleshed out and include all the emacs basic movement commands. Emacs input mode now also has a selection mode (also ctrl+space
). Thanks to @marler8997
for this work.
Win32 GUI - Yes, flow can now render itself in a win32 GUI window for all those terminal impaired windows users (with full GPU acceleration!). The GUI binary can be built with zig build -Dgui --release=safe
and is called flow-gui.exe
. Functionality in this GUI version of flow is identical to the TUI version, although as of this writing there are some minor renderer features still missing such as curly underlines, mouse cursors and double wide characters. Thanks to @marler8997
for the huge amount of work he put into this.
Multi cursor changes - Adding cursors is now alt+click
(it was ctrl+click
). This is to fall inline with common practice in other editors (zed and vscode). Also, you can now remove cursors by alt+click
ing on them.
Gutter symbols - There is a new config option to disable gutter symbols and reduce the size of the line number gutter if you so desire.
Verilog support - Thanks to @edwloef
we now support syntax highlighting and formatting for verlog files.
LSP: Rename symbol command - Thanks to @Travis
we now have LSP rename_symbol
support. This is done a little differently in flow to most other editors. When running the rename_symbol
command we add cursors at all the symbol references and let you rename them interactively. Cross file renames are not yet supported, but will show up in the references list for you to jump directly to them and perform the rename yourself if you so desire.
Oh, and one more thing:
shell_execute_insert
and shell_execute_log
. See src/keybind/builtin/flow.json
for some examples.Today’s feature of the day: Much improved whitespace rendering. Flow now uses a map of the rendered view to process whitespace rendering after finishing the main render pass. This fixes a few minor whitespace rendering bugs, and more importantly, allows easy and fast rendering of more whitespace related features. There are new modes: leading, eol and tabs, to render just subset of whitespace. And, best of all, flow now highlights leading (ie. spaces before tabs) and trailing whitespace errors.
I try to keep a log of major (and some minor) changes and new features going into flow as I work on them.
You can subscribe to this page via RSS and find more devlog entries in the archive.