Re: Aha: no need for a new paste command

2023-07-08 Thread Thomas Passin
The discussion got me to examine the various commands' docstrings via F11.  
*paste-as-template 
*was new to me, and might have been handy from time to time.  The word 
"template" doesn't convey anything useful to me about what the command 
does, but I don't have an alternate to suggest at this moment. The command 
name *paste-retaining-clones* is a little misleading to me because it 
leaves a question about what happens to non-cloned nodes in the copied 
subtree (they keep their gnxs too).  The menu item label (*Paste Node As 
Clone* doesn't quite match up with the command's name, at least to me.

I better write some clarifying text about these commands in the new user 
guide I'm slowly working on, I suppose.
On Saturday, July 8, 2023 at 8:50:14 AM UTC-4 Edward K. Ream wrote:

> On Sat, Jul 8, 2023 at 6:53 AM Thomas Passin  wrote:
>
>> No, I haven't tried it.  I'm not even sure I would want to.
>>
>
> I've asked several times, why not?
>
> Think about how the Windows file explorer works.  If you copy a file and 
>> paste it, it gives the pasted file a name that includes "copy" if there is 
>> another file with that name in the same directory.
>>
>
> It's an interesting analogy but misleading. A Leo node is more like a 
> directory than a file. Subnodes matter in this discussion.
>
>
> The question is whether pastes should retain *all* gnxs or none of them.
>
>
> Yes, Leo could copy a tree depending on whether clashes exist. But it's 
> our intention that matters, not gnx clashes. That was the Aha.
>
>
> Leo's paste-node and paste-retaining-clones commands support either 
> intention. That should be enough.
>
>
> *Summary*
>
>
> It's easy to reject the proposal. It's unlikely to work as expected. Leo's 
> existing commands suffice.
>
>
> Edward
>

-- 
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/84412da0-d1e8-4c5d-8752-8a34f293a4bfn%40googlegroups.com.


Re: Aha: no need for a new paste command

2023-07-08 Thread Edward K. Ream
On Sat, Jul 8, 2023 at 6:53 AM Thomas Passin  wrote:

> No, I haven't tried it.  I'm not even sure I would want to.
>

I've asked several times, why not?

Think about how the Windows file explorer works.  If you copy a file and
> paste it, it gives the pasted file a name that includes "copy" if there is
> another file with that name in the same directory.
>

It's an interesting analogy but misleading. A Leo node is more like a
directory than a file. Subnodes matter in this discussion.


The question is whether pastes should retain *all* gnxs or none of them.


Yes, Leo could copy a tree depending on whether clashes exist. But it's our
intention that matters, not gnx clashes. That was the Aha.


Leo's paste-node and paste-retaining-clones commands support either
intention. That should be enough.


*Summary*


It's easy to reject the proposal. It's unlikely to work as expected. Leo's
existing commands suffice.


Edward

-- 
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/CAMF8tS2g%2B6szSM3sP281KGX_7_Xq87TcVs-P2jgcVMEyNNSDCQ%40mail.gmail.com.


Re: Aha: no need for a new paste command

2023-07-08 Thread Thomas Passin
No, I haven't tried it.  I'm not even sure I would want to.  

Think about how the Windows file explorer works.  If you copy a file and 
paste it, it gives the pasted file a name that includes "copy" if there is 
another file with that name in the same directory.   If there isn't another 
file in the target directory, the copied file gets pasted get the original, 
unmodified name.  File managers on linux work the same way.

I'm just saying that Leo ought to act the same way as the file managers 
where copying nodes are concerned.  It's the way way everyone's file 
manager already works, it's what one would expect, and it's not 
state-oriented unless you mean the state of whether or not there is an 
existing name

On Saturday, July 8, 2023 at 7:40:10 AM UTC-4 Edward K. Ream wrote:

> On Fri, Jul 7, 2023 at 9:35 AM Edward K. Ream  wrote:
>
>
> I'm not going to [do a state-oriented paste-node].
>
> My apologies. I was too brusque.
>
> Thomas, have you tried making paste-retaining-clones your default for 
> ctrl-shift-v? I'm wondering whether you would encounter any problems.
>
> Thanks.
>
> Edward
>

-- 
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/24d46380-caa1-4a5e-adf7-75ad397484b2n%40googlegroups.com.


Re: Aha: no need for a new paste command

2023-07-08 Thread Edward K. Ream
On Fri, Jul 7, 2023 at 9:35 AM Edward K. Ream  wrote:


I'm not going to [do a state-oriented paste-node].

My apologies. I was too brusque.

Thomas, have you tried making paste-retaining-clones your default for
ctrl-shift-v? I'm wondering whether you would encounter any problems.

Thanks.

Edward

-- 
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/CAMF8tS3WUWwAER2wuuuJEU3fbuT4g1wBcb67sr7TR8hELDe%3Daw%40mail.gmail.com.


Re: Aha: no need for a new paste command

2023-07-07 Thread Edward K. Ream
On Friday, July 7, 2023 at 9:35:51 AM UTC-5 Edward K. Ream wrote:

> I'm not going to do this...I've closed this PR and am not likely to 
reopen it.

As always,  you can write a plugin that makes Leo work exactly as you want. 
You do not need my permission :-)  Note the preread code in the PR. It 
eliminates the need to override Leo's existing commands.

Edward

-- 
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/96121f01-0b5a-4289-92f3-173fc263e30fn%40googlegroups.com.


Re: Aha: no need for a new paste command

2023-07-07 Thread Edward K. Ream
On Friday, July 7, 2023 at 7:55:29 AM UTC-5 Thomas wrote:

I got some more clarity about this, and I commented the following on the 
proposed PR:


I can now see that the concept of operation is simple. Within an outline, 
for a parent-and-subtree:

   - Ask for a move, get a move; gnxs do not change;
   - Cut-paste is the same as a move;
   - Ask for a copy, get a copy, meaning all nodes get new gnxs.
   - To paste a copy when the top of the copied tree already exists means *by 
   definition* to ask for a copy.

I think that Leo's defaults should act this way. 


I'm not going to do this. See the comments in the PR. I've closed this PR 
and am not likely to reopen it.

Edward

-- 
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/ac1a1dd9-7d81-4972-abb4-e4355e4502d8n%40googlegroups.com.


Re: Aha: no need for a new paste command

2023-07-07 Thread Thomas Passin
I got some more clarity about this, and I commented the following on the 
proposed PR:

I can now see that the concept of operation is simple. Within an outline, 
for a parent-and-subtree:

   - Ask for a move, get a move; gnxs do not change;
   - Cut-paste is the same as a move;
   - Ask for a copy, get a copy, meaning all nodes get new gnxs.
   - To paste a copy when the top of the copied tree already exists means *by 
   definition* to ask for a copy.

I think that Leo's defaults should act this way.  I'd rather that the 
behaviors not change via a setting because their effect can be invisible 
until later, when it might be too late.  Also, those of us who run several 
installations (for instance, on a Linux VM for testing purposes) would 
inevitably forget what state those settings were on what machine.  That 
might end up being very confusing, to say the least!

Once we're sure that the paste-copy and paste-clone commands are working as 
intended, then we can probably make it fairly clear by naming commands and 
menu items (and also in the docstrings) as to what to expect.
On Friday, July 7, 2023 at 7:15:38 AM UTC-4 Edward K. Ream wrote:

> On Friday, July 7, 2023 at 3:59:49 AM UTC-5 Edward K. Ream wrote:
>
> > I'll leave #3429  
> > open 
> while we continue our discussion.
>
> I have assigned this issue to Leo 6.7.5. No way will this issue be part of 
> 6.7.4.
>
> Edward
>

-- 
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/32a449d4-b64f-4981-b492-1376b6bac4e6n%40googlegroups.com.


Re: Aha: no need for a new paste command

2023-07-07 Thread Edward K. Ream
On Friday, July 7, 2023 at 3:59:49 AM UTC-5 Edward K. Ream wrote:

> I'll leave #3429  open 
while we continue our discussion.

I have assigned this issue to Leo 6.7.5. No way will this issue be part of 
6.7.4.

Edward

-- 
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/aea0145a-9c60-4f26-8b8c-5ccb73afdac2n%40googlegroups.com.


Re: Aha: no need for a new paste command

2023-07-07 Thread Edward K. Ream
On Fri, Jul 7, 2023 at 5:42 AM jkn  wrote:

> I currently only see command paste-retaining-clones. Is this the command
> you are referring to (not paste-node-retaining-clones)?
>

Yes. I misspelled the name of the command.

Edward

-- 
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/CAMF8tS2C-0ujoj%3DVbABipTaCLpJVqN0_TpGaEfOFcw%2BBCMYFQw%40mail.gmail.com.


Re: Aha: no need for a new paste command

2023-07-07 Thread jkn
I currently only see command paste-retaining-clones. Is this the command 
you are referring to (not paste-node-retaining-clones)?

I presume this is an older command (that I have not knowingly used).

I guess I am still ... nervous is not exactly the right word ... about 
having variants for what I think most users would see as a fundamental, and 
"trivial", operation. But I am trying to keep an open mind...

J^n



On Friday, July 7, 2023 at 9:59:49 AM UTC+1 Edward K. Ream wrote:

> #3429  suggests 
> that Leo's paste-node command should retain gnxs if doing so would create 
> no gnx clashes in the pasted node.
>
>
> Thomas, Félix and I have been debating what *anyGnxClashes *should check. 
> Should it check the entire pasted tree or only its root? Depending on the 
> answer, the paste-node will act like Leo's *legacy *paste-node or 
> paste-node-retaining-clones commands.
>
>
> *Aha!* The contents of the target outline don't matter! *What matters is 
> the user's intention*.
>
>
> Thomas uses cut-node/pastes-node mostly to move outlines. For him, 
> paste-node-retaining-clones is likely the best binding for ctrl-shift-v.
>
>
> But I typically use copy-node/paste-node to cherry-pick outlines from 
> other branches. For me, paste-node is the best binding.
>
>
> *Summary*
>
>
> When using paste-node, the user won't know what anyGnxClashes will return. 
> That can't be good!
>
>
> *Aha*: it *shouldn't matter* what nodes are in the target outline. What 
> matters is whether the user *wants *to regain gnxs!
>
>
> Users who regularly use copy-node/paste to move nodes may find it best to 
> bind ctrl-shift-v to paste-nodes-retaining-clones. Perhaps the binding for 
> ctrl-shift-v should change in leoSettings.leo.
>
>
> The work on this project has not been in vain. We all now understand more 
> deeply how Leo's paste-node commands affect gnxs.
>
>
> Please comment. I'll leave #3429 
>  open while we 
> continue our discussion.
>
>
> Edward
>

-- 
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/809cc8a9-077e-4238-8084-683ee6e82963n%40googlegroups.com.


Aha: no need for a new paste command

2023-07-07 Thread Edward K. Ream
 

#3429  suggests that 
Leo's paste-node command should retain gnxs if doing so would create no gnx 
clashes in the pasted node.


Thomas, Félix and I have been debating what *anyGnxClashes *should check. 
Should it check the entire pasted tree or only its root? Depending on the 
answer, the paste-node will act like Leo's *legacy *paste-node or 
paste-node-retaining-clones commands.


*Aha!* The contents of the target outline don't matter! *What matters is 
the user's intention*.


Thomas uses cut-node/pastes-node mostly to move outlines. For him, 
paste-node-retaining-clones is likely the best binding for ctrl-shift-v.


But I typically use copy-node/paste-node to cherry-pick outlines from other 
branches. For me, paste-node is the best binding.


*Summary*


When using paste-node, the user won't know what anyGnxClashes will return. 
That can't be good!


*Aha*: it *shouldn't matter* what nodes are in the target outline. What 
matters is whether the user *wants *to regain gnxs!


Users who regularly use copy-node/paste to move nodes may find it best to 
bind ctrl-shift-v to paste-nodes-retaining-clones. Perhaps the binding for 
ctrl-shift-v should change in leoSettings.leo.


The work on this project has not been in vain. We all now understand more 
deeply how Leo's paste-node commands affect gnxs.


Please comment. I'll leave #3429 
 open while we 
continue our discussion.


Edward

-- 
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/8061f9f5-b6b4-42ac-aaec-dbc89c68063en%40googlegroups.com.