Automatic Quote splitter

Nao

  • Dadman with a boy
  • Posts: 16,079
Automatic Quote splitter
« on May 11th, 2011, 08:24 AM »Last edited on May 24th, 2013, 03:05 PM
Feature: Automatic Quote splitter
Developer: Nao
Target: users
Status: 100% (complete.)
Comment:

Another simple feature, but it took me ages to fine-tune, mostly because as far as I know, Wedge is the first ever forum system to do this.

When you're replying a post by someone and you want to break up their quoted text into several parts for convenience, you usually have to do some convoluted copying and pasting. Not so with Wedge.

Just put your cursor wherever you want to split the quote, and... press the Shift + Enter key combination (or Ctrl + Enter, your preference.)
That's it, you're done. The quote gets split automatically. Nested tags are taken into account, so you can even split a quoted quote, or right in the middle of a code tag, anything like that which used to be a nightmare before for power users...

It's so easy now, I may have to add a setting to disable this, just in case you miss being upset with all of the manual quote splitting. :eheh:

Let's take this example here, with nested tags:


Quote from Nao on March 3rd, 2011, 03:56 PM
Seriously!
Code: [Select]
Hello world

[quote author=Nao link=msg=19 date=1299164218]
Seriously!
[code]Hello
Click here and press Shift+Enter world[/code][/quote]


After pressing Shift+Enter, this becomes:


Quote from Nao on March 3rd, 2011, 03:56 PM
Seriously!
Code: [Select]
Hello
Quote from Nao on March 3rd, 2011, 03:56 PM
Code: [Select]
world

[quote author=Nao link=msg=19 date=1299164218]
Seriously!
[code]Hello [/code][/quote]

Cursor is here now.

[quote author=Nao link=msg=19 date=1299164218][code] world[/code][/quote]


Re: Automatic Quote splitter
« Reply #46, on March 17th, 2013, 03:23 PM »
Quote
shortcuts: hit Shift + Enter to use smart tag closer, Ctrl + B (bold), Ctrl + I (italics), Ctrl + U (underline), Alt + D (save draft), Alt + P (preview) or Alt + S to submit.
Full reply is a wonderful thing :P

Maybe we need this in the quick reply too.

Re: Automatic Quote splitter
« Reply #47, on March 17th, 2013, 03:24 PM »
Quote from Arantor on March 17th, 2013, 03:23 PM
Quote
shortcuts: hit Shift + Enter to use smart tag closer, Ctrl + B (bold), Ctrl + I (italics), Ctrl + U (underline), Alt + D (save draft), Alt + P (preview) or Alt + S to submit.
Full reply is a wonderful thing :P

Maybe we need this in the quick reply too.
You actually think I read all that? :P

Re: Automatic Quote splitter
« Reply #48, on March 17th, 2013, 04:56 PM »
To be specific, ctrl+enter also works, even if not documented. I implemented both, in case a browser would want to hijack one of the key combinations.

Also, I use the feature from time to time, as I wrote it for myself after all, but I realized I don't do it all the time, because the tag splitter will also copy attributes, meaning that it behaves as if you're quoting another post entirely. It's tempting to hack preparsecode into removing quote parameters if an earlier quote is found to have the same...!

I don't know if it makes any sense..?



Re: Automatic Quote splitter
« Reply #51, on March 17th, 2013, 10:35 PM »
And Qr doesn't say the shortcut for posting , either. :P

btw, drafts aren't saving in qr, nor do I see the buttons to manually save a draft.
Posted: March 17th, 2013, 10:34 PM

nor in full reply

Re: Automatic Quote splitter
« Reply #52, on March 18th, 2013, 12:01 AM »
Saving for me just fine? I need to sit and look at the permissions though, something is funky with them (more than usual)
Posted: March 17th, 2013, 11:55 PM

In other news, permissions requires a crusade to fix the horrible UI.

Re: Automatic Quote splitter
« Reply #53, on March 21st, 2013, 11:10 AM »
Thinking about it, is it possible to trigger it directly on enter? On mobile devices it doesn't work since I can't do a shift or control.

Re: Automatic Quote splitter
« Reply #54, on March 21st, 2013, 11:53 AM »
Ah, bugger... That's a good suggestion. I just don't like having this kind of feature forced on users, they might not understand what is happening.. :-/
Touch[1]-only tweak, to begin with... At least that's what I'd do.

@Arantor, what's up with the perms then..?
 1. Rather than mobile

Re: Automatic Quote splitter
« Reply #55, on March 21st, 2013, 11:56 AM »
@Nao: Perhaps an option?

EDIT: Okay, I can't mention people in this board or are my plugins really crappy?

Re: Automatic Quote splitter
« Reply #56, on March 21st, 2013, 04:53 PM »
@Dragooon> Hmm, not an option. Okay I've enabled it on wedge.org... You may test on your mobile device if you want ;)

@Dragooon: maybe the colon is an issue..? Nope... Then your plugins are crappy :lol:

Re: Automatic Quote splitter
« Reply #57, on March 21st, 2013, 05:13 PM »
There are more draft permissions than there should be, and there's a bug with the reporting area where it doesn't have all the proper labels for everything.

Re: Automatic Quote splitter
« Reply #58, on March 24th, 2013, 05:36 PM »
Oh bugger, I forgot there was a dedicated topic for that... Well, I said stuff about quote splitting in the New Revs Public Comments topic ;)

As for Pete's last post here -- okay, I don't have the faintest idea what you're talking about, but I suspect it's not too important..?

Re: Automatic Quote splitter
« Reply #59, on March 24th, 2013, 05:49 PM »
It's not. It's more that I hate the permissions and reports UIs with a vengeance and am working on doing something "Magical and Revolutionary" (TM in the post) with them. I'll share when I have something a bit more on them.

Re: Automatic Quote splitter
« Reply #60, on March 27th, 2013, 10:44 AM »
So, I'm committing this in my Nth batch of minor stuff.
I still haven't made a decision for non-touch devices, though. Should we enable smart splits by default, and disable them with Shift/Ctrl+Enter (and reflect that in the shortcuts), or leave it as it is right now..?