[TxMt] Re: Indented soft wrapping

Trevor Harmon trevor at vocaro.com
Wed Jan 29 16:34:21 UTC 2014


I agree that enabling indented soft wrapping is more difficult than it should be. In other text editors (such as Xcode) it is either on by default or just a single command away, while TextMate requires setting up a custom bundle and defining a regular expression.

I would like to work on a patch to improve this situation, but I’m not even sure how it should be architected. For example, if a default indentedSoftWrap setting is added to the Text and Source bundles, how can it be turned on and off? Is there some existing setting that works like this?

Any guidance from the core TextMate devs would be appreciated, thanks!

Trevor

On Jan 29, 2014, at 2:52 AM, Tom Wardrop <tom at tomwardrop.com> wrote:

> Perhaps my frustrations comes from the fact that there's not a simple menu item for it. There should be a soft-wrap sub-menu or something with the option to enable indented soft-wrapping. Enabling this global setting (which it should be by default) would apply the common "same indent level + 1" to all bundles. Bundles could then override this with grammar specific soft-wrapping where applicable. I shouldn't have to, with much frustration, Google for an example of soft-wrapping, and then be required to work out how it all works. 
> 
> This is a matter of usability more than capability. I want to develop for my application, not for my text editor if I can at all avoid it. It's about having smart defaults (who doesn't prefer indented soft-wrap over ordinary soft-wrapping?) and easily accessible options for the most common toggles. Everything else can be done in the bundle editor.
> 
> Is that unreasonable?
> 
> Tom
> 
> 
> On 29 January 2014 16:04, Fred ALB <fredb7 at gmail.com> wrote:
> 
> On 29 Jan 2014, at 06:02, Tom Wardrop <tom at tomwardrop.com> wrote:
> 
> > Please,
> >
> > For the love of god, children and animals, can we please get indented soft wrapping as a standard feature of Textmate 2. (…)
> 
> AFAICT, it’s there for more than two years…
> 
> In the first item in the About box > Changes dated 2011-12-13:
> 
> > Soft wrap can be indented. This is also based on scoped settings so list items in markup are indented differently than line comments in source.
> 
> Google "textmate indentedSoftWrap” or go here: http://blog.macromates.com/2012/the-layout-engine/
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20140129/653fb1b7/attachment.html>


More information about the textmate mailing list