fix: focus editor on new tab / tab switch / reload; prep 0.3.0#2
Merged
Conversation
Editor focus: - New tab (+ button, File → New) now focuses the editor so typing works immediately without clicking into the text area. - Switching to an existing tab (including via the >> overflow dropdown) focuses that pane's editor. - After a page reload, the active editor is focused via App.focusActiveEditor(), called once the dock is initialised. Release prep for 0.3.0: - Bump version to 0.3.0 (package.json, package-lock.json, manifest.json, README badge + release-zip reference). - CHANGELOG: add 0.3.0 entry (split view + the focus fixes above). Tests: new tests/e2e/new-tab-focus.spec.ts (4 cases: + button, File → New, tab switch, reload). 640 unit + 183 e2e pass; typecheck and lint clean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Editor focus:
Release prep for 0.3.0:
Tests: new tests/e2e/new-tab-focus.spec.ts (4 cases: + button, File → New, tab switch, reload). 640 unit + 183 e2e pass; typecheck and lint clean.
What & why
Checklist
-sflag on all commits)npm run lintpassesnpm run typecheckpassesnpm testpasses// SPDX-License-Identifier: GPL-3.0-or-later