In Vim mode, / and ? now open the editor's find bar, which shows the
matches while typing. Enter turns the query and its options into a Vim
pattern and hands it to the waiting search, so n and N, counts and
operators such as d/ follow Vim's rules; plain text is passed as typed
and Esc returns the cursor. g/ opens search in files. When the find bar
cannot open, the Vim search prompt is used as before.
Fixes#1133
With the terminal focused, global shortcuts held by Ctrl went to the
program in the terminal, so Ctrl+F5 could not run a configuration again
while its output was in view. Run and stop bindings on function keys
with a modifier, such as Ctrl+F5 or Shift+F10, now work in the
terminal too. Ctrl with a letter, like Ctrl+R in the IDEA keymap on
macOS, still goes to the shell for its history search.
Fixes#1127
A standalone = inside a $$ block was read as a setext underline, so the
math became a heading and a paragraph; a line starting with - or + broke
it into a list the same way. Before parsing, the first character of each
line between a $$ opening line and its closing line is swapped for a
control character of the same length, outside fenced code, and swapped
back in the parsed text. Headings outside math keep working.
Fixes#1142
Menus drawn in the window, as on Windows and Linux or for remote
folders, put their checked row over the clicked segment like a pop-up
button. A menu cannot leave the window, so it was pushed up and covered
the status bar path it came from. Status bar menus drawn in the window
now attach above the status bar, aligned with the clicked segment, and
a menu that does not fit takes the larger side and scrolls. System
menus on macOS keep their pop-up button placement.
Fixes#1129
Text fields in system panels, such as the file name in the save panel,
rely on the menu bar to turn Cmd-C, Cmd-V and the like into the
standard edit actions. Winc's menus never take keys, so those keys did
nothing there. The menus now hand the standard edit actions to the
first responder when it is a system text field, and still leave every
key to Winc's keymap in its own windows.
Fixes#1118
Shift-click or Shift with the arrow keys now selects a run of commits
in the log, and its menu offers to squash them. The dialog for editing
a commit message prefills the selected commits' messages, oldest first,
and the first commit is reworded with the edited message while the
rest are fixed up into it. The range must be consecutive on the current
branch, and the dialog warns when pushed commits need a force push.
Esc collapses the range back to the current commit.
Fixes#1106
editor.closeWhenEmpty, off by default, closes a window that has no
folder open once its last tab is closed, by the close key, the tab's
close button or a middle click, instead of returning to the start page.
Windows with a folder keep the start page, so the file tree is not
closed by accident. The setting sits with the other closing settings,
whose names and descriptions are reworded to read as one group.
Fixes#1101
A running xdg-desktop-portal without a backend for the desktop has no
FileChooser interface, and reading the interface's version answered
InvalidArgs. That error came back as a D-Bus error instead of meaning
no portal, so Open Folder showed it rather than the built-in picker.
Property errors from the portal are now recognized as a missing
interface, and the message for files names the backend that is needed.
Fixes#1095
A push to a local path runs receive-pack without the -c settings, and
receive-pack then starts git maintenance --auto --detach in the remote.
That process could still create and remove files while the template was
being copied, so a listed entry vanished before it was read. The bare
template now turns receive.autoGc off in its own config, and reading a
template names the entry that failed.
Fixes#1089
Opening a folder already open in another window asks that window to come
to the front, which a Wayland compositor ignores without an activation
token. The window the user is working in now requests a token and passes
it on. Compositors may still only mark the window as needing attention,
so the window also says the folder is open in another window.
Fixes#1068
Show each local branch's upstream ahead and behind counts to the
right of its name in the git log branch tree, using Winc's vertical
arrows. Behind uses the git modified blue, ahead uses the git added
green.
The same colors are used wherever ahead and behind arrows appear:
the branch picker (including Pull/Push action counts), the top sync
control, worktree and other-repository rows, and the status-bar
branch label. Names, action labels, and running suffixes keep their
existing colors. Branches with no upstream, a deleted upstream, or
no difference are left unmarked.
Code review services such as Gerrit take changes pushed to
refs/for/<branch>. The push dialog's target now accepts a full ref and
pushes it as written instead of under refs/heads/.
When the remote configures remote.<name>.push, as Gerrit recommends,
push, sync and publish send only the current branch to the ref its
matching rule gives, rather than every branch a wildcard rule covers;
publishing then sets no upstream. The push dialog fills in that target,
so it shows where the commits actually go. Commits already run the
repository's commit-msg hook, which adds Gerrit's Change-Id.
Fixes#958
A window with added folders now reads .winc/run.json, or the detected
commands, from every folder. The menu groups them by folder and prefixes
the folder name once configurations come from more than one folder. A
configuration runs in its own folder, and its approval, running tab and
saved selection are kept per folder, so same-named configurations in
different folders no longer replace each other.
Fixes#916
Bash's readline returns to the start of the line it occupied before the
resize, moves up by the old row count and redraws only the last prompt
line with the typed command. Reflowing that line moved the rows it
counts on, so the prompt was duplicated or the cursor landed on earlier
output. The bash integration now reports redraw=last, and only the
logical line under the cursor keeps its rows; the lines above reflow.
Refs #781