|
From: goodfella <goo...@gm...> - 2010-10-18 17:19:50
|
Hi,
Please see my comments below :
Problem #2
This is not a bug.
Elastic tabstops align multiple tabs (in a line) in column blocks of uniform
width such that each line in a column block ends with a tab character.Please
see below :
/t signifies a tab character
Column1 Column 2 Column
3 Column 4
Line 1 : /t int firstVar= /t 1 ;
/t //This is the first variable
Line 2: /t String secondString= /t "Hello World" ;
/t //This is the second variable
Line 3: /t String thirdString= /t "Hi There!"
;/t //This is the third variable
Line 4: /t String fourthString= /t "I am working on
jedit";/t //This is the fourth variable
Now if the text in second and third line of third column is deleted (this
is similar to scenario of problem #2) the alignment doesnt change as the
alignment depends on column blocks which are controlled solely by tabs .
Column1 Column 2 Column
3 Column 4
Line 1 : /t int firstVar= /t 1 ;
/t //This is the first variable
Line 2: /t String secondString= /t
/t //This is the second variable
Line 3: /t String thirdString= /t
/t //This is the third variable
Line 4: /t String fourthString= /t "I am working on
jedit";/t //This is the fourth variable
Problem #1
This is a known limitation of elastic tabstops and is related to Problem #2.
Please see "Mixing indentation and alignment" in
http://tibleiz.net/code-browser/elastic-tabstops.html
Basically if the number of tabs in a particular line get reduced (due to
removal of indentation) the alignment of the whole ColumnBlock changes .So
if tab at Line 1 Column 1 above gets deleted the alignment of all four lines
change as the width of Column 1 increases now.
Column1 Column 2 Column
3 Column 4
Line 1 : int firstVar= /t 1 ; /t //This
is the first variable
Line 2: /t String secondString= /t "Hello World"
; /t //This is the second variable
Line 3: /t String thirdString= /t "Hi There!"
;/t //This is the third variable
Line 4: /t String fourthString= /t "I am
working on jedit";/t //This is the fourth variable
Space Problem:
The space between two columns in elastic tab stops = Tab Width set by the
user in Global Options >Editing
Regards,
Anshal
On Fri, Oct 15, 2010 at 10:39 PM, Eric Berry <el...@gm...> wrote:
> I think I've experienced a bug, maybe 2.
>
> The first issue is, shift+tab really messes things up. The current line
> get's unindented, but if you keep doing it all lines of the similar indent
> start moving forward.
>
> Eg. If I start off with a piece of code like so:
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> Then tab between the attributes and values I get:
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> Cool, very clean. I think there is too much space, and it doesn't exactly
> go along with the documentation - but more on that later.
>
> Now, if I shift+tab on line 2 (the margin line), I get this:
> [code]
> * {
> margin: 0px;[cursor was here]
> padding: 0px;
> }
> [/code]
>
> As you can see, padding line got indented again, and the margin line got
> unindented. It get's worse the larger the code sample is. I think this is a
> bug, unindenting a line shouldn't affect it's context lines.
>
> The second issue has to do with the spacing, and the way multiple tabs
> works.
>
> Again, starting with this code sample:
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> Adding tabs as expected:
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> Good so far. However, now if I add another tab between margin and it's
> value, I expect for padding's value to line up, but the tab is only added to
> the margin line.
> Eg
> [code]
> * {
> margin: 0px;
> padding: 0px;
> }
> [/code]
>
> I'm thinking this one is just a my not understanding the nature of elastic
> tab stops, but that is the impression I get from the documentation.
>
> Is this correct?
>
> Thanks,
> Eric
>
>
> On Fri, Oct 15, 2010 at 7:25 AM, Matthieu Casanova <cho...@gm...
> > wrote:
>
>> Finally I found the problem :
>> It happens when using Minitabs plugin, but I don't know why exactly
>>
>> Matthieu
>>
>> On Fri, Oct 15, 2010 at 3:34 PM, Matthieu Casanova
>> <cho...@gm...> wrote:
>> > That's completely incredible, I'm at home with a fresh jEdit install
>> > and it works prefectly now, maybe a plugin made it crash at work, I
>> > have to investigate that, anyway the feature is very nice to use
>> >
>> > Matthieu
>> >
>> > On Fri, Oct 15, 2010 at 2:42 PM, Shlomy Reinstein <sre...@gm...>
>> wrote:
>> >> Hi,
>> >> Can you send the exceptions? I don't get any of this.
>> >> It can be slow if there's a long block with similar tabulation - but
>> that's
>> >> due to nature of this feature, I think. In most source files, the
>> blocks of
>> >> code that go together in this feature are not large.
>> >> Thanks,
>> >> Shlomy
>> >>
>> >> On Fri, Oct 15, 2010 at 12:02 PM, Matthieu Casanova <
>> cho...@gm...>
>> >> wrote:
>> >>>
>> >>> Hi, I tried the elastic tabstops feature, and it seems it is
>> completely
>> >>> broken :
>> >>>
>> >>> If I type <tab> means a tabulation
>> >>>
>> >>> a<tab>b\n
>> >>> c<tab>
>> >>>
>> >>> I get exceptions, this happens everytime. And in a big file it can
>> >>> become very very slow.
>> >>>
>> >>> Matthieu
>> >>>
>> >>>
>> >>>
>> ------------------------------------------------------------------------------
>> >>> Download new Adobe(R) Flash(R) Builder(TM) 4
>> >>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
>> >>> Flex(R) Builder(TM)) enable the development of rich applications that
>> run
>> >>> across multiple browsers and platforms. Download your free trials
>> today!
>> >>> http://p.sf.net/sfu/adobe-dev2dev
>> >>> --
>> >>> -----------------------------------------------
>> >>> jEdit Developers' List
>> >>> jEd...@li...
>> >>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>> >>
>> >>
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Download new Adobe(R) Flash(R) Builder(TM) 4
>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
>> Flex(R) Builder(TM)) enable the development of rich applications that run
>> across multiple browsers and platforms. Download your free trials today!
>> http://p.sf.net/sfu/adobe-dev2dev
>> --
>> -----------------------------------------------
>> jEdit Developers' List
>> jEd...@li...
>> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>>
>
>
>
> --
> Learn from the past. Live in the present. Plan for the future.
> Blog: http://www.townsfolkdesigns.com/blogs/elberry
> jEdit <http://www.jedit.org> - Programmer's Text Editor
> Bazaar <http://bazaar.canonical.com> - Version Control for Humans
>
>
> ------------------------------------------------------------------------------
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> --
> -----------------------------------------------
> jEdit Developers' List
> jEd...@li...
> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>
>
|