Re: Cross-file links

2017-06-04 Thread Terry Brown
On Sun, 4 Jun 2017 19:28:31 -0700 (PDT)
Largo84  wrote:

> Terry, that would be awesome! Sorry that I'm such a dunce w/ Python 
> programming. I started by looking at the plugin code, but quickly
> realized I didn't have a clue what was going on. Just wondering;
> would it benefit to put in an enhancement request on a specific
> plugin like this?

Doesn't hurt, makes it easier to keep track - you can assign it to me
(tbnorth) if you create one.

Cheers -Terry

> Rob..
> 
> On Sunday, June 4, 2017 at 9:27:36 PM UTC-4, Terry Brown wrote:
> >
> > On Sun, 4 Jun 2017 12:42:10 -0700 (PDT) 
> > Largo84 > wrote: 
> >
> > [snip] 
> >
> > > Are there any technical, design or practical reasons why the 
> > > backlinks plugin is limited to 'internal' links? I thought about 
> >
> > Sort of.  The backlinks plugin uses GNXs (node IDs) for
> > persistence.  I think - I wrote it, but haven't touched that part
> > of it for a long time. GNXs don't include any file info, so you can
> > only interpret them in the context of the current file. 
> >
> > I suspect the backlinks plugin could be extended to use UNLs too,
> > might be a bit fiddly because the graphviz plugin depends on
> > backlinks, so that would need tweaking too.  But probably makes
> > more sense than creating a new but very similar plugin.  I'll try
> > and remember to investigate, but won't be for a few days. 
> >
> > (UNLs can include file info. and thus make cross file links, like
> > Lewis said) 
> >
> > Cheers -Terry 
> >
> >
> 

-- 
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: Cross-file links

2017-06-04 Thread Largo84
Terry, that would be awesome! Sorry that I'm such a dunce w/ Python 
programming. I started by looking at the plugin code, but quickly realized 
I didn't have a clue what was going on. Just wondering; would it benefit to 
put in an enhancement request on a specific plugin like this?

Rob..

On Sunday, June 4, 2017 at 9:27:36 PM UTC-4, Terry Brown wrote:
>
> On Sun, 4 Jun 2017 12:42:10 -0700 (PDT) 
> Largo84 > wrote: 
>
> [snip] 
>
> > Are there any technical, design or practical reasons why the 
> > backlinks plugin is limited to 'internal' links? I thought about 
>
> Sort of.  The backlinks plugin uses GNXs (node IDs) for persistence.  I 
> think - I wrote it, but haven't touched that part of it for a long time. 
> GNXs don't include any file info, so you can only interpret them in the 
> context of the current file. 
>
> I suspect the backlinks plugin could be extended to use UNLs too, might 
> be a bit fiddly because the graphviz plugin depends on backlinks, so 
> that would need tweaking too.  But probably makes more sense than 
> creating a new but very similar plugin.  I'll try and remember to 
> investigate, but won't be for a few days. 
>
> (UNLs can include file info. and thus make cross file links, like Lewis 
> said) 
>
> Cheers -Terry 
>
>

-- 
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: Embedding your own custom Widget

2017-06-04 Thread Terry Brown
On Sun, 4 Jun 2017 15:20:04 -0700 (PDT)
Adrian Calvin  wrote:

> OK, I figured out how to embed my new widget manually into the main
> layout. But I am confused as to how to make it load automatically
> into the layout.

Not sure if you're familiar with the pane layout machinery
carefully concealed in the context menu that pops up when you right
click the pane dividers.  Also accessible via

Window -> Arrange Panes -> Pane Management Menu

although that loses some of the left/right context that right clicking
a particular pane divider provides.

Anyway, this code:

https://github.com/leo-editor/snippets/blob/master/examples/demo_widget.py

gives full and minimal examples for adding a widget in its own pane
using that mechanism.  If you want it to appear at startup / load,
manually create the pane where you want it, then use "Save Layout" in
that same menu.

In the linked examples the added widget is a slider that does noting,
but you can provide your own widget that can anything at all.

Cheers -Terry

> On Sunday, June 4, 2017 at 1:39:59 PM UTC-5, Adrian Calvin wrote:
> >
> > Hi,
> >
> > I am trying to figure out the *easiest *way to embed a widget in
> > the layout, *exactly* like viewrendered.
> >
> > The problem is, that being a neophyte to both leo and python, that
> > plugin is just way to complex for me to use as a model or template
> > at the moment.
> >
> > How would I go about embedding a widget, that I can then add other 
> > controls to, textboxes, buttons, etc).
> >
> > PS.  I know how to do this by adding to the log pane, but I want
> > something stand-alone, that is always visible.

-- 
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: Cross-file links

2017-06-04 Thread Terry Brown
On Sun, 4 Jun 2017 12:42:10 -0700 (PDT)
Largo84  wrote:

[snip]

> Are there any technical, design or practical reasons why the
> backlinks plugin is limited to 'internal' links? I thought about

Sort of.  The backlinks plugin uses GNXs (node IDs) for persistence.  I
think - I wrote it, but haven't touched that part of it for a long time.
GNXs don't include any file info, so you can only interpret them in the
context of the current file.

I suspect the backlinks plugin could be extended to use UNLs too, might
be a bit fiddly because the graphviz plugin depends on backlinks, so
that would need tweaking too.  But probably makes more sense than
creating a new but very similar plugin.  I'll try and remember to
investigate, but won't be for a few days.

(UNLs can include file info. and thus make cross file links, like Lewis
said)

Cheers -Terry

> creating a new plugin based on the backlink plugin, but I don't have
> the faintest notion of where to begin.
> 
> Rob...
> 
> On Sunday, June 4, 2017 at 6:07:19 AM UTC-4, lewis wrote:
> >
> > You can use the bookmarks plugin to create links to other nodes
> > *within* a single .leo file. Simply edit the bookmark node's body
> > text to include the node name:
> > N:/path/to/file/my_file.leo#node_name
> > and for multi-level nodes:
> > N:/path/to/file/my_file.leo#node_name-->child_node
> >
> > Regards
> > Lewis
> >
> > On Saturday, June 3, 2017 at 12:56:31 AM UTC+10, Largo84 wrote:
> >>
> >> [snip
> >>
> >  
> >
> >> ] The bookmarks plugin doesn't really do what I need either. Any 
> >> suggestions on how to create links to nodes in other .leo files?
> >>
> >
> 

-- 
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: Embedding your own custom Widget

2017-06-04 Thread Adrian Calvin

OK, I figured out how to embed my new widget manually into the main layout. 
 But I am confused as to how to make it load automatically into the layout.

On Sunday, June 4, 2017 at 1:39:59 PM UTC-5, Adrian Calvin wrote:
>
> Hi,
>
> I am trying to figure out the *easiest *way to embed a widget in the 
> layout, *exactly* like viewrendered.
>
> The problem is, that being a neophyte to both leo and python, that plugin 
> is just way to complex for me to use as a model or template at the moment.
>
> How would I go about embedding a widget, that I can then add other 
> controls to, textboxes, buttons, etc).
>
> PS.  I know how to do this by adding to the log pane, but I want something 
> stand-alone, that is always visible.
>

-- 
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: Embedding your own custom Widget

2017-06-04 Thread Adrian Calvin
In my enthusiasm I spoke before testing.  This also opens a a window 
outside of the layout.

:(

On Sunday, June 4, 2017 at 1:39:59 PM UTC-5, Adrian Calvin wrote:
>
> Hi,
>
> I am trying to figure out the *easiest *way to embed a widget in the 
> layout, *exactly* like viewrendered.
>
> The problem is, that being a neophyte to both leo and python, that plugin 
> is just way to complex for me to use as a model or template at the moment.
>
> How would I go about embedding a widget, that I can then add other 
> controls to, textboxes, buttons, etc).
>
> PS.  I know how to do this by adding to the log pane, but I want something 
> stand-alone, that is always visible.
>

-- 
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: Embedding your own custom Widget

2017-06-04 Thread Adrian Calvin
Sorry, nevermind.  The answer is here: http://leoeditor.com/FAQ.html

On Sunday, June 4, 2017 at 1:39:59 PM UTC-5, Adrian Calvin wrote:
>
> Hi,
>
> I am trying to figure out the *easiest *way to embed a widget in the 
> layout, *exactly* like viewrendered.
>
> The problem is, that being a neophyte to both leo and python, that plugin 
> is just way to complex for me to use as a model or template at the moment.
>
> How would I go about embedding a widget, that I can then add other 
> controls to, textboxes, buttons, etc).
>
> PS.  I know how to do this by adding to the log pane, but I want something 
> stand-alone, that is always visible.
>

-- 
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: Cross-file links

2017-06-04 Thread Largo84
Thanks, Lewis, but that's not what I'm looking for. I don't want the URL 
text to be in the body text at all. Consider this use case:


   - I write some content (LaTex, MarkDown or whatever) and I want to 
   create several links to other references (for example, citations or further 
   research). In Scrivener, I can link to other content, external URLs (web) 
   or other files or folders. There's no limit to how many links I can create, 
   or what type of links.
   - None of those actual link addresses are visible in the body text. They 
   only exist as 'attributes' of the text content, much like keyword tags.
   - The backlinks plugin does most of that as long as the links are to 
   other content nodes within the same .leo file.
   - What is needed is a way to create any type of link and any number of 
   them that are visible in a different tab (much like how the backlinks 
   plugin works).
   - Currently, the only option I have is to include the link URLs in the 
   body text and comment them out since they're not native LaTex; not very 
   clean and neat.

Are there any technical, design or practical reasons why the backlinks 
plugin is limited to 'internal' links? I thought about creating a new 
plugin based on the backlink plugin, but I don't have the faintest notion 
of where to begin.

Rob...

On Sunday, June 4, 2017 at 6:07:19 AM UTC-4, lewis wrote:
>
> You can use the bookmarks plugin to create links to other nodes *within* a 
> single .leo file. Simply edit the bookmark node's body text to include the 
> node name:
> N:/path/to/file/my_file.leo#node_name
> and for multi-level nodes:
> N:/path/to/file/my_file.leo#node_name-->child_node
>
> Regards
> Lewis
>
> On Saturday, June 3, 2017 at 12:56:31 AM UTC+10, Largo84 wrote:
>>
>> [snip
>>
>  
>
>> ] The bookmarks plugin doesn't really do what I need either. Any 
>> suggestions on how to create links to nodes in other .leo files?
>>
>

-- 
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.


Embedding your own custom Widget

2017-06-04 Thread Adrian Calvin
Hi,

I am trying to figure out the *easiest *way to embed a widget in the 
layout, *exactly* like viewrendered.

The problem is, that being a neophyte to both leo and python, that plugin 
is just way to complex for me to use as a model or template at the moment.

How would I go about embedding a widget, that I can then add other controls 
to, textboxes, buttons, etc).

PS.  I know how to do this by adding to the log pane, but I want something 
stand-alone, that is always visible.

-- 
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: Cross-file links

2017-06-04 Thread lewis
You can use the bookmarks plugin to create links to other nodes *within* a 
single .leo file. Simply edit the bookmark node's body text to include the 
node name:
N:/path/to/file/my_file.leo#node_name
and for multi-level nodes:
N:/path/to/file/my_file.leo#node_name-->child_node

Regards
Lewis

On Saturday, June 3, 2017 at 12:56:31 AM UTC+10, Largo84 wrote:
>
> [snip
>
 

> ] The bookmarks plugin doesn't really do what I need either. Any 
> suggestions on how to create links to nodes in other .leo files?
>

-- 
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: How to install on Windows 10

2017-06-04 Thread Graham Chiu
Thanks.  I got errors initially but then realized that I need a
administrator command before it would install.

On 4 June 2017 at 19:18, lewis  wrote:

> Firstly, the instructions for installing PyQt5 are at
> https://riverbankcomputing.com/software/pyqt/download5 under the heading 
> *Binary
> Packages*:
> *So long as you are using a supported version of Python you can install
> PyQt5 from PyPi by running: *
> pip3 install PyQt5
>
> The instructions are a little short on detail :) but they are describing
> how to install the PyQt5 using pip.
> The easiest way is the open a terminal window and cd to where you have
> python 3.6 installed:
>
> C:\Program files\Python36>
>
> then enter
>
> pip3 install PyQt5
>
>
> You should see the download and installation proceed in the terminal.
>
> Regards
> Lewis
>
>
> On Sunday, June 4, 2017 at 1:24:27 PM UTC+10, gchiu wrote:
>>
>> [snip]
>>
>> I downloaded a zip file PyQt5_gpl-5.8.2.zip and decompressed it .. but I
>> don't know what I'm supposed to do with it.
>>
> --
> 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.
>



-- 
Graham Chiu

-- 
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: How to install on Windows 10

2017-06-04 Thread lewis
Firstly, the instructions for installing PyQt5 are 
at https://riverbankcomputing.com/software/pyqt/download5 under the heading 
*Binary 
Packages*:
*So long as you are using a supported version of Python you can install 
PyQt5 from PyPi by running: *
pip3 install PyQt5

The instructions are a little short on detail :) but they are describing 
how to install the PyQt5 using pip.
The easiest way is the open a terminal window and cd to where you have 
python 3.6 installed:

C:\Program files\Python36>

then enter

pip3 install PyQt5


You should see the download and installation proceed in the terminal.

Regards
Lewis


On Sunday, June 4, 2017 at 1:24:27 PM UTC+10, gchiu wrote:
>
> [snip]
>
> I downloaded a zip file PyQt5_gpl-5.8.2.zip and decompressed it .. but I 
> don't know what I'm supposed to do with it.
>

-- 
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.