tag:blogger.com,1999:blog-17552332.post9028803239237923566..comments2010-10-31T19:39:07.614+01:00Comments on dhaumann: Kate Scripting: Indentationdhaumannhttp://www.blogger.com/profile/06242913572752671774noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-17552332.post-66737211434034888432009-07-09T14:45:30.216+02:002009-07-09T14:45:30.216+02:00Hello,
and is it possible to use kjs for code com...Hello, <br />and is it possible to use kjs for code completion? If yes, is there a comprehensive guide for that? I gladly appreciate if you drop me a link to qwaser@gmail.comAnonymoushttps://www.blogger.com/profile/14312632563339221170noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-90257497136501497372008-03-14T16:32:00.000+01:002008-03-14T16:32:00.000+01:00I'm trying to write a ruby indenter. It actually w...I'm trying to write a ruby indenter. It actually works pretty well already, but I have run into a problem:<BR/><BR/>Is there a way to add BACKSPACE to the triggerChars?<BR/><BR/>I've tried \b \\b \x08 etc, but it doesn't work.ropezzhttps://www.blogger.com/profile/08843203596341883561noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-48695225827185127612007-07-19T09:34:00.000+02:002007-07-19T09:34:00.000+02:00@Pablo: We are discussing at the kwrite-devel mail...@Pablo: We are discussing at the <A HREF="http://lists.kde.org/?l=kwrite-devel&m=118482872717098&w=2" REL="nofollow">kwrite-devel</A> mailing list about it, too.dhaumannhttps://www.blogger.com/profile/06242913572752671774noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-11738049230025599532007-07-19T02:33:00.000+02:002007-07-19T02:33:00.000+02:00Since the indentation mechanism is going to be red...Since the indentation mechanism is going to be redesigned/reimplemented for KDE4, I agree with Kevin that it makes sense to have a scripting engine flexible enough to support the mixed mode he's talking about. In fact, it's one of my main pet peeves with Kate right now.Pablohttps://www.blogger.com/profile/04945022547496400605noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-80811306033697847272007-07-19T00:48:00.000+02:002007-07-19T00:48:00.000+02:00@Kevin: You are absolutely right. It is not possib...@Kevin: You are absolutely right. It is not possible by design. But then, Kate never really supported the mixed mode you mention. And the system as it is right now is really simple.<BR/><BR/>@Antonio: The returned integer means: Indent X white spaces. Kate Part will transform the white spaces into tabs if it is the user's preference. If you have a tab width of 4 and indent() returns 6, then you will automatically get 1 tab and 2 spaces.dhaumannhttps://www.blogger.com/profile/06242913572752671774noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-37697359494273485302007-07-19T00:14:00.000+02:002007-07-19T00:14:00.000+02:00I'm guessing the integer indentation depth represe...I'm guessing the integer indentation depth represents the depth in `number of indents', so that 2 would mean 4 spaces in a 2-space indentation scheme, or 8 in a 4-space indentation scheme, etc.Antoniohttps://www.blogger.com/profile/00685775039560712665noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-58124237300908383322007-07-18T22:16:00.000+02:002007-07-18T22:16:00.000+02:00IMHO, using integers as the representation for ind...IMHO, using integers as the representation for indentation is fundamentally broken, because it matters whether tabs or spaces (or a mix of both) should be used.<BR/><BR/>Consider the example:<BR/>[TAB]foo(blabla,<BR/>Now you want to indent under the 'b' of blabla. The only way to do that which still works when the reader uses a different tab width setting (which is the only reason to use tabs in the first place IMHO!) is to indent the next line with a tab and 4 spaces.Kevin Koflerhttps://www.blogger.com/profile/00136078113749660013noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-55537803787711082522007-07-18T16:13:00.000+02:002007-07-18T16:13:00.000+02:00Yes and no. As long as we provide the right helper...Yes and no. As long as we provide the right helper functions in a C++ implementation...<BR/>That's the hard part, and that's where help is very much appreciated.dhaumannhttps://www.blogger.com/profile/06242913572752671774noreply@blogger.comtag:blogger.com,1999:blog-17552332.post-19533754603718650292007-07-18T15:58:00.000+02:002007-07-18T15:58:00.000+02:00Complex javascript on every character press? Won't...Complex javascript on every character press? Won't that be terribly slow?Timhttps://www.blogger.com/profile/14408908510164973992noreply@blogger.com