Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

katzelad
Copy link

@katzelad katzelad commented May 7, 2019

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)

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"
Copy link
Member

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.

Copy link
Member

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});
Copy link
Member

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?

Copy link
Author

@katzelad katzelad May 10, 2019

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.

@tanriol
Copy link
Member

tanriol commented May 10, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants