Commit graph

473 commits

Author SHA1 Message Date
mauro-balades
8efd7fecbe Refactor ZenSidebarManager to reload browser with default mobile user agent 2024-09-27 19:17:16 +02:00
mauro-balades
7af14f1484 Refactor ZenWorkspaces to fix icon mapping issue 2024-09-27 18:56:37 +02:00
mauro-balades
9ae3de71e7 Refactor ZenTabUnloader to remove unused code and optimize tab unloading timeout 2024-09-27 18:12:49 +02:00
mauro-balades
1fa61f4349 Refactor ZenTabUnloader to simplify tab unloading condition 2024-09-26 18:58:59 +02:00
mauro-balades
cb24052969 Do not show default container context menu if disabled 2024-09-26 18:58:04 +02:00
mauro-balades
9cce473af8 Refactor ZenTabUnloader to remove debug logging and optimize tab unloading 2024-09-26 18:50:28 +02:00
mauro-balades
d840faf90d Merge branch 'main' of https://github.com/zen-browser/components 2024-09-26 18:47:38 +02:00
mauro-balades
5b2e0030ed Refactor ZenTabUnloader to remove unused code and optimize tab handling 2024-09-26 18:47:35 +02:00
mauro 🤙
496ee293b5
Merge pull request #30 from BrhmDev/fix/make-web-panel-dragging-more-responsive
Make web panel dragging way more responsive by using requestAnimationFrame
2024-09-26 18:45:09 +02:00
mauro-balades
a615de5b6f Refactor ZenTabUnloader to add support for unloading inactive tabs
This commit refactors the ZenTabUnloader class to add support for unloading inactive tabs. It introduces a new class called ZenTabsIntervalUnloader, which periodically checks for inactive tabs and discards them if they meet certain criteria. The criteria include being inactive for a specified timeout period and not meeting any exclusion URLs.

The commit also adds a new class called ZenTabsObserver, which listens to various tab events and notifies the ZenTabUnloader when a tab's activity changes.

These changes improve the efficiency of tab management and help reduce resource usage by unloading tabs that are not actively being used.
2024-09-26 18:44:22 +02:00
brahim
65f32f3784 Make web panel dragging way more responsive by using requestAnimationFrame. 2024-09-25 19:25:55 +02:00
mauro 🤙
b63df576e3
Merge pull request #29 from BrhmDev/fix/expand-on-hover-flicker-when-mouse-overshoot
Fix flicker when mouse overshoot for expand on hover
2024-09-25 17:50:06 +02:00
mauro 🤙
88c5f7be14
Merge pull request #28 from BrhmDev/feature/make-zen-sidebar-draggable
Make zen sidebar draggable
2024-09-25 17:16:55 +02:00
mauro-balades
05d658c6bc Refactor ZenKeyboardShortcuts to add support for accelerator keys in constructor 2024-09-25 17:16:03 +02:00
mauro-balades
e629fdfaa0 Refactor ZenKeyboardShortcuts to add support for accelerator keys 2024-09-25 17:06:54 +02:00
brahim
2a205e258f Fix possible flicker when mouse overshoot hover is applied. 2024-09-25 14:39:19 +02:00
brahim
25f332ad0e Keep Zen Sidebar inside wrapper when browser window is resized. 2024-09-25 02:49:07 +02:00
brahim
72e57f1f00 Fix zen sidebar splitters when pinned. 2024-09-25 02:21:15 +02:00
brahim
86992a27cb Always show 'resize' cursor when resizing zen sidebar. 2024-09-25 01:54:45 +02:00
brahim
76c9f7847c Fix cannot drag Zen Sidebar from title. 2024-09-25 01:45:13 +02:00
brahim
4d40fb8202 Fix resizing of draggable window 2024-09-25 01:45:13 +02:00
brahim
6ade130b40 Add 2 splitters to resize Zen sidebar on all sides, rewrite handleSplitter method 2024-09-25 01:45:13 +02:00
brahim
b6a9df7ebc Add drag function for Zen Sidebar 2024-09-25 01:45:13 +02:00
mauro-balades
b48e947798 Refactor ZenKeyboardShortcuts to remove unnecessary console logs and improve setNewBinding method 2024-09-24 21:41:30 +02:00
mauro-balades
15fbb2030f Refactor ZenKeyboardShortcuts to fix case sensitivity issue in setNewBinding method 2024-09-24 21:38:46 +02:00
mauro-balades
287f6fa80a Refactor ZenKeyboardShortcuts to fix case sensitivity issue in setNewBinding method 2024-09-24 21:33:42 +02:00
mauro-balades
57b68599e9 Refactor ZenKeyboardShortcuts to fix target shortcut identification 2024-09-24 21:30:28 +02:00
mauro-balades
b10313ac47 Refactor ZenKeyboardShortcuts to fix platform-specific key behavior and add l10n support 2024-09-24 21:20:48 +02:00
mauro-balades
160e85f337 Refactor ZenKeyboardShortcuts to handle key actions gracefully 2024-09-24 21:10:41 +02:00
mauro-balades
4fcc367d75 Refactor ZenKeyboardShortcuts to fix control key behavior 2024-09-24 21:04:40 +02:00
mauro-balades
a8648e284b Refactor ZenKeyboardShortcuts to include new shortcuts for closing tabs and windows 2024-09-24 20:16:47 +02:00
mauro-balades
072a6099b4 Refactor ZenKeyboardShortcuts to include split view shortcuts and additional tab selection shortcuts 2024-09-24 17:31:24 +02:00
mauro-balades
028c896112 Refactor ZenKeyboardShortcutsLoader to add a new method for removing shortcuts and update the resetAllShortcuts method to use it 2024-09-24 16:58:13 +02:00
mauro-balades
53b7f6eecc Refactor ZenWorkspaces shortcutSwitchTo method to handle out of bounds index gracefully 2024-09-24 16:47:42 +02:00
mauro-balades
c65b4aef13 Refactor ZenKeyboardShortcuts to include split view shortcuts 2024-09-23 19:55:39 +02:00
mauro-balades
72f6b8d513 Merge branch 'main' of https://github.com/zen-browser/components 2024-09-23 18:15:20 +02:00
mauro-balades
58b7b402ac Refactor ZenKeyboardShortcuts to use async/await for initialization and handle potential error when retrieving active workspace from cache 2024-09-23 18:15:17 +02:00
mauro 🤙
e641ec8ce5
Merge pull request #26 from BrhmDev/fix/update-compact-mode-context-menu-when-updated-from-elsewhere
Always update compact mode context menu on preference update.
2024-09-23 18:02:25 +02:00
mauro 🤙
9e29485e54
Merge pull request #27 from BrhmDev/fix/sidebar-on-right-not-alwyas-saying-open-on-mouse-overshoot
Fix rightside sidebar not always staying open when overshooting mouse.
2024-09-23 18:02:03 +02:00
brahim
3cb4bb194f Make gZenCompactModeManager._getCrossedEdge work with any element. 2024-09-23 17:38:53 +02:00
brahim
9ac29437d8 Fix rightside sidebar not always staying open when overshooting mouse. 2024-09-23 17:15:09 +02:00
mauro-balades
a97e7e65ed Refactor ZenWorkspaces to use async/await for shortcutSwitchTo method 2024-09-23 17:00:20 +02:00
brahim
3cc1a4b4b0 Always update compact mode context menu on preference update. 2024-09-23 13:23:27 +02:00
mauro-balades
b4b3c1f0d4 Refactor ZenKeyboardShortcuts to use async/await for initialization and handle potential error when retrieving active workspace from cache 2024-09-22 22:39:51 +02:00
mauro-balades
06bff7da09 Refactor ZenKeyboardShortcuts to use async/await for initialization and handle potential error when retrieving active workspace from cache 2024-09-22 22:13:15 +02:00
mauro 🤙
f6dbd40464
Merge pull request #25 from HarryHeres/main
[WIP] Syncing keybindings changes
2024-09-22 21:52:09 +02:00
HarryHeres
07af74dd3a
Working on the keybindings 2024-09-22 21:04:54 +02:00
mauro 🤙
98734ff389
Merge pull request #24 from BrhmDev/fix/copact-mode-and-expand-on-hover-conflicts
Always disable sidebar-expand.on-hover if compact mode is is enabled with hide-tabbar
2024-09-22 18:31:01 +02:00
mauro-balades
6097e99c99 Refactor ZenWorkspaces to use async/await for initialization 2024-09-22 18:30:03 +02:00
mauro-balades
fff6dac398 Refactor ZenWorkspaces to handle potential error when retrieving active workspace from cache 2024-09-22 18:27:56 +02:00