You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This probably applies to other generic x classes of commands as well but I noticed looking at generic browser that there is a lot duplication of implementations across browsers due to not having any default implementations to inherit from.
The command -> action mapping only needs to be registered once at the generic browser level which is probably where a default implementation should be too in order to avoid this duplication:
Example
The go(url) command is implemented identically four times (once for each browser):
The text was updated successfully, but these errors were encountered:
xavier630
changed the title
Default python implementations for generic_browser
Default python implementation for generic_browser
Aug 2, 2021
)
The goal of this PR is to reduce duplication, add consistency and
complete functionality where possible. It should close issue #532.
Things done:
- Move most of the common browser functionality to browser.py and
browser_mac.py
- Implement tab actions in those same two files and in the specific
browser apps when they differ.
- Change mac shortcuts for tab next and tab previous to `ctrl-tab` and
`ctrl-shift-tab` that have less issues with international keyboards.
(Maybe a bit out of the scope of this PR)
- Implement action `browser.focus_page` and add command to trigger it.
- Implement action `user.tab_duplicate` for all the browsers.
- Implement commands `bookmarks sidebar` and `history sidebar` and their
respective actions for Firefox.
- Fix some shortcuts that were incorrect.
- Raise NotImplementedError for the actions that couldn't be implemented
with a clear message of the reason.
- Add support for Opera and Vivaldi browsers.
- Add .talon files for all the browsers. This makes it easier if the
user wants to add custom commands.
- Move all the tag activation to .talon files
- Remove commented out commands in browser.talon. Many of those can now
be performed with Rango.
This probably applies to other
generic x
classes of commands as well but I noticed looking at generic browser that there is a lot duplication of implementations across browsers due to not having any default implementations to inherit from.The command -> action mapping only needs to be registered once at the generic browser level which is probably where a default implementation should be too in order to avoid this duplication:
Example
The
go(url)
command is implemented identically four times (once for each browser):The text was updated successfully, but these errors were encountered: