Skip to content

Commit 360af49

Browse files
committed
supply setup.py
1 parent e425d02 commit 360af49

4 files changed

Lines changed: 83 additions & 2 deletions

File tree

Datastruct.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import curses
21
from copy import deepcopy
32

43

README

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
## NAME
2+
Pscad - descr.
3+
4+
## SYNOPSIS
5+
`pscad.py [-h] [-o OUT_FILE] IN_FILE`
6+
7+
## DESCRIPTION
8+
Pscad will open and parse `IN_FILE`. The file will not automatically be written to.
9+
10+
* `-h, --help` - show usage information and exit
11+
* `-o, --outfile OUT_FILE` - When this file is given Pscad will write the current state of the opened document on every change. This can be used to have OpenSCAD monitor the file and render automatically.
12+
13+
## COMMANDS
14+
### CONTROL
15+
* `z` - Undo last action.
16+
* `Z` - Redo last undo.
17+
* `q` - Quit Pscad.
18+
* `Q` - Quit Pscad even if document is not (auto) written.
19+
* `w` - Write file, when no OUT_FILE given overwrite IN_FILE.
20+
* `esc` - Reset edits and close dialogs
21+
22+
### NAVIGATION
23+
`up/down, home/end, page up/down`
24+
25+
### TREE MANIPULATION
26+
* `y` - Yank node from tree and copy to clipboard. Its children will be transferred to its parent.
27+
* `Y` - Yank node and children from tree and copy to clipboard.
28+
* `x` - Delete node from tree. Its children will be transferred to its parent.
29+
* `X` - Delete node and children from tree.
30+
* `p` - Paste clipboad contents after selected node as sibbling.
31+
* `P` - Paste clipboad contents before selected node as sibbling.
32+
* `g` - Gobble up next sibling and make it last child.
33+
* `G` - Degobble last child make it a sibling.
34+
* `a` - Insert new node as first child.
35+
* `A` - Inser new node as next sibling.
36+
* `Tab` - Push the node in sibling's child list.
37+
* `STab` - Pop node from parents child list and become a sibling.
38+
* `enter` - Start editing a node.
39+
40+
### MODIFIERS
41+
* `*` - Toggle *disable*
42+
* `!` - Toggle *show only*
43+
* `#` - Toggle *highlight*
44+
* `%` - Toggle *transparent*
45+
* `/` - Toggle comment
46+
47+
### SHORTCUTS
48+
* `d` - New child node difference()
49+
* `D` - New parent node differnce()
50+
* `u` - New child node union()
51+
* `U` - New parent node union()
52+
* `i` - New child node intersection()
53+
* `I` - New parent node intersection()
54+
* `t` - New child node translate()
55+
* `T` - New parent node translate()
56+
* `r` - New child node rotate()
57+
* `R` - New parent node rotate()
58+
* `s` - New child node scale()
59+
* `S` - New parent node scale()
60+
61+
## AUTHOR
62+
## REPORTING BUGS
63+
## COPYRIGHT
64+
## SEE ALSO
65+
openscad(1)

pscad.py renamed to pscad

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env python3
22

3-
import curses, urwid
3+
import urwid
44
from sys import argv
55

66
## project specific includes

setup.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python3
2+
3+
from distutils.core import setup
4+
setup(name='pscad',
5+
version='0.1',
6+
description='Terminal based OpenSCAD file editor',
7+
author='Yuri Schaeffer',
8+
author_email='yuri@schaeffer.tk',
9+
url='https://github.com/yschaeff/pscad',
10+
11+
py_modules=['clipboard', 'Datastruct', 'importer', 'undo', 'validation'],
12+
scripts=['pscad'],
13+
classifiers = [
14+
"Programming Language :: Python :: 3 :: only",
15+
],
16+
requires = ["urwid", "copy", "re", "os", "collections"],
17+
)

0 commit comments

Comments
 (0)