Open Bug 47267 Opened 26 years ago Updated 4 years ago

Snip command (toolbar button)

Categories

(MailNews Core :: Composition, enhancement, P3)

enhancement

Tracking

(Not tracked)

Future

People

(Reporter: BenB, Unassigned)

References

(Blocks 1 open bug)

Details

Background: Users should cut quotes to the minimum. Sometimes, it is good to indicate the snippage (especially if inside a phrase) by inserting "[...]" instead of the original text. ("[snip]" is sometimes used as well.) Doing this for all deletions in quotes is IMO not desireable. In most cases, I don't add any indicator, and it would just annoy me. Request: Provide a button on the (grey) toolbar, which deletes the current selection and - inserts " [...] " in the quote, if the current selection starts or ends in the middle of text* - breaks the quote and inserts "[...]" (outside of all quotes) otherwise *block-level tags and <br> are delimiters of "text". Implementation: Should be easy - some simple chrome and a new rule -, if you know the editor (which isn't teh case for me).
Cool. Not just a toolbar button, but also an item in the `Edit' menu, and a keyboard shortcut (probably Ctrl+Delete, because it's a variant of Delete). You will want a pref (with UI!) for what the snip text should be. Some people like `>...', some `[...]', some `(( snip ))', some whatever their language's translation of `[snip]' is, etc. In the plaintext composer, if the snipped text ends somewhere other than the end of a line, the rest of the line (the unsnipped part) should be padded with spaces so that it retains its original alignment.
Summary: Snip-button → Snip command (with toolbar button)
I don't think we can do this due to real estate limitations in the toolbar. I'm also not sure how many folks would use it, given that they've never seen anything like that in our toolbars before. assigning to brade, cc'ing various folks who know more about ui than I.
Assignee: jfrancis → brade
moving to future, will evaluate for future release
Target Milestone: --- → Future
> In the plaintext composer, if the snipped text ends somewhere other than the > end of a line, the rest of the line (the unsnipped part) should be padded with > spaces so that it retains its original alignment. What's the point of that? Anyway, I don't like it. If you really want it, make it a pref.
Status: NEW → ASSIGNED
Definitely sounds like a mail-only feature, and I also don't think it needs to be a toolbar button.
It's useless without a toolbar button, at least for me.
Fun idea! I'd use it a lot if it were a toolbar button (in mail, not in composer), and I agree with Ben that I wouldn't want it to pad with spaces.
reassign to beppe for further triage/consideration since I'll be going on maternity leave soon.
Assignee: brade → beppe
Status: ASSIGNED → NEW
-->brade
Assignee: beppe → brade
removing myself from the cc list
File a separate bug for toolbar button and set it to depend on this.
Summary: Snip command (with toolbar button) → Snip command
Blocks: 158709
Blocks: 147854
The button is inherent to my suggestion.
Summary: Snip command → Snip command (with toolbar button)
One argument for separating the two: implementing the backend (and making a command that could be bound to a key) would be easy (in fact, you could probably implement it in a few lines of JS, using InsertText, and bind that to a key with no internal mozilla changes), but persuading the UE powers-that-be to expose a new toolbar and make a new image for it is a completely different task and that bug would be assigned to a UE person. If this bug is the latter task and not the former, it should probably be assigned to a mail UE person.
Depends on: 171744
OK. I filed a bug about the backend, because my suggestion was really about the exposure and ease of use of the toolbar button. The toolbar button is IMO good, because - it exposes the Snip command to new users, which should learn to cut quotes. - selecting the part to be snipped is often a mouse action. I makes sense to make the snipping a mouse action as well. Reassigning to jglick.
Assignee: brade → jglick
No longer blocks: 147854, 158709
Summary: Snip command (with toolbar button) → Snip command (toolbar button)
Jennifer, if you decide to expose this, don't worry about the backend dependency: I can whip up something pretty quickly if mail wants this feature (I won't make it a priority unless the UI is going to be exposed).
Wow, what a cool idea. Ben et. al., when you say you only want it in mail, do you mean in Mail/News, but not in Composer; or in Mail, but not in News? (I'd want it in Mail and News, but not in Composer.) I would a) make &Snip part of the context menu b) part of the edit menu. Personally, I don't care for the toolbar button, but that is a non-issue with customizable toolbars, even if it's on by default. I disagree that there's need for UI for coming up with the various kinds of replacement text. We should just pick one that works well, e.g., "[snip]". This kind of thing is easily made into a net-wide convention, and the actual text doesn't matter at all. I like the idea of somehow aligning text to look like the original, but I'm not sure how I feel about mpt's suggestion about just padding with spaces. This suggests itself for differentiating the possible use cases (between paragraphs, in the middle of a paragraph, combining parts of two paragraphs, etc.) and possibly paper-prototyping [1] how the replacement ([snip]) text looks in those cases. [1] http://www-106.ibm.com/developerworks/library/us-paper/?dwzone=usability
Product: MailNews → Core
Blocks: 323166
Assignee: jglick → nobody
QA Contact: lchiang → composition
Product: Core → MailNews Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.