Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add MRU window navigation actions#977

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
rustn00b wants to merge32 commits intoYaLTeR:mainfromrustn00b:window-mru
Closed
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
32 commits
Select commitHold shift + click to select a range
5db4c37
Add MRU window navigation actions
rustn00bJan 13, 2025
e3bc967
Rename WindowMRU fields
rustn00bJan 13, 2025
b1146e3
Improve window close handling during MRU traversal
rustn00bJan 13, 2025
5677748
Removed dbg! calls
rustn00bJan 13, 2025
029d215
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bJan 14, 2025
84597fd
Hardcode Alt-Tab/Alt-shift-Tab for MRU window nav
rustn00bJan 16, 2025
ea612c4
Remove `focus-window-mru` actions from config
rustn00bJan 16, 2025
3ac6a66
Cancel MRU traversal with Alt-Esc
rustn00bJan 16, 2025
f2e929d
Rephrase some comments
rustn00bJan 16, 2025
2c69396
Fix Alt-Esc not cancelling window-mru
rustn00bJan 16, 2025
944a3eb
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bJan 16, 2025
80cfd4a
Lock-in focus immediately on user interaction
rustn00bJan 18, 2025
b4ab021
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bJan 18, 2025
74ee34e
Simplify WindowMRU::new
rustn00bJan 19, 2025
46e6d59
Replace Duration with Instant in WindowMRU timestamp
rustn00bJan 19, 2025
bef1c0b
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bJan 26, 2025
2f96fa5
Address PR comments - partial
rustn00bJan 27, 2025
b03864f
Simplify early-mru-commit logic
rustn00bJan 28, 2025
97d582d
Handle PR comments
rustn00bFeb 1, 2025
1d57839
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bFeb 1, 2025
7a9e0e2
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bFeb 11, 2025
cf7491d
Add MRU window navigation actions
rustn00bFeb 13, 2025
f525612
Include never focused windows in MRU list
rustn00bFeb 19, 2025
531851d
Remove mru_commit_ms from configurable options
rustn00bFeb 19, 2025
e3cc921
Merge remote-tracking branch 'upstream/main' into HEAD
rustn00bFeb 19, 2025
5bc01b1
Add hotkey_overlay_tile for PRESET_BINDINGS
rustn00bFeb 19, 2025
931b9de
Merge remote-tracking branch 'origin/window-mru' into HEAD
rustn00bFeb 19, 2025
ccc359a
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bMar 1, 2025
d3577fc
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bMar 23, 2025
89cee2d
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bApr 20, 2025
f63dd94
Merge remote-tracking branch 'upstream/main' into window-mru
rustn00bApr 26, 2025
d9d35a8
Run cargo fmt
rustn00bApr 26, 2025
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
PrevPrevious commit
NextNext commit
Removed dbg! calls
  • Loading branch information
@rustn00b
rustn00b committedJan 13, 2025
commit5677748624582b07e83045b7bca00937b7a743a2
2 changes: 0 additions & 2 deletionssrc/input/mod.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -382,7 +382,6 @@ impl State {
.active_workspace_mut()
.and_then(|ws| ws.active_window_mut())
{
dbg!("Exit sequence", m.id());
m.update_focus_timestamp(now);
}
}
Expand All@@ -407,7 +406,6 @@ impl State {
let window = this.niri.layout.windows().find(|(_, m)| m.id() == id);
let window = window.map(|(_, m)| m.window.clone());
if let Some(window) = window {
dbg!("Cancel MRU");
this.focus_window(&window);
return FilterResult::Intercept(None);
}
Expand Down
9 changes: 2 additions & 7 deletionssrc/niri.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -770,7 +770,6 @@ impl State {
if let Some(window) = wmru.mru_previous(&self.niri) {
self.focus_window(&window);
}
dbg!(&wmru);
self.niri.window_mru.replace(wmru);
}

Expand All@@ -785,7 +784,6 @@ impl State {
if let Some(window) = wmru.mru_next(&self.niri) {
self.focus_window(&window);
}
dbg!(&wmru);
self.niri.window_mru.replace(wmru);
}

Expand DownExpand Up@@ -1060,7 +1058,6 @@ impl State {
.flat_map(|ws| ws.windows_mut())
.find(|w| w.id() == focus_id)
{
dbg!("locked focus for", &focus_id);
window.update_focus_timestamp(stamp);
}
state.niri.focus_lockin_token.take();
Expand DownExpand Up@@ -5243,17 +5240,15 @@ impl WindowMRU {
}
});

dbg!(&bh);

dbg!(WindowMRU {
WindowMRU {
ids: bh
.into_sorted_vec()
.into_iter()
.map(|(_, id)| id)
.rev()
.collect(),
current: 0,
})
}
}

fn get<F>(&mut self, niri: &Niri, f: F) -> Option<Window>
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp