Skip to content

Commit dd0c11c

Browse files
author
yotsuyanagi
committed
update editor utils
1 parent a56113e commit dd0c11c

File tree

9 files changed

+59
-7
lines changed

9 files changed

+59
-7
lines changed

.editorconfig

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# http://editorconfig.org
2+
# Source: pydanny cookiecutter-django repo
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.{py,rst,ini}]
13+
indent_style = space
14+
indent_size = 4
15+
16+
[*.yml]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[{Makefile,**.mk}]
21+
# Use tabs for indentation (Makefiles require tabs)
22+
indent_style = tab

.gitignore

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# General
22
tmp
33
temp
4-
#*
4+
\#*
55
.#*
6+
~*
67

78
# Editor
89
*~
@@ -12,8 +13,9 @@ temp
1213
# Python
1314
*.pyc
1415
*.pyo
16+
*.eggs
17+
*.egg-info/
1518
dist/
16-
jj_menu.egg-info/
1719

1820
# Windows
1921
Thumbs.db
@@ -53,6 +55,11 @@ Podfile.lock
5355
# JetBrains
5456
.idea
5557

58+
# virtualenv
59+
venv
60+
.venv
61+
5662
# if required
5763
# data/*
5864
# config/*
65+
#

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
test:
2+
flake8 jj_menu
3+
python setup.py test
4+
5+
upload:
6+
python setup.py sdist
7+
twine upload dist/*
8+
9+
edit:
10+
open -a PyCharm .
11+
12+
virtualenv:
13+
python3 -m venv venv

README.ja.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ jj-menu
44

55
シンプル CUI (TUI) メニュー
66

7+
.. image:: https://img.shields.io/pypi/v/jj-menu.svg
8+
:target: https://pypi.python.org/pypi/jj-menu/
9+
:alt: Latest PyPI version
10+
711
.. image:: demo/jj-demo.gif
812

913
インストール

README.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ jj-menu
44

55
Simple CUI (TUI) Menu
66

7+
.. image:: https://img.shields.io/pypi/v/jj-menu.svg
8+
:target: https://pypi.python.org/pypi/jj-menu/
9+
:alt: Latest PyPI version
10+
711
.. image:: demo/jj-demo.gif
812

913
Install

activate-jj.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
function jj(){
33
RESULT_FILE=/tmp/_jj_result
44
jj-menu --result-file=${RESULT_FILE}
5-
if [ $? == 0 ]; then
5+
if [ $? = 0 ]; then
66
history -s `cat ${RESULT_FILE}`
77
source ${RESULT_FILE}
88
fi

jj_menu/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# coding: utf-8
33

44
__author__ = 'ytyng'
5-
__version__ = '0.2.1'
5+
__version__ = '0.2.2'
66
__license__ = 'BSD'

jj_menu/jj_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
function jj(){
4343
RESULT_FILE=/tmp/_jj_result
4444
jj-menu --result-file=${RESULT_FILE}
45-
if [ $? == 0 ]; then
45+
if [ $? = 0 ]; then
4646
history -s `cat ${RESULT_FILE}`
4747
source ${RESULT_FILE}
4848
fi

jjfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
}
1212

1313
menu = [
14-
('PyPI register', 'python setup.py register', {"color": 2}),
15-
('PyPI upload', 'python setup.py sdist upload', {"color": 3}),
14+
('Launch editor', 'open -a PyCharm .'),
15+
('Build package', 'python setup.py sdist', {"color": 2}),
16+
('Upload package', 'twine upload dist/*', {"color": 3}),
17+
('Test', 'python setup.py test'),
1618
('Git logs (simple)',
1719
'git log --graph --date-order -C -M '
1820
'--pretty=format:"<%h> %ad [%an] %Cgreen%d%Creset %s" '

0 commit comments

Comments
 (0)