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

Code snippets for paste service links #2679

Open
DownDev opened this issue Jul 12, 2023 · 5 comments
Open

Code snippets for paste service links #2679

DownDev opened this issue Jul 12, 2023 · 5 comments
Assignees
Labels
a: utility Related to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils) area: features l: 1 - intermediate p: 2 - normal Normal Priority status: approved The issue has received a core developer's approval t: feature New feature or request

Comments

@DownDev
Copy link
Contributor

DownDev commented Jul 12, 2023

The new paste service offers the ability to select specific line when someone sends a link to a paste service with a selected line. In such cases, you can replace the selected line with a code block like its already done for github etc.

Althrough i still did not find a way to select more than one line

@shtlrs
Copy link
Member

shtlrs commented Jul 12, 2023

In such cases, you can replace the selected line with a code block like its already done for github etc.
I'm not sure I follow what's exactly meant here.

Are you asking whether it's possible to highlight a specific line range like in Github ?

AFAIK, pinnwand allows to highlight a single line and not a range.

Relevant issue: supakeen/pinnwand#39
Relevant PR: supakeen/pinnwand#104

@DownDev
Copy link
Contributor Author

DownDev commented Jul 12, 2023

Are you asking whether it's possible to highlight a specific line range like in Github ?

Yes, i couldnt find a way to select more than one line
Its possible now: supakeen/pinnwand#170

But still if only 1 line is possible it could send codeblock with only one line anyways.
So do we add support for code snippets for paste service now?

@HassanAbouelela HassanAbouelela added t: feature New feature or request p: 2 - normal Normal Priority a: utility Related to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils) l: 1 - intermediate status: approved The issue has received a core developer's approval area: features labels Aug 21, 2023
@HassanAbouelela
Copy link
Member

Issue approved, please leave a comment if you'd like to work on it.

@DownDev
Copy link
Contributor Author

DownDev commented Aug 21, 2023

I can work on this when supakeen/pinnwand#194 is done and merged.

@HassanAbouelela HassanAbouelela added the s: stalled Something is blocking further progress label Aug 21, 2023
@wookie184 wookie184 added up for grabs Available for anyone to work on and removed s: stalled Something is blocking further progress labels Apr 14, 2024
@ChrisLovering
Copy link
Member

We have now forked pinnwand and pushed the latest changes to paste.pythondiscord.com

https://paste.pythondiscord.com/api/v1/paste/{id} can be used to get the paste data, and lexer for the code block.

EG https://paste.pythondiscord.com/api/v1/paste/NCXY2ZKJ2TT2E6RBEZHMTJ52VQ

@Senjan21 Senjan21 removed the up for grabs Available for anyone to work on label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: utility Related to utility commands: (bot, eval, extensions, jams, reminders, snekbox, utils) area: features l: 1 - intermediate p: 2 - normal Normal Priority status: approved The issue has received a core developer's approval t: feature New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants