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

Wanting to replace the whole URL with a few potential things #20

Open
Etrit1 opened this issue Feb 6, 2021 · 7 comments
Open

Wanting to replace the whole URL with a few potential things #20

Etrit1 opened this issue Feb 6, 2021 · 7 comments

Comments

@Etrit1
Copy link

Etrit1 commented Feb 6, 2021

Piro, I LOVE TST so much! thank you for making it.!

As for Copy Tabs, I'm seeing so much potential for using it to make my dream of using Mindmaps for Bookrmark organization a thing.

I'm wondering if it's possible to do any of the following while using Markdown(list) format.

  1. Have a format that copies the Page title and attaches a URL Link to that page title with no other text copied.
    ---I'm guessing that's probably impossible.

or

  1. Copies the Page Title and replaces the URL txt with "Link" (or whatever) but, that "Link" contains the URL...

Ergo, I guess both of these would be having the addon do the whole URL Text vrs URL address stuff.

Thanks! :-)

Also, is there any way we can donate to you? I can't find any way on any of your websites or on Firefox addons pages. (And now that I'm thinking about it, Firefox REALLY needs a donate button on the addons pages. You devs are friggen amazing!)

@piroor
Copy link
Owner

piroor commented Feb 8, 2021

Sorry I couldn't understand what is the desired behavior. Could you describe with an example (real) URL and the expected result?

And sorry there is no donation way about my addons. I wrote my thought about that here: https://github.com/piroor/treestyletab#other-topics

@Etrit1
Copy link
Author

Etrit1 commented Feb 8, 2021 via email

@piroor
Copy link
Owner

piroor commented Feb 9, 2021

Hmm... sorry I'm still confused. Examples you wrote look to be covered with existing placeholders for me.

The HTML behind that:

Garment Workers Are Now Being Educated in Bangladesh So They Can Go to
College (Link)

It looks to be produced with a format:

%RT%%TITLE% (<a href="%URL_HTML%">Link</a>)

HTML behind that:
Garment
Workers Are Now Being Educated in Bangladesh So They Can Go to College

It looks to be produced with:

%RT%<a href="%URL_HTML%">%TITLE_HTML%</a>

Please note that you need to do two things to activate the %RT% (rich text) feature: grant an extra permission to the CST, and change Firefox's secret option dom.events.asyncClipboard.dataTransfer to true via about:config.

@Etrit1
Copy link
Author

Etrit1 commented Feb 9, 2021 via email

@piroor
Copy link
Owner

piroor commented Feb 10, 2021

%TST_INDENT()% affects only when highlighted multiple tabs construct a valid tree structure. For example, assume that you have these tabs:

  • A
    • B (child of A)
    • C (child of A)
      • D (child of C)

and assume that you use a format %TST_INDENT(-)%> %TITLE%.

When A, C and D are highlighted, they are treated as a valid tree. The copied text will be:

-> A
--> C
---> D

On the other hand, when B and C are highlighted, there is no difference between their indent level so %TST_INDENT()% will become a blank text, like:

> B
> C

When A and D are highlighted, they have gaped indent levels so they are not treated as a tree, so they are also copied as flat tabs like as:

> A
> D

Please note that you need to put a list bullet outside of the %TST_INDENT()% if you hope to the bullet always to be copied.

@Etrit1
Copy link
Author

Etrit1 commented Feb 16, 2021 via email

@piroor
Copy link
Owner

piroor commented Feb 16, 2021

Attached images looks to be missing on this issue tracker webpage and the notification mail delivered to me. Could you attach them again via the Web interface #20 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants