-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ana
committed
Jul 12, 2022
1 parent
67c9c81
commit 1259679
Showing
11 changed files
with
66 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ test: | |
|
||
.PHONY=clean | ||
clean: | ||
rm -fr build dist tree_pick.egg-info | ||
rm -fr build dist pickpack.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from anytree import Node, RenderTree | ||
from tree_pick import tree_pick | ||
from pickpack import pickpack | ||
|
||
title = 'Select:' | ||
children = [Node('foo.bar%s.baz'%x, index=x) for x in range(1, 71)] | ||
root = Node("All", children=children) | ||
|
||
options = RenderTree(root) | ||
option, index = tree_pick(options, title, indicator='=>', default_index=2) | ||
option, index = pickpack(options, title, indicator='=>', default_index=2) | ||
print(option, index) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[tool.poetry] | ||
name = "tree_pick" | ||
name = "pickpack" | ||
version = "1.0.0" | ||
description = "Based on wong2's pick, tree_pick is a terminal GUI which allows you to pick one or more options from a tree structure" | ||
description = "Based on wong2's pick, pickpack is a terminal GUI which allows you to pick one or more options from a tree structure" | ||
authors = ["Ana <[email protected]>", "wong2 <[email protected]>"] | ||
license = "MIT" | ||
readme = "README.md" | ||
repository = "https://github.com/anafvana/tree_pick" | ||
homepage = "https://github.com/anafvana/tree_pick" | ||
repository = "https://github.com/anafvana/pickpack" | ||
homepage = "https://github.com/anafvana/pickpack" | ||
keywords = ["terminal", "gui", "pick", "tree"] | ||
|
||
[tool.poetry.dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.