Repository navigation
v0.6.1-alpha
Pre-release
Pre-release
·
5 commits
to main
since this release
What's new in 0.6.1-alpha
- A keystroke in a large PHP file no longer re-runs the highlight query over the whole file: the spans already in hand are reused, moved by the byte delta the edit caused, and only a window of sixty lines above and below the edit is queried again (
php_syntax::highlight_tree_range, which hands the byte range to the query cursor), so the same 3250-line, 296 KB view that cost 21 ms per keystroke after the incremental parse now costs 0.34 ms. Files under 400 lines still take the exact whole-file path, where the difference would be noise, and a comment or a string that opens before the window falls back to the full pass, because a fragment cannot know that it started inside one. The test drives 500 lines through the windowed path and compares every span after the edit with a full parse; a reopened file matches it too. - Typing in a large PHP file no longer re-parses it: the buffer keeps the tree-sitter parse its highlights came from, records the single edit that took the text to the next version (byte range plus the three points tree-sitter needs), and the next paint hands that tree back to the parser, which then re-reads only the changed block — on a 3250-line, 296 KB Blade-compiled view a keystroke costs 7.7 ms instead of 21 ms, the difference between parsing the file again (12.9 ms) and not doing it. The parser is now reachable through one thread-local helper so
parseand the newreparseshare it, anything that is not PHP (hand-written highlighters) keeps going throughhighlight_lang, and a batch of edits or an undo of a group drops the tree instead of pretending it is still valid, so the next paint parses from scratch rather than colouring against a stale tree. A test compares the incremental spans with a fullphp_syntax::highlightafter every keystroke and after a multi-edit step. - The answer of an
.httprequest now has a panel of its own instead of the plain output log: the header row carries the method and URL, the status (green below 400, red above), the round-trip time and the size, then tabs switch between a syntax-coloured body and the raw headers, and Copy and Save… take the body out (the save lands inhttp/under the name the URL ends with, orresponse.json/.html/.xmlwhen the URL is a bare host). JSON is pretty-printed before it is coloured so a minified API answer reads like a document, the grammar follows the content type, and a body past 256 KB is shortened with a note — Save still writes everything the server sent. The oldformat_responsetext dump went away with the log line it fed, and the panel's own strings (plus the HTTP client's remaining English ones) went throughtr. - Watch expressions: the Debug window keeps a list of PHP expressions that are evaluated again on every stop, so
$user->id,count($items)or$order->status()are read without retyping them into the evaluate field after each step. The list lives in.phpcraft/debug.jsonnext to the port and the path mappings, is sent to the session as it pauses (each answer lands next to its own expression rather than in the history), shows "evaluating…" while it is on its way and stays visible when the run finishes so the last values can still be read. Enter in the watch field adds and evaluates an expression immediately, the cross next to a row forgets it, and duplicates are collapsed — the field has its own key context so Enter there does not run the evaluate field above it. - The rest of the Windows lag is gone:
git statusnow runs with--untracked-files=normal, so an unversioned folder is one row instead of a walk through everything inside it (the untrackednode_modulescase that made each poll read thousands of entries), and the Commit panel shows such a folder by name and reveals it in the project tree instead of trying to diff it. The gutter's HEAD version of a file is cached against the commit HEAD points at — read from.git/HEADand the branch ref file, withpacked-refs' stamp as the fallback — so switching between open tabs no longer starts agit showper tab, while a commit or checkout invalidates the cache by itself. The history asks for 300 commits first and grows by another 300 through a "Load more" footer, instead ofgit log --allbuilding a thousand rows before the window shows anything. - The Git window no longer builds the whole history to show a screen of it: the log list is a virtualised list that only materialises the rows in view (a thousand commits used to mean a thousand rows plus a commit-graph canvas each, rebuilt on every frame — the reason the window dragged while files were opened on Windows), and the polling that keeps the Changes panel fresh now asks git once instead of three times, because
git status --branch --porcelainalready carries the branch name and the ahead/behind counts in its header.git::Repo::status_branchparses that header (including a detached head and a repository without commits) and returns the sameFileStatusrows as before, so the panel, the excluded-file bookkeeping and the compare view are unchanged. - The empty editor no longer speaks only Russian: the placeholder that shows when no tab is open ("Open a file in the project tree" and its shortcut line) was written straight into the source in Russian, so an English UI showed it too; both lines now go through
i18n::trwith the Russian text in the locale file, which also brings back the usual fallback for every other language. - The SFTP panel and the Modules window can now do the small daily things that still needed a terminal: a remote folder downloads with everything under it (one listing per level, one transfer for all files, keeping the folders it needs), a selected file or folder can be renamed or deleted on the server after a confirmation, and uploads leave
.git,.idea,.phpcraft,vendorandnode_modulesbehind instead of shipping megabytes of rebuilt code.deployment::tree_underwalks the remote side,download_treemirrors it locally,delete_remote_pathremoves files before the folders that held them, andrename_remotekeeps the entry in its folder. Modules gained the package's own layouts in the creation dialog — default, plain, api, web, passed asmodule:make --plainand friends — plus "Laravel: New Module…" and "Laravel: Delete Module…" in the context menu ofModules/, the delete runningmodule:deleteonce confirmed and closing the tabs of files it removed. The project tree's context menu now runs its labels throughi18n::tras well, so the whole menu follows the language setting.
Made with ❤️ in Azerbaijan · https://path.az