Re: OT

2014-08-04 Thread Fidel N
I loved this, thanks for the link Kent On Monday, August 4, 2014 3:39:03 PM UTC+2, Kent Tenney wrote: > > http://radar.oreilly.com/2014/08/programming-in-concert-mode.html > > live coding of music with narration, quite remarkable. > > Answers the question > 'What's all this excitement around fu

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread 'Terry Brown' via leo-editor
On Mon, 04 Aug 2014 13:59:38 -0400 Jacob Peck wrote: > I just added a minimal tag browser UI. Very cool. And of course you can move it out of the tabs window with the free-layout options on the pane divider context menus. Very minor - if, for some odd reason, you have two nodes with the same n

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 10:04 PM, Edward K. Ream wrote: > P.P.S. At present, vim mode's colon command is exactly equivalent to > Alt-X: it does *not* put a colon in the minibuffer. Fixed at rev 55f2004...Here is the checkin log: QQQ The vim colon command now enters a colon into the minibuffer. I

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 7:24 AM, Jacob Peck wrote: > And these! Leo now supports 7 new colon commands. The code for all these commands is straightforward. Please let me know if they don't work as you expect. Here is the checkin log for rev 6b21c05... QQQ Added the following colon commands. (At

Re: Terry, what's the recommended way to change border colors

2014-08-04 Thread 'Terry Brown' via leo-editor
On Mon, 4 Aug 2014 17:56:34 -0500 "Edward K. Ream" wrote: > By analogy, I tried the following, with no joy, but the background is > pink. > > QTextEdit#richTextEdit [vim_state ~= "vim_normal"] { > border: solid 3px red; > } > QTextEdit#richTextEdit [vim_state ~= "vim_insert"] {

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Kent Tenney
Huh, productive day :) Classic understatement [-: On Mon, Aug 4, 2014 at 7:14 PM, gatesphere wrote: > On 8/4/2014 4:15 PM, dufriz wrote: >> >> I can't believe it. What's next? > > Now the UI displays the tags for the currently selected node, and those tags > act as selectors for displaying all

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread gatesphere
On 8/4/2014 4:15 PM, dufriz wrote: I can't believe it. What's next? Now the UI displays the tags for the currently selected node, and those tags act as selectors for displaying all nodes with that tag. The only things left are: - UI for adding tags to nodes - UI for removing tags from nod

Re: Vim emulation: ready for testing!

2014-08-04 Thread Zoltan Benedek
Excellent work, Edward, I'll definitely test vim-mode in the coming days. On Sunday, August 3, 2014 1:43:12 PM UTC+3, Edward K. Ream wrote: > > There has been spectacular progress in the last four days. The first > recent commit, e7efb78..., was only three days ago, on July 31! > > It may actual

Re: Terry, what's the recommended way to change border colors

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 5:56 PM, Edward K. Ream wrote: > This works: > > QTextEdit#richTextEdit { > background-color: pink; > } > > By analogy, I tried the following, with no joy, but the background is pink. [snip] Wow. The styling is so complicated. I found the following settings in myLeoS

Re: Terry, what's the recommended way to change border colors

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 5:50 PM, Edward K. Ream wrote: > Hmm. I replaced the stylesheets that you suggested with just: > > QTextEdit { > background-color: red; > } > > This affects the background of the log pane, but not the body pane. This works: QTextEdit#richTextEdit { ba

Re: Terry, what's the recommended way to change border colors

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 4:42 PM, Edward K. Ream wrote: > On Mon, Aug 4, 2014 at 4:29 PM, 'Terry Brown' via leo-editor >> I'd do this: >> >> w = widget.to.be.styled() > [snip] > > Thanks! I'll try this soon. Not working yet. I added the stylesheets you suggested to @data qt-gui-user-style-s

Re: Terry, what's the recommended way to change border colors

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 4:29 PM, 'Terry Brown' via leo-editor wrote: >> How would you recommend doing [colored borders] with stylesheets? > > I'd do this: > > w = widget.to.be.styled() [snip] Thanks! I'll try this soon. For me, it would be a better indication of mode than different cursors,

Re: Terry, what's the recommended way to change border colors

2014-08-04 Thread 'Terry Brown' via leo-editor
On Mon, 4 Aug 2014 11:15:45 -0700 (PDT) "Edward K. Ream" wrote: > Ideally, I'd like vim-mode to put a red border around headline or > body text widgets when in normal mode, and a blue border around the > widgets when in insert mode. And maybe another color for visual mode. > > How would you rec

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Jacob Peck
On 8/4/2014 4:15 PM, dufriz wrote: I can't believe it. What's next? Hopefully, adding and removing tags without writing scripts :p THANKS again, Jake. No problem :) -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this grou

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread dufriz
On Mon, Aug 4, 2014 at 8:59 PM, Jacob Peck wrote: > There is now a browser UI for this plugin. It supports searching only, at > the moment. It allows for fancy complex queries based on set algebra to > filter on multiple criteria, for example: > > foo&bar|baz&hot|cold-water^fire > > This would

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Jacob Peck
There is now a browser UI for this plugin. It supports searching only, at the moment. It allows for fancy complex queries based on set algebra to filter on multiple criteria, for example: foo&bar|baz&hot|cold-water^fire This would filter as follows: - Find nodes with the tag 'foo' - Fro

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Jacob Peck
Correction: All vnodes have a v.u, which creates v.unknownAttributes on demand, if it doesn't exist already. Fixed in the latest commit. Good to know, for future reference... -->Jake On 8/4/2014 3:41 PM, Jacob Peck wrote: Umm... what? All vnodes have an unknownAttributes attribute! I have

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Jacob Peck
Umm... what? All vnodes have an unknownAttributes attribute! I have no clue what's going on here... -->Jake On 8/4/2014 3:30 PM, Kent Tenney wrote: AttributeError: 'VNode' object has no attribute 'unknownAttributes' -- You received this message because you are subscribed to the Google Group

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Kent Tenney
with nodetags.py active I get the following on Leo startup: hook failed: after-create-leo-frame, , leo.plugins.nodetags Traceback (most recent call last): File "/var/fetching/leo-editor/leo/core/leoPlugins.py", line 357, in callTagHandler result = handler(tag,keywords) File "/var/fetching/leo-edit

Terry, what's the recommended way to change border colors

2014-08-04 Thread Edward K. Ream
Ideally, I'd like vim-mode to put a red border around headline or body text widgets when in normal mode, and a blue border around the widgets when in insert mode. And maybe another color for visual mode. How would you recommend doing with stylesheets? Edward -- You received this message beca

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Jacob Peck
You'd need the latest version of Leo, from github: https://github.com/leo-editor/leo-editor/archive/master.zip On 8/4/2014 1:29 PM, duf...@gmail.com wrote: Jake, could you please provide the link for downloading nodetags.py? I googled "commit b9a764c59de263fbdb47969f1d318759b955c442" but got no

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Jacob Peck
I just added a minimal tag browser UI. Still need to use the API to add/remove tags. I have an idea for a more fully-featured UI I'd like to hack together. In theory, it wouldn't care whether or not the tags were short or long, as it'd all be done in a tab in the log pane, much like the 'nav

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 12:38 PM, Edward K. Ream wrote: > There is an itty-bitty problem with the jj abbreviation. It seems > impossible to type anything after a j :-) I'm on it. I found this because I started to eat my own dog food. Naturally, I had to disable vim-mode again, but I expect to

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 11:29 AM, Edward K. Ream wrote: There is an itty-bitty problem with the jj abbreviation. It seems impossible to type anything after a j :-) I'm on it. > I probably won't get to searching today--this is now on the list. I'll start with :wq There is a surprising amount o

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread 'Terry Brown' via leo-editor
On Mon, 04 Aug 2014 11:53:07 -0400 Jacob Peck wrote: > Regarding tags, I hacked the nodetags.py plugin together, available > at commit b9a764c59de263fbdb47969f1d318759b955c442. Nice. Interface wise, what do people think about short and long names for tags? Even as I ask, I suspect that's more

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread dufriz
Jake, could you please provide the link for downloading nodetags.py? I googled "commit b9a764c59de263fbdb47969f1d318759b955c442" but got no luck... -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Jacob Peck
Oh, sorry! You either need to add 'nodetags.py' to your @enabled-plugins node in myLeoSettings.leo, or set '@scripting-at-plugin-nodes = True' in myLeoSettings.leo. -->Jake On 8/4/2014 1:11 PM, duf...@gmail.com wrote: On Monday, 4 August 2014 16:53:11 UTC+1, Jacob Peck wrote: Regardin

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread dufriz
On Monday, 4 August 2014 17:57:25 UTC+1, Chris George wrote: > > Tagging would likely allow me to migrate entirely to Leo. > In my case, I resisted turning to other software for a long time, hoping for a Leo-only solution (because only Leo lets you have full control and flexibility over your dat

Re: A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread dufriz
On Monday, 4 August 2014 16:53:11 UTC+1, Jacob Peck wrote: > > Regarding tags, I hacked the nodetags.py plugin together, available at > commit b9a764c59de263fbdb47969f1d318759b955c442. > > Attached is a test leo file for playing with it. > > This is only an API for tags, but I feel like it sho

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread Chris George
It is simple and to the point. The only other relevant feature is how it creates links out of tags in text which take you to a tag search result. I find myself browsing and wandering through subjects and bits and pieces that provide all sorts of interesting ideas via cross-pollination. Chris

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread Jacob Peck
There's now a quick and dirty tagging API to use, if you're feeling brave and don't mind writing scripts/buttons for now: https://groups.google.com/forum/#!topic/leo-editor/HHleO2R2UPY But... it really needs a nice UI to shine. PiggyDB's UI looks promising! -->Jake On 8/4/2014 12:57 PM, Chri

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread Chris George
I will pipe up for tagging. I use Leo for outlining and writing. I use an app called piggydb for idea management . Tagging would likely allow me to migrate entirely to Leo. Chris On Monday, August 4, 2014 8:07:30 AM UTC-7, duf...@gmail.com wrote: > > > https://groups.goo

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Monday, August 4, 2014 10:55:04 AM UTC-5, Kent Tenney wrote: the '/' command for searching forward, '?' for searching backwards > > followed by 'n' for next match > - probably my #1 fav > I probably won't get to searching today--this is now on the list. vim mode now seems ready for me to s

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Monday, August 4, 2014 10:29:40 AM UTC-5, Edward K. Ream wrote: > Bring it on, indeed. Rev c0781f2... supports the jj abbreviation in insert mode. In insert mode *only*, jj ends insert mode (setting the dot) and enters normal mode. This is something that quickly becomes second nature. Edw

Re: Vim emulation: ready for testing!

2014-08-04 Thread Kent Tenney
On Mon, Aug 4, 2014 at 10:29 AM, Edward K. Ream wrote: > On Sunday, August 3, 2014 12:18:11 PM UTC-5, Kent Tenney wrote: > >> Wow, I was regretting raining on your parade, but you're sounding totally >> like 'bring it on!' > > Leo now supports gg and G, in both normal and visual modes. gg works >

A quick-and-dirty tag API can now be had with the nodetags.py plugin

2014-08-04 Thread Jacob Peck
Regarding tags, I hacked the nodetags.py plugin together, available at commit b9a764c59de263fbdb47969f1d318759b955c442. Attached is a test leo file for playing with it. This is only an API for tags, but I feel like it should simplify the process and allow someone to focus on the important bits

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Sunday, August 3, 2014 12:18:11 PM UTC-5, Kent Tenney wrote: > Wow, I was regretting raining on your parade, but you're sounding totally like 'bring it on!' Leo now supports gg and G, in both normal and visual modes. gg works exactly like in vim: it puts the cursor on the first non-blank ch

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread dufriz
https://groups.google.com/forum/#!searchin/leo-editor/tags/leo-editor/52AILH7dheo/2AyOEo-qgIcJ https://groups.google.com/forum/#!searchin/leo-editor/tags/leo-editor/4CeJ-ITrvWo/hJCr2mOLrfAJ -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsu

debugging Leo with git bisect

2014-08-04 Thread 'Terry Brown' via leo-editor
git bisect is great for finding the revision that broke something, but there's an odd Leo specific issue to work around. For a month or more in early 2014 there are Leo commits that abort if .../.git/HEAD doesn't contain a space. It's usually "ref: refs/heads/master" but while using git bisect it

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread dufriz
Sure, Terry. https://groups.google.com/forum/#!searchin/leo-editor/tags/leo-editor/52AILH7dheo/2AyOEo-qgIcJ https://groups.google.com/forum/#!searchin/leo-editor/tags/leo-editor/aXOxkhDqBxw/hG9pG2xRQ2cJ https://groups.google.com/forum/#!searchin/leo-editor/tags/leo-editor/jq8TtuvaD80/QmpE3iQAweEJ

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread 'Terry Brown' via leo-editor
On Mon, 4 Aug 2014 07:40:38 -0700 (PDT) duf...@gmail.com wrote: > I am glad I am not the only one who finds tags essential. > > I REALLY wish tags are implemented soon. If someone else is > interested in them, please chime in. Hi Dufriz, could you do me a favor and dig up the old threads discuss

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread 'Terry Brown' via leo-editor
On Mon, 4 Aug 2014 09:39:33 -0500 Kent Tenney wrote: > from active_path About > "If a node is named @path , the content (file and > folder names) of the folder and the children of that node will > synchronized whenever you double-click the node's status-iconbox." > > I'm not seeing this current

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread dufriz
I am glad I am not the only one who finds tags essential. I REALLY wish tags are implemented soon. If someone else is interested in them, please chime in. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop r

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread Kent Tenney
from active_path About "If a node is named @path , the content (file and folder names) of the folder and the children of that node will synchronized whenever you double-click the node's status-iconbox." I'm not seeing this currently, I'm using 'set to absolute recursive', which prepends @auto and

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread Jacob Peck
Tagging support would be ideal, that's for sure. Once that is implemented, the rest would be a series of trivial scripts, I feel. I think this should be a push for a node-tagging plugin ;) The real question is the same as always -- how to do UI for tags? I feel like an 'invisible' tagging sys

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread dufriz
Thanks, Terry. Prompt reply as usual, and to the point. So, now I am left asking the crucial question (keeping my fingers crossed): any chance that you or someone else may work on this in the near future? Don't you think that this is a functionality that deserves being implemented? -- You rece

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread 'Terry Brown' via leo-editor
On Mon, 4 Aug 2014 07:01:17 -0700 (PDT) duf...@gmail.com wrote: > (I hope you don't mind that fact that I am resuscitating a 4-year old > thread.) > > I was going to write a post exactly like the OP of this thread, when > I discovered that this question had already been asked in this > thread, s

Re: using leo to organize and manage my digital library composed of videos, audio, pdf, etc.

2014-08-04 Thread dufriz
(I hope you don't mind that fact that I am resuscitating a 4-year old thread.) I was going to write a post exactly like the OP of this thread, when I discovered that this question had already been asked in this thread, so here I am jumping in. Basically, I have precisely the same needs as the

Re: Vim emulation: ready for testing!

2014-08-04 Thread Jacob Peck
On 8/4/2014 9:45 AM, Edward K. Ream wrote: On Mon, Aug 4, 2014 at 7:37 AM, Jacob Peck wrote: On 8/4/2014 8:33 AM, Edward K. Ream wrote: BTW, I have just verified that you can indent/unindent selected lines (insert mode *only*) using tab/shift-tab. Perhaps in vim, but I live in vi (sans 'm').

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Mon, Aug 4, 2014 at 7:37 AM, Jacob Peck wrote: > > On 8/4/2014 8:33 AM, Edward K. Ream wrote: >> >> BTW, I have just verified that you can indent/unindent selected lines >> (insert mode *only*) using tab/shift-tab. > > Perhaps in vim, but I live in vi (sans 'm'). Solaris doesn't seem to have >

OT

2014-08-04 Thread Kent Tenney
http://radar.oreilly.com/2014/08/programming-in-concert-mode.html live coding of music with narration, quite remarkable. Answers the question 'What's all this excitement around functional programming?' Is that Lighttable he's on? -- You received this message because you are subscribed to the G

Re: Vim emulation: ready for testing!

2014-08-04 Thread Jacob Peck
On 8/4/2014 8:33 AM, Edward K. Ream wrote: BTW, I have just verified that you can indent/unindent selected lines (insert mode *only*) using tab/shift-tab. Perhaps in vim, but I live in vi (sans 'm'). Solaris doesn't seem to have entered this decade :p -->Jake -- You received this message be

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Monday, August 4, 2014 7:24:38 AM UTC-5, Jacob Peck wrote: > And these! > > :e! > revert all changes since the current file was loaded (i.e. reload from > disk) > In a Leo context, this would probably make more sense on an @ node. > > :wq > Save and exit. I use this one all the time ;)

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Monday, August 4, 2014 4:52:58 AM UTC-5, Edward K. Ream wrote: > There has been spectacular progress in the last four days. Rev b78f1ba... simplifies the vim-mode init logic, as described here: https://groups.google.com/d/msg/leo-editor/SVmxgvcQbqY/iRycTO1QG8kJ The code passes hand tests--th

Re: Vim emulation: ready for testing!

2014-08-04 Thread Jacob Peck
On 8/3/2014 1:17 PM, Kent Tenney wrote: gg and G for jumping to beginning and end of file. :r filename put contents of filename at cursor position :!shell command :e directory name presents list of files in the directory, selecting and opens a file :tabnew filename opens filename in a new t

Re: ENB: collapsing complexity in vim mode

2014-08-04 Thread Edward K. Ream
On Sunday, August 3, 2014 1:29:19 PM UTC-5, Edward K. Ream wrote: >> ...keep revising code until it *obviously* is the simplest code possible. >To make this scheme work, all key handlers must end in an acceptance method: vc.accept, vc.delegate or vc.ignore. > As a result, [the new] key handlers

Re: Python-related questions

2014-08-04 Thread dufriz
On Sunday, 3 August 2014 18:05:37 UTC+1, Terry wrote: > > On Sun, 3 Aug 2014 04:54:36 -0700 (PDT) > duf...@gmail.com wrote: > > > On Sunday, 3 August 2014 02:17:02 UTC+1, Terry wrote: > > > > > > Not sure, but maybe C:\PythonXY\pythonw.exe instead of > > > C:\PythonXY\python.exe > > > > > >

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Sunday, August 3, 2014 5:43:12 AM UTC-5, Edward K. Ream wrote: > There has been spectacular progress in the last four days. And yesterday there was excellent progress behind the scenes. Rev ebacdc1... simplifies the entire scanning logic. These changes will surely speed development consider

Re: Vim emulation: ready for testing!

2014-08-04 Thread Edward K. Ream
On Sunday, August 3, 2014 12:55:02 PM UTC-5, Edward K. Ream wrote: > Right now : is an exact synonym for Alt-x. Not exactly sure how to integrate these colon-forms with Leo... This will likely work: - The vim : command pre-loads a colon into the minibuffer. - leoVim.py defines commands (using

@language factor @comment !_

2014-08-04 Thread Georg Simon
In Factor line comments start with an exclamation point followed by a space. But the @language directive leads to lines like !@+leo-ver=5-thin instead of ! @+leo-ver=5-thin For now I added the following line after the @language directive: @comment !_ I think the correct solution is a modified

Autocompleting dictionaries keys

2014-08-04 Thread Fidel N
Hi: This is a feature request that I thought could be very nice. The idea is that, when using Leo autocomplete, if the user reaches a dictionary, leo could offer autocomplete with its keys. so if we want to reach, for instance, the hooks dictionary, we do: g.app.pluginsController.handlers Then,