Changeset - 8a59efa577c1
[Not reviewed]
default
0 0 1
drewp@bigasterisk.com - 17 years ago 2008-06-13 04:43:25
drewp@bigasterisk.com
new zsh completer for curvecalc
1 file changed with 19 insertions and 0 deletions:
0 comments (0 inline, 0 general)
bin/listsongs
Show inline comments
 
new file 100644
 
#!/usr/bin/python
 

	
 
"""for completion, print the available song uris on stdout
 

	
 
in .zshrc:
 

	
 
function _songs { local expl;  _description files expl 'songs';  compadd "$expl[@]" - `${LIGHT9_SHOW}/../../bin/listsongs` }
 
compdef _songs curvecalc
 
"""
 

	
 
import run_local
 
from light9 import showconfig
 
from light9.namespaces import L9
 
from rdflib import RDF
 
graph = showconfig.getGraph()
 

	
 
for song in graph.subjects(RDF.type, L9['Song']):
 
    print song
 
    
0 comments (0 inline, 0 general)