-
Notifications
You must be signed in to change notification settings - Fork 44
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added option to open Brief in a popup instead of a new tab #448
base: master
Are you sure you want to change the base?
Conversation
Modified global shortcut key to ctrl+shift+f (since ctrl+shift+d does not work)
@@ -34,7 +34,7 @@ | |||
"commands": { | |||
"_execute_browser_action": { | |||
"suggested_key": { | |||
"default": "Ctrl+Shift+D" | |||
"default": "Ctrl+Shift+F" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No idea why it worked when Brief was first migrated to WebExtensions. I'd prefer to switch back to Ctrl+Alt+D
if this does not break Firefox 60ESR compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Bookmark All Tabs" shortcut used to be disabled on Linux before Firefox 65 (bug 1504205), thus I've missed its existence.
@@ -119,7 +119,7 @@ export function getPluralForm(number, forms) { | |||
|
|||
|
|||
export async function openBackgroundTab(url) { | |||
let tab = await browser.tabs.getCurrent(); | |||
let [tab] = await browser.tabs.query({active: true, currentWindow: true}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be not a good idea. It'll cause the new tab to be opened as if the currently active tab opened it, but the currently active tab is just the tab you happened to be on when you peeked into Brief... does it really make sense to bind the new tab to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tanriol I figured this was a bug, since it seems the original intention was to achieve the same goal using browser.tabs.getCurrent()
(which does not return the current tab when called from a background script).
This fix makes it so that when Brief is closed the last tab you were on is displayed, which is usually the tab I want (returning to the workflow after a quick peek). This is also the purpose of the popup feature.
This is an interesting idea, but the Brief UI as done today does not feel a good match for a popup. In my opinion, it would be an interesting idea to have such a mode, but I'm not sure about making it a feature yet. I'd be fine with merging the support as a hidden option (pref-only, needs to be enabled from console) for now. |
Added option to open Brief in a popup instead of a new tab (#328 #339 #433)
Modified global shortcut key to ctrl+shift+f (since ctrl+shift+d does not work)