<div dir="ltr"><div dir="ltr">Re 2 a), I was thinking something like the following. It *almost* works on Mac, except the "Waiting for external editor" dialog never disappears. Haven't tested it on Windows.<div><br></div><div>if config.platform == "apple" then<br></div><div> prefs.external_editor = "/usr/bin/open -W -n -e %s"</div><div>elseif config.platform == "win" then</div><div> prefs.external_editor = "%WINDIR%\\notepad.exe %s"</div><div>else</div><div> if os.getenv("EDITOR") then</div><div> prefs.external_editor = os.getenv("EDITOR") .. " %s"</div><div> else </div><div> prefs.external_editor = nil</div><div> end</div><div>end</div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 30 Apr 2019 at 15:32, Tim Hutt <<a href="mailto:tdhutt@gmail.com">tdhutt@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I really love IPE, but a long-time usability issue for me is editing stylesheets. There are two main issues:</div><div><br></div><div>1. It doesn't seem possible to have an embedded style-sheet - if I want just one file to be a weird size I have to make a stylesheet specific to that file, and then remember to copy it around with that file. It's a bit awkward. An implicit "(embedded)" stylesheet would be great.</div><div><br></div><div>2. In the stylesheets dialog there is a convenient Edit button but I have never actually successfully used it because it always tells me there is no text editor configured. I assume to do that I have to edit the `prefs.lua` file which is ... somewhere... This is usually way more hassle than I want to deal with so I give up. I can think of two good solutions:</div><div><br></div><div> a) Use an editor provided by the OS, e.g. using `open` on Mac, `xdg-open` on Linux, etc.<br></div><div> b) Provide a built-in editor. This can literally just be a dialog box with an edit box in it. That is still 100 times better than "Sorry no external editor defined"</div><div><br></div><div>If there is a sensible default editor you could also make `App->Preferences` (or whatever the equivalent on Windows is) open `prefs.lua` in that editor so I don't have to go hunting through app bundles for it.</div><div><br></div><div>Cheers,</div><div><br></div><div>Tim</div><div><br></div><div>PS: Hope that wasn't too ranty - it's just a small annoyance in an otherwise excellent program that I have let build up rather than actually fixing it...</div></div>
</blockquote></div>