Skip to content

Allows to limit link to substring of issueLinkTextFormat #28

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

Merged
merged 16 commits into from
May 18, 2025

Conversation

baflo
Copy link
Contributor

@baflo baflo commented Mar 19, 2025

The full text of will be a link by default. If you want to limit it to substring(s), you can surround them with brackets, e.g [%key%] %summary% will only make %key% a link.

@stantler
Copy link
Contributor

Hey, @baflo right now I have this issue link (%priority%) \[%key%\] %summary% and after your change actual link will be only in brackets. And I don't want it

Maybe it's better to introduce "expert" option, where user can input whole string in MD format and introduce %link%? For example for my link: [\(%priority%\) \[%key%\] %summary%](%link%) will be placed as is in MD mode and respectfully for OrgMode
@baflo @adyscorpius what you think?

@baflo
Copy link
Contributor Author

baflo commented Mar 20, 2025

@stantler I like your idea, too. Nevertheless, your link format seems to work for me 🤔

It would create literally this: [(Blocker) \[SCH-2105\] Test Summary](https://jira.lvm.de/jira/browse/SCH-2105)

@baflo
Copy link
Contributor Author

baflo commented Mar 26, 2025

@stantler @adyscorpius
I changed it to the proposition of formatExpertMode. This seems to be more stable and easier to use :)

@stantler
Copy link
Contributor

Looks great and much better to understand. Thank you!

@adyscorpius adyscorpius self-assigned this May 18, 2025
@adyscorpius adyscorpius merged commit 3378c7c into adyscorpius:master May 18, 2025
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

Successfully merging this pull request may close these issues.

3 participants