<div dir="ltr"><div dir="ltr">Re 2 a), I was thinking something like the following. It *almost* works on Mac, except the &quot;Waiting for external editor&quot; dialog never disappears. Haven&#39;t tested it on Windows.<div><br></div><div>if config.platform == &quot;apple&quot; then<br></div><div>  prefs.external_editor = &quot;/usr/bin/open -W -n -e %s&quot;</div><div>elseif config.platform == &quot;win&quot; then</div><div>  prefs.external_editor = &quot;%WINDIR%\\notepad.exe %s&quot;</div><div>else</div><div>  if os.getenv(&quot;EDITOR&quot;) then</div><div>    prefs.external_editor = os.getenv(&quot;EDITOR&quot;) .. &quot; %s&quot;</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 &lt;<a href="mailto:tdhutt@gmail.com">tdhutt@gmail.com</a>&gt; 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&#39;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&#39;s a bit awkward. An implicit &quot;(embedded)&quot; 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 &quot;Sorry no external editor defined&quot;</div><div><br></div><div>If there is a sensible default editor you could also make `App-&gt;Preferences` (or whatever the equivalent on Windows is) open `prefs.lua` in that editor so I don&#39;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&#39;t too ranty - it&#39;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>