ui5-tooling icon indicating copy to clipboard operation
ui5-tooling copied to clipboard

Add --browser cli argument for changing the default browser

Open zdravko-georgiev opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Using ui5 serve --open will open the server root directory in the default browser. But if you want to use a browser different than the default system browser, there is no way to specify it.

Describe the solution you'd like

The open package used by the ui5-tooling supports this feature. A simple solution could be adding an additional cli argument, e.g. --browser when one can specify the browser to be used, e.g. chrome|firefox|edge, the value can be then used when executing the open request.

Describe alternatives you've considered

Copying link and manually opening it in the desired browser

Additional context

Asked also by the community: https://answers.sap.com/questions/13751060/change-default-browser-used-by-vscodefiori-tools.html

zdravko-georgiev avatar Dec 15 '22 12:12 zdravko-georgiev

Sounds like a good suggestion. The API is documented here: https://github.com/sindresorhus/open#usage

Maybe we should look into this together with: https://github.com/SAP/ui5-tooling/issues/623

RandomByte avatar Dec 15 '22 16:12 RandomByte