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

Recommend paste service for large text/codeblocks #294

Open
sebix opened this issue Nov 3, 2018 · 4 comments
Open

Recommend paste service for large text/codeblocks #294

sebix opened this issue Nov 3, 2018 · 4 comments

Comments

@sebix
Copy link
Member

sebix commented Nov 3, 2018

See https://forum.ubuntuusers.de/topic/vergroessern-button-bei-eingefuegten-codeblock/#post-9021555

If a long text/large codeblock is detected we can show a hint to use a paste service instead.

@chris34
Copy link
Member

chris34 commented Nov 3, 2018

IMO this could even go further to open an paste automatically, if many lines are pasted. Then instead of the pasted content, a simple link is inserted in the post.

There exists a draft for JS: See https://developer.mozilla.org/en-US/docs/Web/Events/paste#Modify_the_clipboard_content_before_pasting for an example. Browser support seems to be ok on the first look, but has to be evaluated in more detail https://caniuse.com/#feat=clipboard

@sebix
Copy link
Member Author

sebix commented Nov 4, 2018

A very delicate matter: Reading/Hijacking the clipboard (and - optionally - pasting it publicly) can be considered rude.

The issue is not priority at the moment and I wouldn't invest a lot of time into solving it at the moment.

@chris34 chris34 added this to the Backlog milestone Nov 4, 2018
@chris34
Copy link
Member

chris34 commented Nov 4, 2018

It could be also interpreted rude to put 20000 lines of log into a forum post… As an compromise, it could be possible to shown an dialogue, if a paste should be created automagically.

And, yeah, i personally would not do it now (thus, i put it in the backlog). Nevertheless, some info or inspiration if someone wants to pick it, should be ok. :)

@sebix
Copy link
Member Author

sebix commented Jan 23, 2019

Another indicator we can use is the ratio N('\n')/N('\n\n') or the other way round.

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

No branches or pull requests

2 participants