Skip to content
Merged
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: 8 additions & 2 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,15 @@ pub fn main() !void {
var notification_buf: [64]u8 = undefined;
const notification_msg = std.fmt.bufPrint(&notification_buf, "Font size: {d}pt", .{font_size}) catch "Font size changed";
ui.showToast(notification_msg, now);
} else if (key == c.SDLK_N and has_gui and !has_blocking_mod and anim_state.mode == .Full) {
} else if (key == c.SDLK_N and has_gui and !has_blocking_mod and (anim_state.mode == .Full or anim_state.mode == .Grid)) {
if (config.ui.show_hotkey_feedback) ui.showHotkey("⌘N", now);
if (findNextFreeSession(sessions, anim_state.focused_session)) |next_free_idx| {
// In grid mode, the focused slot might be unspawned - use it directly
const target_idx: ?usize = if (!focused.spawned)
anim_state.focused_session
else
findNextFreeSession(sessions, anim_state.focused_session);

if (target_idx) |next_free_idx| {
const cwd_path = focused.cwd_path;
var cwd_buf: ?[]u8 = null;
const cwd_z: ?[:0]const u8 = if (cwd_path) |path| blk: {
Expand Down