Skip to content

Meta: Linkify RG’s own features on this repo via rgh-linkify-features - #4009

Merged
fregante merged 5 commits into
mainfrom
linkify-features
Feb 23, 2021
Merged

fregante merged 5 commits into
mainfrom
linkify-features

Conversation

@fregante

@fregante fregante commented Feb 22, 2021 •

Copy link
Copy Markdown
Member

Closes #3980

This feature is in 2 parts:

  • linkifies code in comments anywhere via rgh-linkify-features
  • linkifies code in conversation titles via format-conversation-titles

Test

Screenshots

Screen Shot

Screen Shot

TODO

@fregante fregante added the meta Related to Refined GitHub itself label Feb 22, 2021
@fregante fregante changed the title Linkify our features in comments and titles Add rgh-linkify-features feature Feb 22, 2021
@fregante fregante changed the title Add rgh-linkify-features feature Add rgh-linkify-features feature and more Feb 22, 2021
@fregante

fregante commented Feb 22, 2021 •

Copy link
Copy Markdown
Member Author

the title link appears to be lost after updating the title or posting a new comment

This is because of a selector in parse-backticks.tsx. That other feature runs, overriding format-conversation-titles’s custom linkifier. I added a note to #4008

@fregante
fregante marked this pull request as ready for review February 22, 2021 01:06
@fregante fregante changed the title Add rgh-linkify-features feature and more Meta: Linkify our own features on this repo via rgh-linkify-features Feb 22, 2021
@fregante
fregante marked this pull request as draft February 22, 2021 01:07
@fregante fregante changed the title Meta: Linkify our own features on this repo via rgh-linkify-features Meta: Linkify RG’s own features on this repo via rgh-linkify-features Feb 22, 2021
@fregante
fregante marked this pull request as ready for review February 23, 2021 00:24
@fregante

Copy link
Copy Markdown
Member Author

Should be good to go

@yakov116

yakov116 commented Feb 23, 2021 •

Copy link
Copy Markdown
Member

the title link appears to be lost after updating the title or posting a new comment

Why not use observeElement?

@fregante

fregante commented Feb 23, 2021 •

Copy link
Copy Markdown
Member Author

Why not use observeElement?

We already use observeElement, but then parse-backticks overrides it, observeElement runs again, finds a code and assumes it already run.

@yakov116

Copy link
Copy Markdown
Member

We already use observeElement, but then parse-backticks overrides it, observeElement runs again, finds a code and assumes it already run.

Gotchya

@yakov116 yakov116 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested working great!

@fregante
fregante merged commit 64366c3 into main Feb 23, 2021
@fregante
fregante deleted the linkify-features branch February 23, 2021 03:53
@yakov116

Copy link
Copy Markdown
Member

@fregante this is awesome! I already used it 3 times today!
Thanks

@kidonng

kidonng commented Nov 1, 2021

Copy link
Copy Markdown
Member

ONE OF THE BEST REFINED GITHUB FEATURES

(sorry for the noise, I just can't hold it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

Linkify our features in comments and titles

3 participants