Skip to content

Added linking & description to Cipheys pywhat#645

Merged
bee-san merged 5 commits intomasterfrom
bee-links
Jun 6, 2021
Merged

Added linking & description to Cipheys pywhat#645
bee-san merged 5 commits intomasterfrom
bee-links

Conversation

@bee-san
Copy link
Copy Markdown
Owner

@bee-san bee-san commented May 23, 2021

  • Descriptions only appear if the regex has it. We only have 2 regex with descriptions.
  • Descriptions with links are embedded as hyperlinks, this doesn't work on CMD but tbh microsoft is slowly moving to Windows Terminal and who really cares if the link works.
  • Descriptions are "naturalised" so they have a lowercase first letter and end with a full stop.
  • Regex with URLs are shown too, they use both Rich hyperlinking and just printing the URL.
    These regex are rare. The idea is that if someone comes across lat / long coords, their next stop is Google Maps. We can take them directly there, eliminating the middleman and improving user experience.

Unfortunately due to iface I can only show links at the checkers returned level, not near the plaintext :-(]

image
image

Note: In the next version of pywhat the wikipedia link is turned into a hyperlink, so it's not as ugly.

PS: I don't know why the 2nd link isn't coming up as blue, but when we move to hyperlinks in bee-san/pyWhat#32 it should be okay :-)

bee-san added 3 commits May 23, 2021 10:45
* Descriptions only appear if the regex has it. We only have 2 regex with descriptions.
* Descriptions with links are embedded as hyperlinks, this doesn't work on CMD but tbh microsoft is slowly moving to Windows Terminal and who really cares if the link works.
* Descriptions are "naturalised" so they have a lowercase first letter and end with a full stop.
* Regex with URLs are shown too, they use both Rich hyperlinking and just printing the URL.
These regex are rare. The idea is that if someone comes across lat / long coords, their next stop is Google Maps. We can take them directly there, eliminating the middleman and improving user experience.

Unforunately due to iface I can only show links at the checkers returned level, not near the plaintext :-(
@bee-san
Copy link
Copy Markdown
Owner Author

bee-san commented May 24, 2021

#650 solves the issues raised in the body of the PR, should be okay now 👍🏻

@bee-san
Copy link
Copy Markdown
Owner Author

bee-san commented May 24, 2021

^^ Test greppable mode for this btw

@bee-san
Copy link
Copy Markdown
Owner Author

bee-san commented Jun 6, 2021

image
image
The SSN, I believe, is an issue with my local PyWhat still having descriptions for that

@bee-san bee-san merged commit c802779 into master Jun 6, 2021
@bee-san bee-san deleted the bee-links branch June 6, 2021 08:58
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.

1 participant