Community
Participate
Working Groups
Build: Callisto RC3 A pet peeve of mine is editors that automatically insert characters that I did not type. One such "feature" is the auto-completion of closing tags in the HTML editor. If I type <b> followed by </ , it automatically inserts the characters "b>" The problem is that I don't always read as I'm typing, so I end up with "</b>b>". I have turned off the HTML Source > "Automatically make suggestions" preference, but it still insists on inserting characters. Please provide a preference to turn this off.
Another option is to skip over retyped auto-inserted characters. For example the Java editor automatically closes strings and braces, but if I type the closing quote or brace myself, it just overwrites it. I.e., if I type the entire sequence myself, the result should exactly match what I typed.
Currently, auto-insertion is tied to the "Smart Insert mode" which you can turn on and off via the menu option (in the Edit menu) This means, you can toggle auto-insertion on/off per editor, but you have to specifically turn it off every time you open the editor. I can look into turning this into a preference.
It'd be nice if we had preferences for every auto-insert option like Java editor does, but at this point, I'd be happy if we just had 1 preference to turn on/off auto-insert. Once the preference is added, basically anywhere where we're currently checking for if the "Smart insert mode" is on, we should also check if the auto-insert preference is on or off.
*** Bug 218283 has been marked as a duplicate of this bug. ***
Added dependency on bug 222077. That enhancement contains code that provides additional smart-insert functionality that should have typing preferences taken into account.
Created attachment 92080 [details] Patch to provide Typing preference pages for XML, HTML, and JSP This patch contains Typing preference pages for XML, HTML, and JSP. These preferences are referenced in the XML, HTML, and JSP auto edit strategies. The Typing preference page can be found under the Editor category of XML, HTML, or JSP.
(In reply to comment #1) > Another option is to skip over retyped auto-inserted characters. For example > the Java editor automatically closes strings and braces, but if I type the > closing quote or brace myself, it just overwrites it. I.e., if I type the > entire sequence myself, the result should exactly match what I typed. > I looked into this possibility, and while not difficult to implement, I could see this causing problems. For example, if one were to type "Word<b>endingwith</b>b" I don't think there would be a way for us to know that that trailing b was purposefully typed as part of a text node, or if it was a case of typing to fast.
Whew, almost overlooked it. Nice addition. Released.
mass change to add 'contributed' keyword based on bugzilla query, please correct if that's not accurate (by marking patches as obsolete and removing the 'contributed' keyword.
Verified in S-3.0RC4-20080610084135.