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

[Feature Request] Provides some global variables in workflow #30

Closed
hiberabyss opened this issue Apr 26, 2018 · 9 comments

Comments

Projects
None yet
3 participants
@hiberabyss
Copy link

commented Apr 26, 2018

It will be more convenient if there could be some global variables such as title and url of current page.

Thanks!

@solobat

This comment has been minimized.

Copy link
Owner

commented Apr 27, 2018

I think I can develop a plugin called current to provide this information.

@solobat solobat added the enhancement label Apr 27, 2018

@hiberabyss

This comment has been minimized.

Copy link
Author

commented Apr 27, 2018

@solobat Great to hear it! Thanks!

@solobat

This comment has been minimized.

Copy link
Owner

commented Apr 29, 2018

In Steward's page mode, when you use commands such as bm / bk / his, you can type / to autocomplete the current page's url.

@solobat solobat added the new plugin label Apr 29, 2018

@solobat

This comment has been minimized.

Copy link
Owner

commented May 4, 2018

Oh, sorry, I think I didn't understand what you mean at first, but just because of this I refactored the websites feature and provided some common information about the page, the trigger is '.
Imgur

Maybe I can provide variables in the workflow, but I'm curious how you would use it.

@hiberabyss

This comment has been minimized.

Copy link
Author

commented May 4, 2018

Cool! Thanks for your quick response.

With workflow, I would like to open some urls which use current page's url and title as the parameters.

@solobat

This comment has been minimized.

Copy link
Owner

commented May 5, 2018

Sounds OK, I will develop it later.

@solobat

This comment has been minimized.

Copy link
Owner

commented Dec 2, 2018

Support from v3.6

Can be used in page mode

Usage

{{var}}

Global variable provided

{
    title,
    shortTitle,
    selection,
    icon,
    url,
    host,
    pathname,
    baseURL,
    search,
    hash
}

Examples

  • Search with selected text
    Search with selected text

  • Open related bookmarks
    image

@solobat solobat closed this Dec 2, 2018

@seancojr

This comment has been minimized.

Copy link

commented Feb 2, 2019

Oh, sorry, I think I didn't understand what you mean at first, but just because of this I refactored the websites feature and provided some common information about the page, the trigger is '.
Imgur

Maybe I can provide variables in the workflow, but I'm curious how you would use it.

In the screenshot you show creating a short URL. Can you share how you did that?

@solobat

This comment has been minimized.

Copy link
Owner

commented Feb 3, 2019

This feature has been removed due to the limitations of the third-party api. I can implement this function with another api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.