Wedge

Public area => Features => The Pub => Features: Posts & Topics => Topic started by: Nao on May 11th, 2011, 08:24 AM

Title: Automatic Quote splitter
Post by: Nao on May 11th, 2011, 08:24 AM
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]

Title: Re: Automatic Quote splitter
Post by: Lex on May 11th, 2011, 10:43 AM
Cool!  :cool:
Title: Re: Automatic Quote splitter
Post by: Arantor on May 11th, 2011, 10:44 AM
For the power-quoters who reply paragraph by paragraph, this is actually rather epic.
Title: Re: Automatic Quote splitter
Post by: live627 on May 11th, 2011, 10:47 AM
This will be awesome for flame wars. Or trolls. Or people who love to post their highway and their truck.
Title: Re: Automatic Quote splitter
Post by: Arantor on May 11th, 2011, 10:51 AM
And for genuine discussions too. I'm damned if I'm going to let fear of idiots using things prevent us from building awesome things.
Title: Re: Automatic Quote splitter
Post by: dorje on May 11th, 2011, 10:52 AM
Very cool feature! :yahoo: :cool:
Title: Re: Automatic Quote splitter
Post by: live627 on May 11th, 2011, 10:58 AM
Quote from Arantor on May 11th, 2011, 10:51 AM
And for genuine discussions too
That's where the highway comes in. I'm goofy late at night :D
Title: Re: Automatic Quote splitter
Post by: Nao on May 11th, 2011, 11:16 AM
I think we're basically giving weapons to power flamers users in two ways:
- less work done to reply point by point,
- their antagonists can no longer answer a two-liner and say it's because multi-quoting is complicated to do. They can STILL do it, but they won't be able to argue that it's because quoting is hard.

Safe debates for all!
Title: Re: Automatic Quote splitter
Post by: DoctorMalboro on May 11th, 2011, 02:44 PM
Power trolling!

Awesome job in this one ;)
Title: Re: Automatic Quote splitter
Post by: Nao on May 11th, 2011, 03:33 PM
And it was fun to develop! Just took a couple of days to implement and debug...
Title: Re: Automatic Quote splitter
Post by: and on May 11th, 2011, 09:12 PM
hmm ...
impressive
I think there is nothing to invent

Nao, look at the mod Digger dQuote  http://custom.simplemachines.org/mods/index.php?mod=2086


 in attachments  latest with a modal window

maybe you're interested in, installs, try working as a quote

Title: Re: Automatic Quote splitter
Post by: Arantor on May 11th, 2011, 09:15 PM
What Nao describes is MUCH faster.

With that mod, if you want to reply to 3 points of a big post, you have to copy/paste the different parts. With this, you hit the quote button once, then just press Enter (nice and natural!) where you want to reply, to break a big quote into two parts.
Title: Re: Automatic Quote splitter
Post by: and on May 11th, 2011, 09:21 PM
but modes Digger enables quote several times more messages of different authors
quote accumulate in the  Quick Reply
Title: Re: Automatic Quote splitter
Post by: Arantor on May 11th, 2011, 10:26 PM
/megives up trying to point out that the other solution is really not that good in actual practice.
:edit: I should remember that this is being written for what we want, and not being written for anyone else, first and foremost.

I, personally, really get fed up with people trying to tell me how I should build things in my own personal spare time.

:edit: :edit: Read http://innovatenotimitate.com/?p=201 and it refers to someone on this very forum a few weeks ago.
Title: Re: Automatic Quote splitter
Post by: TE on May 11th, 2011, 10:46 PM
Nao, you made my day  :cool: great idea und quite useful feature.
Title: Re: Automatic Quote splitter
Post by: and on May 11th, 2011, 11:06 PM
Quote from Arantor on May 11th, 2011, 10:26 PM
:edit: :edit: Read http://innovatenotimitate.com/?p=201 and it refers to someone on this very forum a few weeks ago.
t's about texasman1979 ?

I'm not so :whistle: :niark:


I'm not saying that you do
and not impose their views
just pay attention, and suddenly you'd be interested? And you will gather some new idea for a wedge
Title: Re: Automatic Quote splitter
Post by: Dismal Shadow on May 11th, 2011, 11:13 PM
I am just glad he's left/gone so I wouldn't abuse the ban stick.  :niark:
Title: Re: Automatic Quote splitter
Post by: Nao on May 12th, 2011, 01:26 AM
@TE> :) (So you didn't read the feature list when I posted it in private last month, did you? :P)
Quote from Makar on May 11th, 2011, 09:12 PM
hmm ...
impressive
I think there is nothing to invent
What you're saying is very sad. Go to Pete's blog and don't come back until you've read it all. :niark:
Quote
Nao, look at the mod Digger dQuote  http://custom.simplemachines.org/mods/index.php?mod=2086
That has nothing, absolutely nothing to do with my implementation.
Posted: May 12th, 2011, 01:25 AM
Quote from Makar on May 11th, 2011, 09:21 PM
but modes Digger enables quote several times more messages of different authors
Wedge has Double Merge. Enough said.
Title: Re: Automatic Quote splitter
Post by: Arantor on May 12th, 2011, 10:42 AM
I'm just peeved that someone is telling me that we should implement feature x when we have feature y, because they do something tangentially related and that without looking at feature x, you're telling me that feature y is automatically better.
Title: Re: Automatic Quote splitter
Post by: Nao on May 12th, 2011, 10:53 AM
Yeah but tangentially is even too 'close' for me... It's really loosely related, in that both the features have 'quote' in their name. :P
Title: Re: Automatic Quote splitter
Post by: Nori on May 12th, 2011, 09:02 PM
This sounds like a great feature, thanks for taking the time to work on it!  :)
Title: Re: Automatic Quote splitter
Post by: Nao on May 12th, 2011, 09:36 PM
:)
Title: Re: Automatic Quote splitter
Post by: dazed on May 12th, 2011, 10:49 PM
+100 Outstanding feature as I do a whole lot of that kind of replying.  :eheh:

Poor notepad won't get used nearly as much.  :o
Title: Re: Automatic Quote splitter
Post by: Nao on May 12th, 2011, 11:10 PM
You used Notepad? Hmm that's an interesting concept but...
Myself, I always use complex copy & pasting to do it quickly and efficiently. It's always the same series of keys to push: ctrl+end, ctrl+shift+left arrow until I reach the beginning of the quote closer, shift+ctrl+end, shift+del, ctrl+home, then everytime I need to split, I do shift+insert, return, return, shift+insert, right arrow, delete, up arrow, type reply.

So it's basically a time saver to have the automatic quote splitter but I'm so used to doing this, I'm the one considering offering an option to turn it off. Well, I'll see how I deal with the simplicity once Wedge.org runs on Wedge. :lol:
Title: Re: Automatic Quote splitter
Post by: and on May 12th, 2011, 11:58 PM
Quote from Nao/Gilles on May 12th, 2011, 11:10 PM
So it's basically a time saver to have the automatic quote splitter but I'm so used to doing this, I'm the one considering offering an option to turn it off.
This is about me ? I had ever offered.
Title: Re: Automatic Quote splitter
Post by: Arantor on May 13th, 2011, 12:00 AM
No, it's not. Nao has talked about this before.
Title: Re: Automatic Quote splitter
Post by: and on May 13th, 2011, 12:15 AM
A A A. . . . Clear:) I like that already used, select some text and immediately write a comment. Well will have to get used to and do more movements. Quote all, and then cleaned of superfluous phrases. : (
Title: Re: Automatic Quote splitter
Post by: Arantor on May 13th, 2011, 12:36 AM
-sigh- Except that honestly, THIS IS LESS WORK.

You quote the whole message, find the bit you want to reply to, press enter and START REPLYING. No mess, no hassle, no ambiguity and less chance of things being taken out of context.

The only reason you keep pushing your methodology is because you haven't tried this one.

You have to drag+select, click to insert a quote, enter to start a new line then start replying. This... you press ONE BUTTON FOR THE ENTIRE MESSAGE, none of this drag+select+insert for every single paragraph of a big message, which is what it was designed for.

This sort of thinking: that feature x is better than feature y because feature x is what you're used to and expect to have without considering what feature y can do is the main reason I hate developing for other people. I don't like it that people point to another system and say "I want that" without understanding if it even is the best solution to their problem, when invariably it's a solution to someone ELSE's problem, adapted to your use, without being the actual solution to YOUR problem.

You see, what Nao has created is a solution to HIS and MY problem, having a big ol' message and wanting to reply to it paragraph by paragraph. So you press quote once, find the bit you want to reply to, then JUST REPLY. No hassle. It wasn't built for you, but then again neither was the method you keep pointing out as your holy grail. Fortunately for my sanity, our holy grail is not your holy grail, and that we build it how we see fit, not because other people tell us how we should build it. It just so happens that what we build happens to be mostly in sync with what other people want.

We have no qualms about leading and dictating how it's going to go forward. We take into account what people want but ultimately we are building something that we will use ourselves on our production sites, and that is first and foremost to us.

The pretty URLs stuff? Nao wanted that for Noisen. The blogging stuff? Nao wanted it for Noisen, I want it for InI. The quote splitter? Nao wants that for here, amongst other things. (This is how it works: we build it with our own needs in mind, and maybe going a step further, but ultimately to what we want it to do, and not what people keep trying to tell us we should do because somehow someone else's solution to a problem is better... it usually isn't. If it was, we'd have adopted it long ago. We didn't... I wonder why that is.)
Posted: May 13th, 2011, 12:27 AM

I should add, in my previous career, I made a lot of money for myself and my company because I was able to find solutions that solved the problems at hand, rather than solving the symptoms.

Most of the time, the solutions people propose solve the symptoms of a problem, not the actual problem.

Classic example: hide post. The idea is to encourage community contribution, except all it does is encourage people to post one line answers. So you hide content until someone replies, they reply in order to see the content. Yes, you solve the problem of a lack of participation, but now you have a new problem of crap participation. This might solve your problem if you have a very narrow definition but in reality you've traded one thing for another.

Honestly... your solution does that. You trade pressing Ctrl-C then Ctrl-V for pressing a single button with the mouse, hardly an earth shattering change. You're not changing the fact that you're still doing most of the work, rather than letting the computer do some of it for you, and in reality you're not saving a lot of time, because in the time you've moved to press the relevant button, you could just as easily have already pressed Ctrl-C and Ctrl-V, like I normally do with such things. Thus you're altering the symptoms, not solving a problem, and at worst you're pretending that you're making your life better, when you're still doing all the work.
Posted: May 13th, 2011, 12:32 AM

And some people say I have no imagination... honestly, it is this ability to get to the heart of an actual problem that led to me being able to stare down the face of a senior vice president of a former multi-national company, and tell him that he would get his solution implemented, and I quote, "over my dead body". Because, as I later explained and went on to graphically demonstrate, his solution traded one problem for another three, very expensive, very complex to implement and support problems, and even then it didn't really solve the problem in the first place, that of system integration.

And no, that argument was not the reason I left; I left a few months (and many grey hairs) later once the company started to implode, because their disjointed, broken thinking was rife throughout the entire company, and I left 3 months before they collapsed.
Title: Re: Automatic Quote splitter
Post by: Nao on May 13th, 2011, 12:44 AM
Pete, don't get extra grey hair over Makar ;)
You'll have to live with the fact that he's obviously not very skilled at English and he just doesn't get it. Once he sees Wedge in action, he'll probably get it. Or not. Either way, don't sweat it! I'm sure he doesn't intend to be a PITA. At least not consciously ;)
Title: Re: Automatic Quote splitter
Post by: YogiBear on May 13th, 2011, 01:21 AM
This is a great idea.  :)
Title: Re: Automatic Quote splitter
Post by: dazed on May 13th, 2011, 03:55 PM
Quote from Nao/Gilles on May 12th, 2011, 11:10 PM
You used Notepad? Hmm that's an interesting concept but...
Myself, I always use complex copy & pasting to do it quickly and efficiently. It's always the same series of keys to push: ctrl+end, ctrl+shift+left arrow until I reach the beginning of the quote closer, shift+ctrl+end, shift+del, ctrl+home, then everytime I need to split, I do shift+insert, return, return, shift+insert, right arrow, delete, up arrow, type reply.

So it's basically a time saver to have the automatic quote splitter but I'm so used to doing this, I'm the one considering offering an option to turn it off. Well, I'll see how I deal with the simplicity once Wedge.org runs on Wedge. :lol:
Since I lost 80% of the use to my left hand I found myself taking much longer to type up anything. So copying a post to notepad allows me to edit at my speed.

But I always copied the "quote=author link=msg" yadda yadda, and pasted it above the selected paragraphs I wanted to quote.

Ctrl C and Ctrl V are used a lot, as they are easy for my left hand to reach.

That said, did I say how much I really like your idea though? Probably not, I'm not that much of a chatterbox any longer.
Title: Re: Automatic Quote splitter
Post by: Nao on May 13th, 2011, 04:08 PM
Well, overall I'm very appreciate of the positive feedback so far :)

I can't wait till we go public and you can all use this!
Title: Re: Automatic Quote splitter
Post by: Mc Fly on May 26th, 2011, 08:25 PM
Like it! Very good job!  :cool:
Title: Re: Automatic Quote splitter
Post by: Nao on May 26th, 2011, 10:27 PM
Thanks :)
Title: Re: Automatic Quote splitter
Post by: Dismal Shadow on June 5th, 2011, 08:00 PM
http://www.simplemachines.org/community/index.php?topic=436571.0

 :whistle:
Title: Re: Automatic Quote splitter
Post by: Arantor on June 5th, 2011, 08:07 PM
This is what Makar was talking about earlier in this thread.
Title: Re: Automatic Quote splitter
Post by: Powerbob on June 6th, 2011, 09:37 AM
This is what is missing in SMF :eheh:
Title: Re: Automatic Quote splitter
Post by: Arantor on June 6th, 2011, 09:38 AM
Quote from Powerbob on June 6th, 2011, 09:37 AM
This is what is missing in SMF :eheh:
Which? This thread is currently talking about two completely different things, and the one that's implemented is IMO better...
Title: Re: Automatic Quote splitter
Post by: and on June 6th, 2011, 10:49 PM
Quote(http://www.youtube.com/watch?v=hFGOgtEJ36I#)
 :whistle:
Title: Re: Automatic Quote splitter
Post by: Arantor on June 6th, 2011, 10:55 PM
Yes, for the umpteenth time, I UNDERSTAND WHAT YOU'RE GETTING AT. I STILL DISAGREE.
Title: Re: Automatic Quote splitter
Post by: and on June 6th, 2011, 11:10 PM
OK
surrender :angel:   [1]   :whistle:



мир труд май
водка дружба  :lol:
 1. yet to try your version in action
Title: Re: Automatic Quote splitter
Post by: Roz on June 22nd, 2011, 08:16 PM
Just wanted to say that this is an amazing feature that will surely make me save alot of time. Awesome guys.
Title: Re: Automatic Quote splitter
Post by: Drunken Clam on June 23rd, 2011, 07:21 AM
Wow!

I can't begin to describe the awesomeness of this feature!!  :cool:
Title: Re: Automatic Quote splitter
Post by: Dragooon on March 17th, 2013, 03:18 PM
This is still supposed to work right? I can't get my quotes to automatically split on enter.
Title: Re: Automatic Quote splitter
Post by: Arantor on March 17th, 2013, 03:20 PM
It's shift-enter.
Title: Re: Automatic Quote splitter
Post by: Dragooon on March 17th, 2013, 03:22 PM
Quote from Arantor on March 17th, 2013, 03:20 PM
It's
Oh
Quote from Arantor on March 17th, 2013, 03:20 PM
shift-enter.
okay

I'm stupid :P
Title: Re: Automatic Quote splitter
Post by: 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.
Title: Re: Automatic Quote splitter
Post by: Dragooon 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
Title: Re: Automatic Quote splitter
Post by: Nao 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..?
Title: Re: Automatic Quote splitter
Post by: live627 on March 17th, 2013, 10:01 PM
Quote from Arantor on March 17th, 2013, 03:23 PM
Full reply is a wonderful thing :P

Maybe we need this in the quick reply too.
Huh? It already works in Quick Reply.
Title: Re: Automatic Quote splitter
Post by: Arantor on March 17th, 2013, 10:18 PM
Yes, but on full reply it tells you the shortcuts ;)
Title: Re: Automatic Quote splitter
Post by: live627 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
Title: Re: Automatic Quote splitter
Post by: Arantor 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.
Title: Re: Automatic Quote splitter
Post by: Dragooon 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.
Title: Re: Automatic Quote splitter
Post by: Nao 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
Title: Re: Automatic Quote splitter
Post by: Dragooon 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?
Title: Re: Automatic Quote splitter
Post by: Nao 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:
Title: Re: Automatic Quote splitter
Post by: Arantor 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.
Title: Re: Automatic Quote splitter
Post by: Nao 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..?
Title: Re: Automatic Quote splitter
Post by: Arantor 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.
Title: Re: Automatic Quote splitter
Post by: 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..?
Title: Re: Automatic Quote splitter
Post by: Dragooon 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