Yes. This inquiry only concerns @clean, not @file. 

When being refreshed from file after unindenting a line coming from an 
indented @others node, I would have expected the first line encountered (*being 
unindented past the indentation of it's originator @other node*), to be 
considered the first line to be *after* the @other node content. (as it 
cannot be from the original indented @other node, therefore it should be 
seen as a new content for after the @other directive. (along with all it's 
following lines in that node's output).

A 'ctrl+s' following that refreshing does not trigger it being re-written, 
as leo seems to consider this not being a 'dirty' state... so that behavior 
does not have an explicit apparent drawback.. but it's still there! hehe...

And so i'm wondering if it's the intended behavior..., and so I thought I'd 
ask people in this forum about their thoughts on that matter :)

Félix



On Friday, June 23, 2023 at 5:04:47 PM UTC-4 tbp1...@gmail.com wrote:

> Oh, I see.  If it's an external file with sentinels it could be tricky 
> because you'd have to unindent the correct block the right amount, 
> sentinels and all.  I just succeeded  with an @file tree, but it would be 
> easy to mess it up.  I converted the file to an @clean file and when I 
> unindented the line in the external file that was in the @others subtree (I 
> mean using an external editor), the "@others" line in the Leo outline did 
> not get unindented as one would expect.
>
> Tricky!
>
> On Friday, June 23, 2023 at 4:44:36 PM UTC-4 Félix wrote:
>
>> Thank, but the unexpected behavior I tried to verify is when* removing 
>> the indentation in the external file itself externally*  (with a file 
>> editor of your choice) and then saving it, to have Leo refresh it from file 
>> by answering 'yes' to the dialog that appears when you do so.
>>
>> On Friday, June 23, 2023 at 3:59:07 PM UTC-4 tbp1...@gmail.com wrote:
>>
>>> My expectation is that all lines in the @others subtree will be 
>>> additionally indented by the indentation of the "@others" string.  That's 
>>> how I have always used it.  I just tried it out in a little outline similar 
>>> to yours, and that's what I saw in the external file.  So if the @others 
>>> line is not indented, the @others subtree lines are not either.
>>>
>>> On Friday, June 23, 2023 at 2:39:46 PM UTC-4 Félix wrote:
>>>
>>>> In a simple outline with an @clean node containing an indented @others 
>>>> such as this: 
>>>>
>>>> [image: Screenshot from 2023-06-23 14-33-30.png]
>>>> Let's say there's a couple lines of text in the 'inside node' body 
>>>> pane. The external file will have those lines indented with as much space 
>>>> as there are before the @others in the parent node.
>>>>
>>>> What is the expected behavior when I remove the indentation of the line 
>>>> produced by the @others in the external file, and save it as such to be 
>>>> picked-up by Leo and have it refresh that outline from file? will the 
>>>> @others be unindented? or will the @others stay at its position, and the 
>>>> inside node content be empty and with it's now unindented line appear 
>>>> below 
>>>> the @others?
>>>>
>>>> In any case, none of this happens. So i'm wondering what's going on? 
>>>> (was it always this way? or is this a new intended/unintended behavior?)
>>>>
>>>> Félix
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/0c93df92-5c08-4eb5-8f1f-312b14f7c456n%40googlegroups.com.

Reply via email to