Re: inconsistent behavior when dragging files

2019-02-11 Thread Edward K. Ream


On Saturday, February 9, 2019 at 7:27:53 AM UTC-5, Edward K. Ream wrote:
>
> Please file an issue for this.  It will be fixed asap. 
>

I have just created #1083 
 for this.

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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: inconsistent behavior when dragging files

2019-02-09 Thread Edward K. Ream
Please file an issue for this.  It will be fixed asap.

Edward

On Thu, Feb 7, 2019 at 12:35 PM Josef  wrote:
>
> I work on Xubuntu 18.04 LTS and use Krusader as file manager.
>
> When I try to drag a file from the file manager into a node body, I only get 
> a file:///... link if the pane was empty, while I have no problems with cut 
> and paste. I tried this with the Thunar file manager as well, just to make 
> sure the problem is not Krusader-specific. The file name seems to be always 
> absolute - would be nice to have a "paste relative" option.
>
> When dragging a file into the tree pane, Leo tries to generate a relative 
> file name. This works only correctly when the file dragged into Leo sits in 
> the file tree underneath the place where the @path points to. If the file 
> sits on a different branch, one gets only the path from the place where the 
> branches split, but not the leading ../../ or so to ascend the branch from 
> the @path place.
>
> I guess Leo just removes os.commonpath() from the abspath to return the file 
> path, but should use os.relpath() instead.
>
> - Josef
>
> --
> 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 post to this group, send email to leo-editor@googlegroups.com.
> Visit this group at https://groups.google.com/group/leo-editor.
> For more options, visit https://groups.google.com/d/optout.



-- 
--
Edward K. Ream: edream...@gmail.com Leo: http://leoeditor.com/
--

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


inconsistent behavior when dragging files

2019-02-07 Thread Josef
I work on Xubuntu 18.04 LTS and use Krusader as file manager.

When I try to drag a file from the file manager into a node body, I only 
get a file:///... link if the pane was empty, while I have no problems with 
cut and paste. I tried this with the Thunar file manager as well, just to 
make sure the problem is not Krusader-specific. The file name seems to be 
always absolute - would be nice to have a "paste relative" option.

When dragging a file into the tree pane, Leo tries to generate a relative 
file name. This works only correctly when the file dragged into Leo sits in 
the file tree underneath the place where the @path points to. If the file 
sits on a different branch, one gets only the path from the place where the 
branches split, but not the leading ../../ or so to ascend the branch from 
the @path place.

I guess Leo just removes os.commonpath() from the abspath to return the 
file path, but should use os.relpath() instead.

- Josef

-- 
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 post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.