Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions data/re.sonny.Commit.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
<summary>Body lines maximum length (in characters)</summary>
</key>

<key name='window-height' type='i'>
<default>272</default>
<summary>The height of the commit message window.</summary>
</key>

<key name='window-width' type='i'>
<default>654</default>
<summary>The width of the commit message window.</summary>
</key>

<key name="color-scheme" type="i">
<default>0</default>
</key>
Expand Down
3 changes: 2 additions & 1 deletion src/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export default function Welcome({ application }) {
const command = getCommand();

const git_text = builder.get_object("git_text");
git_text.label = `<tt>git config --global core.editor "${command}"</tt>`;
git_text.label = `<tt>git config --global core.editor "${command}"\n` +
'git config --global --unset sequence.editor</tt>';
const git_copy = builder.get_object("git_copy");
git_copy.connect("clicked", () => {
git_copy.get_clipboard().set(git_text.get_text());
Expand Down
14 changes: 14 additions & 0 deletions src/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ export default function Window({ application, file, text, type, readonly }) {
const window = builder.get_object("window");
if (__DEV__) window.add_css_class("devel");

settings.bind(
"window-width",
window,
"default-width",
Gio.SettingsBindFlags.DEFAULT,
);

settings.bind(
"window-height",
window,
"default-height",
Gio.SettingsBindFlags.DEFAULT,
);

Comment on lines +30 to +43
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you want Commit to remember window size?

let title = GLib.path_get_basename(GLib.get_current_dir());
if (parsed.detail) title += ` (${parsed.detail})`;
window.set_title(title);
Expand Down