Automatic Quote splitter

Nao

  • Dadman with a boy
  • Posts: 16,077
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 #61, on March 27th, 2013, 10:46 AM »
Quote from Nao 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..?
Yeah, I'd like that. Smart splits by default