<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 November 2013 09:36, James Brierley <span dir="ltr"><<a href="mailto:jmb8710@gmail.com" target="_blank">jmb8710@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 10/11/13 21:55, Lex Trotman wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
We have had long discussions about configurable approaches, but any that<br>
seem to provide a useful improvement also seem to add just as many<br>
annoying erroneous situations.<br>
<br></div><div class="im">
PS just a note that most methods seem to fail with things like<br>
indentation for lines that are continuations of expressions, function<br>
calls and similar situations.  Or they only work if you use one specific<br>
style of source layout such as GNU style.  Or they fail to respect<br>
manually set indentation for situations above.<br>
</div></blockquote>
<br>
Personally I think the existing system works fine. Snippets with tabs configurable to display at any width, with the option to convert to spaces, is ideal for me. The existing ability to set the tab width, or whether to insert spaces as tab, in a filetype definition is ideal. That’s all the language-specific indentation I need.<br>
</blockquote><div><br></div><div>Good to see a happy customer :)</div><div><br></div><div>Perhaps the rest of us are just lazier, but we would *like* better indentation assistance, but not at the cost of lots of annoyances, like your Emacs one below.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
In my experience, over-aggressive ‘style enforcers’ are an annoyance more often than they are a help. A case in point being Emacs, where there seems to be no single option to set any single brace style for *all* C-like languages except that personally endorsed by Richard Stallman. That was the main reason Emacs went in the bin for me.<br>
</blockquote><div><br></div><div>To be fair since each "C-like" language is different (GNU C, Linux C, Stroustrup C++, Java) having one setting is less useful.  I have found the latest Emacs indentation to be ok, but its based on code analysis, so its not immediate, you need to finish the language construct before it indents, which is distracting but I could get used to it.  But such analysis is not available to Geany.  And of course in some languages indentation is significant and required to follow specific rules, Python being the simplest, and Haskell being unfathomable.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
‘Unindentation’ as per Doug’s request would be nice to add to snippets, if it’s feasible, but apart from that the existing system treads the right line between being a helping hand and treading on your toes. Like most things in Geany, which is why I use it. If I wanted text editing to feel like wrestling Leviathan I’d use vi or Emacs... :)<br>
</blockquote><div><br></div><div>I believe we will always retain the simple indentation types, even if more complex ones are added, so you should be safe.  Possibly adding %indent% and %undent% to the snippets would be a good idea, just needs someone to do it.</div>
<div><br></div><div>Cheers</div><div>Lex</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Anyway, just my two cents, but getting back to Doug’s request, adding something like<br>
<br>
[Lua]<br>
then=then\n\t%cursor%<br>
else=else\n\t%cursor%<br>
do=do\n\t%cursor%<br>
<br>
to snippets.conf approximates what he was asking for, minus unindentation.<div class="im HOEnZb"><br>
<br>
James<br>
<br>
-- <br>
"Unix is the worst computer operating system, except<br>
all the others that have been tried."<br></div><div class="HOEnZb"><div class="h5">
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.geany.org" target="_blank">Users@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target="_blank">https://lists.geany.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div>