Simulating a "Zen mode" in the code editor. [SOLVED] lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- carl_caulkett · 2024-10-08 18:07 * Mac Mini M1 * macOS 14.6.1 * Lazarus 3.99 * FPC 3.3.1 I've used Keyboard Maestro to map the Ctrl-Z keystroke onto Fn-F (the standard key. mappings didn't permit this!), which means I can toggle between full view and standard view in a much more comfortable way. However, what would be really great is to alter the width of the code gutter (see highlight in the attached image). Ideally I would have a standard width gutter in standard view and the larger gutter width in the "Zen mode". I'm sure this is possible but I'd rather do it without messing with the IDE Internals (how ever much fun that may be ). Any ideas, anyone? ---------------------------------------------------------------------- zeljko · 2024-10-08 18:31 Tools -> Options -> Display ? ---------------------------------------------------------------------- carl_caulkett · 2024-10-08 18:40 Thanks! It seem I can bump up the margin on 4 of the parameters, each by an additional 9 pixels. That's a total of 36 pixels! Not ideal, but it's the best that can be achieved easily ---------------------------------------------------------------------- Martin_fr · 2024-10-08 19:40 QuoteIdeally I would have a standard width gutter in standard view and the larger gutter width in the "Zen mode".There is only one setting. That setting will be applied for any size of the window. QuoteThanks! It seem I can bump up the margin on 4 of the parameters, each by an additional 9 pixels. That's a total of 36 pixels! Not ideal, but it's the best that can be achieved easily The right margin goes up to 25 each. And you can change the actual content width. ---------------------------------------------------------------------- carl_caulkett · 2024-10-09 14:04 Quote from: Martin_fr on October 08, 2024, 09:40:50 pmQuoteIdeally I would have a standard width gutter in standard view and the larger gutter width in the "Zen mode".There is only one setting. That setting will be applied for any size of the window. QuoteThanks! It seem I can bump up the margin on 4 of the parameters, each by an additional 9 pixels. That's a total of 36 pixels! Not ideal, but it's the best that can be achieved easily The right margin goes up to 25 each. And you can change the actual content width. These are the settings I'm changing. The "Marks", "Line Number", "Changes" and "Folding" parameters all have a maximum of 10 pixels, unless I'm missing something! ---------------------------------------------------------------------- carl_caulkett · 2024-10-09 14:52 @Martin_fr I did, indeed, miss something. I can alter the width parameter! Dunno how I missed that. That's the result of late night tweaking... That's my excuse and I'm sticking to it ---------------------------------------------------------------------- Martin_fr · 2024-10-09 15:01 Quote from: carl_caulkett on October 09, 2024, 04:04:11 pmThese are the settings I'm changing. The "Marks", "Line Number", "Changes" and "Folding" parameters all have a maximum of 10 pixels, unless I'm missing something! Each gutter part has 2 fields for margin (left/right). The right one goes up to 25. I don't recall why the limits were set as they are.... I probably couldn't imagine anyone needing more... Still not sure why they are diff for the 2 sites. Maybe just by mistake... ---------------------------------------------------------------------- carl_caulkett · 2024-10-09 15:15 Quote from: Martin_fr on October 09, 2024, 05:01:01 pmQuote from: carl_caulkett on October 09, 2024, 04:04:11 pmThese are the settings I'm changing. The "Marks", "Line Number", "Changes" and "Folding" parameters all have a maximum of 10 pixels, unless I'm missing something! Each gutter part has 2 fields for margin (left/right). The right one goes up to 25. I don't recall why the limits were set as they are.... I probably couldn't imagine anyone needing more... Still not sure why they are diff for the 2 sites. Maybe just by mistake... No worries! I was able to change the "Marks" width to 20 and move my Object Inspector to the right hand side of the editor, so that the editor stays constant between views 😍 By the way, if anyone is struggling with the size limit on PNG files when you try to attach a screenshot, this site https://www.iloveimg.com/compress-image/compress-png should help! ---------------------------------------------------------------------- Martin_fr · 2024-10-09 15:42 ok, now I get what you want to do.... You may try to dock something else there. You could open a unit in a 2nd source-editor (right click the editor tab of the unit). Then when you dock that 2nd editor window, you can close the unit, but keep the window => that can be used a spacer, I guess. Possible (no idea if it works) you can then save this as a new "desktop setting" (see desktops in the toolbar). Then (if that works) you can quickly toggle between having it and not having it.