Hi all
Is it possible to open a link in a registered service.
Example I have a Trello Service and a Slack service, If someone send me a Trello link in Slack it will open in external browser by default, is it possible to open it in Trello service inside Getferdi ?
Thanks
@kytwb I've worked a little on this, now I need to use user.js in each service in order to modify all links I want. For example, if I have Trello with id 'baa48d44-e29a-4a55-8709-e4fbf02a39a4' and Slack service :
I can transofrm links like Card
TO:
window.open('https://trello.com/c/daUQc9Us/89-gestion-des-notifications-menu-%C3%A9cran', 'Ferdi: Trello', 'baa48d44-e29a-4a55-8709-e4fbf02a39a4');
Can you give me any direction, to retrieve automatically a service.id for a given service.name, is it possible to retrieve this kind of information in user.js.
I can create a pull request, but just to have some insights from you guys ;-)
For the moment all my code is in https://github.com/gmarec/ferdi/tree/develop-service-link
Thanks for your help
@gmarec Thank you for digging into this! 馃挭馃檹
Can you please open a draft pull request? Like this we can more easily checkout, see the diff and collaborate within the pull request 馃槃 Maybe you can also comment in the diff to pin-point us to where you're missing the ~getServiceIdByServiceName helper?
@kytwb it's ok now to get serviceId by serviceName, thanks. I have opened a draft pull request. Thanks for your help. It needs documentation and a better integration than using user.js but it's working.
This issue has been automatically marked as stale because it has not had recent activity. Please check if this issue is still relevant and please close it if it's not. This will make sure that our open issues are actually of use and reduce the list of obsolete issues. Thank you for your contributions.
Most helpful comment
@kytwb it's ok now to get serviceId by serviceName, thanks. I have opened a draft pull request. Thanks for your help. It needs documentation and a better integration than using user.js but it's working.