aecreations / readnext

Read Next: an extension for Mozilla Firefox
Other
4 stars 1 forks source link

Close tab after adding to Read Next #34

Closed aecreations closed 1 year ago

aecreations commented 1 year ago

Add a checkbox option to extension preferences to automatically close the browser tab after adding it to the reading list. This is similar to the "Close tab after adding to the Reading List" feature of the Reading List extension.

Decide what should happen if there is only one browser tab. Should the entire window be closed after adding to the reading list? This would mean that, on Windows, if there are no other browser windows open, then Firefox would quit.

aecreations commented 1 year ago

Decide what should happen if there is only one browser tab. Should the entire window be closed after adding to the reading list? This would mean that, on Windows, if there are no other browser windows open, then Firefox would quit.

This should keep the window open with a new default tab. This is the behaviour of the above-mentioned Reading List extension.

aecreations commented 1 year ago

New group box and checkbox option label in the extension preferences page:

Actions -------------------------------
[ ] Close tab after adding to Read Next

Default checkbox state: unticked. Also add a description:

This action can also be triggered by right-clicking the address bar button and selecting Add and Close Tab.

As the checkbox option description suggests, the page action (address bar button) should also expose this functionality in the context menu; menu item label: Add and Close Tab.

aecreations commented 1 year ago

The "Add and Close Tab" context menu item should be disabled if the page is already added to the reading list.