Hi,
I use Ctrl-Q quite a bit to hard wrap Markdown files, Git commit messages, etc. It works nicely when I set the wrap column at 80, but it doesn't seem respect the custom value I set for it in my .tm_properties file (wrapColumn = 72).
Is there something I can configure to get this to work, or maybe a bundle command workaround?
Any help would be much appreciated.
Adam
Have you also set softWrap to false in your .tm_properties file?
Patrick
On 6 Jan 2012, at 04:31, Adam Sharp wrote:
Hi,
I use Ctrl-Q quite a bit to hard wrap Markdown files, Git commit messages, etc. It works nicely when I set the wrap column at 80, but it doesn't seem respect the custom value I set for it in my .tm_properties file (wrapColumn = 72).
Is there something I can configure to get this to work, or maybe a bundle command workaround?
Any help would be much appreciated.
Adam
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 06/01/2012, at 9:10 PM, Patrick Polloni wrote:
Have you also set softWrap to false in your .tm_properties file?
No, I have only explicitly set softWrap to false in a couple of scopes, and the wrap column is visible, indicating soft wrapping is enabled. But for good measure I tried
* softWrap = true * [ text.html.markdown ] softWrap = true * [ text ] softWrap = true
and none seemed to have any effect on the way the Reformat Text works.
Adam
On Jan 8, 2012, at 5:56 PM, Adam Sharp wrote:
On 06/01/2012, at 9:10 PM, Patrick Polloni wrote:
Have you also set softWrap to false in your .tm_properties file?
No, I have only explicitly set softWrap to false in a couple of scopes, and the wrap column is visible, indicating soft wrapping is enabled. But for good measure I tried
- softWrap = true
- [ text.html.markdown ] softWrap = true
- [ text ] softWrap = true
and none seemed to have any effect on the way the Reformat Text works.
This has been my experience too; Reformat Text (^Q) seems to wrap at 79 chars regardless of what I set wrapColumn or TM_COLUMNS to, or whether softWrap is enabled or disabled.
-- Phil
On 06/01/2012, at 3:31 PM, Adam Sharp wrote:
Is there something I can configure to get this to work, or maybe a bundle command workaround?
As a workaround, I've created this bundle with a single macro (bound to Opt-Cmd-Q) that is hard-coded to wrap to 72 chars, using column selection mode:
It's by no means an elegant solution, but it does the trick for me. You can easily modify it to use more or fewer `moveRightAndModifySelection:` commands to increase or decrease the column width.
Open to any ideas for improvement (especially ones that actually use TM_COLUMNS).
Adam