gitonic 0.0.15__tar.gz → 0.17.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gitonic-0.0.15 → gitonic-0.17.0}/CHANGELOG.md +33 -8
- {gitonic-0.0.15 → gitonic-0.17.0}/MANIFEST.in +3 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/PKG-INFO +185 -25
- {gitonic-0.0.15 → gitonic-0.17.0}/README.md +120 -6
- gitonic-0.17.0/git-alt.svg +1 -0
- gitonic-0.17.0/git-black.svg +1 -0
- gitonic-0.17.0/git-red.svg +1 -0
- gitonic-0.17.0/git-white.svg +1 -0
- gitonic-0.17.0/gitonic/const.py +1 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/gitutil.py +21 -7
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/gui.py +90 -23
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/main.py +8 -1
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic.egg-info/PKG-INFO +185 -25
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic.egg-info/SOURCES.txt +4 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic.egg-info/entry_points.txt +0 -4
- {gitonic-0.0.15 → gitonic-0.17.0}/pyproject.toml +3 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/setup.py +4 -0
- gitonic-0.0.15/gitonic/const.py +0 -1
- {gitonic-0.0.15 → gitonic-0.17.0}/BACKLOG.md +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/LICENSE.md +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/__init__.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/__main__.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/file.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/icons.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/pyjsoncfg.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/singleinstance.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/sysutil.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/task.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/tile/__init__.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/tile/core.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic/tile/tkcmd.py +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic.egg-info/dependency_links.txt +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic.egg-info/requires.txt +8 -8
- {gitonic-0.0.15 → gitonic-0.17.0}/gitonic.egg-info/top_level.txt +0 -0
- {gitonic-0.0.15 → gitonic-0.17.0}/setup.cfg +0 -0
|
@@ -2,14 +2,39 @@
|
|
|
2
2
|
# Changelog
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## version v0.17.0 - 20250715
|
|
6
|
+
- added `$NAME` to context-menu variables for `os.path.basename` placeholder
|
|
7
|
+
- added official logos from [git-scm](https://git-scm.com/downloads/logos)
|
|
8
|
+
- added `basic-ctx` sample in README
|
|
9
|
+
- partial fix rename/ moved files
|
|
10
|
+
-
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## version v0.16.0 - 20250219
|
|
14
|
+
|
|
15
|
+
- support for multiple repo workspaces
|
|
16
|
+
- on `settings` tab the `workspaces` entry field accepts a
|
|
17
|
+
list of paths separated by `;`
|
|
18
|
+
- use `~` for user-home path
|
|
19
|
+
- blanks between `;` separated paths are ignored
|
|
20
|
+
- when using double or single quotes around paths make sure the `;` exists to separate paths
|
|
21
|
+
- blanks at the start or end of paths are not supported
|
|
22
|
+
- added `$PYTHON` to context menu variables
|
|
23
|
+
- added clear message after commit select box
|
|
24
|
+
- added keyboard interrupt cntrl+c handler
|
|
25
|
+
- added `workdir` key for context menu handlers
|
|
26
|
+
- changing versioning scheme in pypi
|
|
27
|
+
-
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## version v0.0.15 - 20240812
|
|
6
31
|
|
|
7
32
|
- fix: blank in path will show file as deleted
|
|
8
33
|
- fix: rename file with git
|
|
9
34
|
-
|
|
10
35
|
|
|
11
36
|
|
|
12
|
-
|
|
37
|
+
## version v0.0.14 - 20240518
|
|
13
38
|
|
|
14
39
|
- improved formatter
|
|
15
40
|
- support for multiple file extension for single config entry
|
|
@@ -26,13 +51,13 @@
|
|
|
26
51
|
-
|
|
27
52
|
|
|
28
53
|
|
|
29
|
-
|
|
54
|
+
## version v0.0.13 - 20231125
|
|
30
55
|
|
|
31
56
|
- show all untracked files on changes tab (not only the folder)
|
|
32
57
|
-
|
|
33
58
|
|
|
34
59
|
|
|
35
|
-
|
|
60
|
+
## version v0.0.12 - 20231111
|
|
36
61
|
|
|
37
62
|
- support for more code formatters (included in standard installation as extras)
|
|
38
63
|
- install with `pip install gitonic[PEP08]`
|
|
@@ -47,7 +72,7 @@
|
|
|
47
72
|
-
|
|
48
73
|
|
|
49
74
|
|
|
50
|
-
|
|
75
|
+
## version v0.0.11 - 20230710
|
|
51
76
|
|
|
52
77
|
- fixed logging
|
|
53
78
|
- fix no branch crash when no branch is set up
|
|
@@ -60,20 +85,20 @@
|
|
|
60
85
|
-
|
|
61
86
|
|
|
62
87
|
|
|
63
|
-
|
|
88
|
+
## version v0.0.10 - 20230225
|
|
64
89
|
|
|
65
90
|
- sort files in changes tab
|
|
66
91
|
-
|
|
67
92
|
|
|
68
93
|
|
|
69
|
-
|
|
94
|
+
## version v0.0.9 - 20221008
|
|
70
95
|
|
|
71
96
|
- git current branch in changes tab
|
|
72
97
|
- support for black
|
|
73
98
|
-
|
|
74
99
|
|
|
75
100
|
|
|
76
|
-
|
|
101
|
+
## version v0.0.8 - 20220802
|
|
77
102
|
|
|
78
103
|
- bug fix, due to corrupted local env
|
|
79
104
|
- double click in changes view will stage/ unstage a file
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: gitonic
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.17.0
|
|
4
4
|
Summary: manage a multi git workspace
|
|
5
5
|
Home-page: https://github.com/kr-g/gitonic
|
|
6
6
|
Author: k. goger
|
|
7
7
|
Author-email: k.r.goger+gitonic@gmail.com
|
|
8
8
|
License: AGPLv3+
|
|
9
9
|
Keywords: python utility shell git git-workspace tkinter
|
|
10
|
-
Platform: UNKNOWN
|
|
11
10
|
Classifier: Development Status :: 3 - Alpha
|
|
12
11
|
Classifier: Operating System :: POSIX :: Linux
|
|
13
12
|
Classifier: Environment :: Other Environment
|
|
@@ -17,19 +16,43 @@ Classifier: Topic :: Desktop Environment
|
|
|
17
16
|
Classifier: Topic :: Software Development :: Version Control :: Git
|
|
18
17
|
Classifier: Programming Language :: Python :: 3
|
|
19
18
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
|
|
20
|
-
Requires-Python: >=3.
|
|
19
|
+
Requires-Python: >=3.12
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
22
|
-
Provides-Extra: DEFAULT
|
|
23
|
-
Provides-Extra: MELD
|
|
24
|
-
Provides-Extra: PEP08
|
|
25
|
-
Provides-Extra: PEP08_BLACK
|
|
26
|
-
Provides-Extra: PEP08_FULL
|
|
27
21
|
License-File: LICENSE.md
|
|
22
|
+
Requires-Dist: pytkfaicons
|
|
23
|
+
Requires-Dist: tkinter-tooltip
|
|
24
|
+
Provides-Extra: pep08
|
|
25
|
+
Requires-Dist: pycodestyle; extra == "pep08"
|
|
26
|
+
Requires-Dist: flake8; extra == "pep08"
|
|
27
|
+
Requires-Dist: autopep8; extra == "pep08"
|
|
28
|
+
Provides-Extra: pep08-black
|
|
29
|
+
Requires-Dist: pycodestyle; extra == "pep08-black"
|
|
30
|
+
Requires-Dist: flake8; extra == "pep08-black"
|
|
31
|
+
Requires-Dist: black; extra == "pep08-black"
|
|
32
|
+
Provides-Extra: pep08-full
|
|
33
|
+
Requires-Dist: pycodestyle; extra == "pep08-full"
|
|
34
|
+
Requires-Dist: flake8; extra == "pep08-full"
|
|
35
|
+
Requires-Dist: autopep8; extra == "pep08-full"
|
|
36
|
+
Requires-Dist: black; extra == "pep08-full"
|
|
37
|
+
Requires-Dist: yapf; extra == "pep08-full"
|
|
38
|
+
Provides-Extra: meld
|
|
39
|
+
Requires-Dist: meld; extra == "meld"
|
|
40
|
+
Provides-Extra: default
|
|
41
|
+
Requires-Dist: pycodestyle; extra == "default"
|
|
42
|
+
Requires-Dist: flake8; extra == "default"
|
|
43
|
+
Requires-Dist: autopep8; extra == "default"
|
|
44
|
+
Requires-Dist: meld; extra == "default"
|
|
45
|
+
Dynamic: author
|
|
46
|
+
Dynamic: author-email
|
|
47
|
+
Dynamic: home-page
|
|
48
|
+
Dynamic: license-file
|
|
49
|
+
Dynamic: requires-dist
|
|
50
|
+
Dynamic: requires-python
|
|
28
51
|
|
|
29
52
|
[](https://www.python.org/dev/peps/pep-0008/)
|
|
30
53
|
|
|
31
54
|
|
|
32
|
-
you are reading VERSION = v0.0
|
|
55
|
+
you are reading VERSION = v0.17.0
|
|
33
56
|
|
|
34
57
|
|
|
35
58
|
# gitonic
|
|
@@ -206,13 +229,30 @@ files with extension `.pyx` change the setting to
|
|
|
206
229
|
}
|
|
207
230
|
}
|
|
208
231
|
|
|
232
|
+
or in case autopep8 is installed in a venv, e.g.
|
|
233
|
+
|
|
234
|
+
{
|
|
235
|
+
".py,.pyx": {
|
|
236
|
+
"cmd": "~/gitonic/.venv/bin/autopep8",
|
|
237
|
+
"para": [
|
|
238
|
+
"-i",
|
|
239
|
+
"%file"
|
|
240
|
+
]
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
|
|
209
245
|
|
|
210
246
|
### black
|
|
211
247
|
|
|
212
248
|
black is also an offical python tool, but resolves not fully to issues reported by pycodestyle.
|
|
213
249
|
there might be some rework required (from case to case).
|
|
214
|
-
result is quite similar to
|
|
215
|
-
|
|
250
|
+
result is quite similar to
|
|
251
|
+
[autopep8](https://github.com/hhatto/autopep8)
|
|
252
|
+
beside the list reported by pycodestyle (after formatting)
|
|
253
|
+
is a bit longer comparing to
|
|
254
|
+
[autopep8](https://github.com/hhatto/autopep8)
|
|
255
|
+
what does a better job here.
|
|
216
256
|
|
|
217
257
|
{
|
|
218
258
|
".py": {
|
|
@@ -288,6 +328,7 @@ the general structure is:
|
|
|
288
328
|
{
|
|
289
329
|
"a-context-name-ctx": {
|
|
290
330
|
"expr": "*",
|
|
331
|
+
"workdir": ".",
|
|
291
332
|
"menu": [
|
|
292
333
|
[
|
|
293
334
|
"some text $GIT",
|
|
@@ -309,13 +350,19 @@ the general structure is:
|
|
|
309
350
|
}
|
|
310
351
|
|
|
311
352
|
|
|
312
|
-
here the variables `$GIT`, `$PATH`, or `$
|
|
313
|
-
by the corrosponding path before execution.
|
|
353
|
+
here the variables `$GIT`, `$FILE`, `$PATH`, `$NAME`, or `$PYTHON`
|
|
354
|
+
are replaced by the corrosponding path before execution.
|
|
355
|
+
where `$PYTHON` expands to `sys.executable` from `gitonic` runtime.
|
|
356
|
+
and `$NAME` is a placeholder for `os.path.basedir`,
|
|
357
|
+
and `$PATH` for `os.path.dirname`
|
|
314
358
|
|
|
315
359
|
the `expr` key contains a single file pattern, or a list of
|
|
316
360
|
file patterns - when to enable the context menu.
|
|
317
361
|
the file pattern is following Unix filename pattern matching.
|
|
318
362
|
|
|
363
|
+
the `workdir` key will change the current working directory before running
|
|
364
|
+
the command.
|
|
365
|
+
|
|
319
366
|
the `menu` array contains the text to display in the menu,
|
|
320
367
|
and the command params as embedded array.
|
|
321
368
|
|
|
@@ -353,6 +400,36 @@ for running on linux with xfce.
|
|
|
353
400
|
]
|
|
354
401
|
]
|
|
355
402
|
},
|
|
403
|
+
"basic-ctx": {
|
|
404
|
+
"expr": "*",
|
|
405
|
+
"menu": [
|
|
406
|
+
[
|
|
407
|
+
"less $NAME at $PATH",
|
|
408
|
+
[
|
|
409
|
+
"xfce4-terminal",
|
|
410
|
+
"-x",
|
|
411
|
+
"less",
|
|
412
|
+
"$FILE"
|
|
413
|
+
]
|
|
414
|
+
],
|
|
415
|
+
[
|
|
416
|
+
"edit $NAME at $PATH",
|
|
417
|
+
[
|
|
418
|
+
"xed",
|
|
419
|
+
"$FILE"
|
|
420
|
+
]
|
|
421
|
+
],
|
|
422
|
+
[
|
|
423
|
+
"vi $NAME at $PATH",
|
|
424
|
+
[
|
|
425
|
+
"xfce4-terminal",
|
|
426
|
+
"-x",
|
|
427
|
+
"vi",
|
|
428
|
+
"$FILE"
|
|
429
|
+
]
|
|
430
|
+
]
|
|
431
|
+
]
|
|
432
|
+
},
|
|
356
433
|
"spyder-ctx": {
|
|
357
434
|
"expr": "*.py",
|
|
358
435
|
"menu": [
|
|
@@ -365,7 +442,20 @@ for running on linux with xfce.
|
|
|
365
442
|
]
|
|
366
443
|
]
|
|
367
444
|
},
|
|
368
|
-
"
|
|
445
|
+
"autopep8-ctx": {
|
|
446
|
+
"expr": "*.py",
|
|
447
|
+
"menu": [
|
|
448
|
+
[
|
|
449
|
+
"autopep8 python $FILE",
|
|
450
|
+
[
|
|
451
|
+
"autopep8",
|
|
452
|
+
"-i",
|
|
453
|
+
"$FILE"
|
|
454
|
+
]
|
|
455
|
+
]
|
|
456
|
+
]
|
|
457
|
+
},
|
|
458
|
+
"geany-path": {
|
|
369
459
|
"expr": [
|
|
370
460
|
"*.c",
|
|
371
461
|
"*.cpp",
|
|
@@ -380,6 +470,48 @@ for running on linux with xfce.
|
|
|
380
470
|
]
|
|
381
471
|
]
|
|
382
472
|
]
|
|
473
|
+
},
|
|
474
|
+
"uncrustify-path": {
|
|
475
|
+
"expr": [
|
|
476
|
+
"*.c",
|
|
477
|
+
"*.cpp",
|
|
478
|
+
"*.h"
|
|
479
|
+
],
|
|
480
|
+
"menu": [
|
|
481
|
+
[
|
|
482
|
+
"uncrustify c $FILE",
|
|
483
|
+
[
|
|
484
|
+
"uncrustify",
|
|
485
|
+
"-c",
|
|
486
|
+
"~/.gitonic/uncrustify.cfg",
|
|
487
|
+
"--replace",
|
|
488
|
+
"$FILE",
|
|
489
|
+
"--no-backup",
|
|
490
|
+
"--if-changed"
|
|
491
|
+
]
|
|
492
|
+
]
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
"git-base-tools": {
|
|
496
|
+
"expr": [
|
|
497
|
+
"*"
|
|
498
|
+
],
|
|
499
|
+
"workdir" : "$GIT",
|
|
500
|
+
"menu": [
|
|
501
|
+
[
|
|
502
|
+
"gitk $GIT",
|
|
503
|
+
[
|
|
504
|
+
"gitk"
|
|
505
|
+
]
|
|
506
|
+
],
|
|
507
|
+
[
|
|
508
|
+
"git gui $GIT",
|
|
509
|
+
[
|
|
510
|
+
"git",
|
|
511
|
+
"gui"
|
|
512
|
+
]
|
|
513
|
+
]
|
|
514
|
+
]
|
|
383
515
|
}
|
|
384
516
|
}
|
|
385
517
|
|
|
@@ -387,9 +519,12 @@ for running on linux with xfce.
|
|
|
387
519
|
remark:
|
|
388
520
|
the sample config file provides support for opening
|
|
389
521
|
- terminal, in this case `xfce4-terminal`, can be replaced by e.g. `xterm` - depending on your distribution
|
|
522
|
+
- open file with `less`, `xed`, or `vi` - might be different with your distribution (see line above)
|
|
390
523
|
- `.gitignore` file for selected repo with [`xed`](https://en.wikipedia.org/wiki/Xed)
|
|
391
524
|
- [`spyder-ide.org`](https://spyder-ide.org/), for files matching `*.py`
|
|
392
525
|
- [`geany`](https://www.geany.org/), for files matching `*.c`, `*.cpp`, `*.h`
|
|
526
|
+
- `gitk` and `git gui` the base git tools which are automatically installed with `git`
|
|
527
|
+
-
|
|
393
528
|
|
|
394
529
|
|
|
395
530
|
**limitation:**
|
|
@@ -560,20 +695,47 @@ in `config.json`, or delete the config file to fall back to the defaults
|
|
|
560
695
|
gitonic is released under the following
|
|
561
696
|
[`LICENSE`](https://github.com/kr-g/gitonic/blob/main/LICENSE.md)
|
|
562
697
|
|
|
698
|
+
git logos from [git-scm](https://git-scm.com/downloads/logos)
|
|
699
|
+
|
|
563
700
|
|
|
564
701
|
|
|
565
702
|
|
|
566
703
|
# Changelog
|
|
567
704
|
|
|
568
705
|
|
|
569
|
-
|
|
706
|
+
## version v0.17.0 - 20250715
|
|
707
|
+
- added `$NAME` to context-menu variables for `os.path.basename` placeholder
|
|
708
|
+
- added official logos from [git-scm](https://git-scm.com/downloads/logos)
|
|
709
|
+
- added `basic-ctx` sample in README
|
|
710
|
+
- partial fix rename/ moved files
|
|
711
|
+
-
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
## version v0.16.0 - 20250219
|
|
715
|
+
|
|
716
|
+
- support for multiple repo workspaces
|
|
717
|
+
- on `settings` tab the `workspaces` entry field accepts a
|
|
718
|
+
list of paths separated by `;`
|
|
719
|
+
- use `~` for user-home path
|
|
720
|
+
- blanks between `;` separated paths are ignored
|
|
721
|
+
- when using double or single quotes around paths make sure the `;` exists to separate paths
|
|
722
|
+
- blanks at the start or end of paths are not supported
|
|
723
|
+
- added `$PYTHON` to context menu variables
|
|
724
|
+
- added clear message after commit select box
|
|
725
|
+
- added keyboard interrupt cntrl+c handler
|
|
726
|
+
- added `workdir` key for context menu handlers
|
|
727
|
+
- changing versioning scheme in pypi
|
|
728
|
+
-
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
## version v0.0.15 - 20240812
|
|
570
732
|
|
|
571
733
|
- fix: blank in path will show file as deleted
|
|
572
734
|
- fix: rename file with git
|
|
573
735
|
-
|
|
574
736
|
|
|
575
737
|
|
|
576
|
-
|
|
738
|
+
## version v0.0.14 - 20240518
|
|
577
739
|
|
|
578
740
|
- improved formatter
|
|
579
741
|
- support for multiple file extension for single config entry
|
|
@@ -590,13 +752,13 @@ gitonic is released under the following
|
|
|
590
752
|
-
|
|
591
753
|
|
|
592
754
|
|
|
593
|
-
|
|
755
|
+
## version v0.0.13 - 20231125
|
|
594
756
|
|
|
595
757
|
- show all untracked files on changes tab (not only the folder)
|
|
596
758
|
-
|
|
597
759
|
|
|
598
760
|
|
|
599
|
-
|
|
761
|
+
## version v0.0.12 - 20231111
|
|
600
762
|
|
|
601
763
|
- support for more code formatters (included in standard installation as extras)
|
|
602
764
|
- install with `pip install gitonic[PEP08]`
|
|
@@ -611,7 +773,7 @@ gitonic is released under the following
|
|
|
611
773
|
-
|
|
612
774
|
|
|
613
775
|
|
|
614
|
-
|
|
776
|
+
## version v0.0.11 - 20230710
|
|
615
777
|
|
|
616
778
|
- fixed logging
|
|
617
779
|
- fix no branch crash when no branch is set up
|
|
@@ -624,20 +786,20 @@ gitonic is released under the following
|
|
|
624
786
|
-
|
|
625
787
|
|
|
626
788
|
|
|
627
|
-
|
|
789
|
+
## version v0.0.10 - 20230225
|
|
628
790
|
|
|
629
791
|
- sort files in changes tab
|
|
630
792
|
-
|
|
631
793
|
|
|
632
794
|
|
|
633
|
-
|
|
795
|
+
## version v0.0.9 - 20221008
|
|
634
796
|
|
|
635
797
|
- git current branch in changes tab
|
|
636
798
|
- support for black
|
|
637
799
|
-
|
|
638
800
|
|
|
639
801
|
|
|
640
|
-
|
|
802
|
+
## version v0.0.8 - 20220802
|
|
641
803
|
|
|
642
804
|
- bug fix, due to corrupted local env
|
|
643
805
|
- double click in changes view will stage/ unstage a file
|
|
@@ -1476,5 +1638,3 @@ https://www.gnu.org/licenses/agpl-3.0.de.html
|
|
|
1476
1638
|
|
|
1477
1639
|
|
|
1478
1640
|
|
|
1479
|
-
|
|
1480
|
-
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://www.python.org/dev/peps/pep-0008/)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
you are reading VERSION = v0.0
|
|
4
|
+
you are reading VERSION = v0.17.0
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
# gitonic
|
|
@@ -178,13 +178,30 @@ files with extension `.pyx` change the setting to
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
+
or in case autopep8 is installed in a venv, e.g.
|
|
182
|
+
|
|
183
|
+
{
|
|
184
|
+
".py,.pyx": {
|
|
185
|
+
"cmd": "~/gitonic/.venv/bin/autopep8",
|
|
186
|
+
"para": [
|
|
187
|
+
"-i",
|
|
188
|
+
"%file"
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
|
|
181
194
|
|
|
182
195
|
### black
|
|
183
196
|
|
|
184
197
|
black is also an offical python tool, but resolves not fully to issues reported by pycodestyle.
|
|
185
198
|
there might be some rework required (from case to case).
|
|
186
|
-
result is quite similar to
|
|
187
|
-
|
|
199
|
+
result is quite similar to
|
|
200
|
+
[autopep8](https://github.com/hhatto/autopep8)
|
|
201
|
+
beside the list reported by pycodestyle (after formatting)
|
|
202
|
+
is a bit longer comparing to
|
|
203
|
+
[autopep8](https://github.com/hhatto/autopep8)
|
|
204
|
+
what does a better job here.
|
|
188
205
|
|
|
189
206
|
{
|
|
190
207
|
".py": {
|
|
@@ -260,6 +277,7 @@ the general structure is:
|
|
|
260
277
|
{
|
|
261
278
|
"a-context-name-ctx": {
|
|
262
279
|
"expr": "*",
|
|
280
|
+
"workdir": ".",
|
|
263
281
|
"menu": [
|
|
264
282
|
[
|
|
265
283
|
"some text $GIT",
|
|
@@ -281,13 +299,19 @@ the general structure is:
|
|
|
281
299
|
}
|
|
282
300
|
|
|
283
301
|
|
|
284
|
-
here the variables `$GIT`, `$PATH`, or `$
|
|
285
|
-
by the corrosponding path before execution.
|
|
302
|
+
here the variables `$GIT`, `$FILE`, `$PATH`, `$NAME`, or `$PYTHON`
|
|
303
|
+
are replaced by the corrosponding path before execution.
|
|
304
|
+
where `$PYTHON` expands to `sys.executable` from `gitonic` runtime.
|
|
305
|
+
and `$NAME` is a placeholder for `os.path.basedir`,
|
|
306
|
+
and `$PATH` for `os.path.dirname`
|
|
286
307
|
|
|
287
308
|
the `expr` key contains a single file pattern, or a list of
|
|
288
309
|
file patterns - when to enable the context menu.
|
|
289
310
|
the file pattern is following Unix filename pattern matching.
|
|
290
311
|
|
|
312
|
+
the `workdir` key will change the current working directory before running
|
|
313
|
+
the command.
|
|
314
|
+
|
|
291
315
|
the `menu` array contains the text to display in the menu,
|
|
292
316
|
and the command params as embedded array.
|
|
293
317
|
|
|
@@ -325,6 +349,36 @@ for running on linux with xfce.
|
|
|
325
349
|
]
|
|
326
350
|
]
|
|
327
351
|
},
|
|
352
|
+
"basic-ctx": {
|
|
353
|
+
"expr": "*",
|
|
354
|
+
"menu": [
|
|
355
|
+
[
|
|
356
|
+
"less $NAME at $PATH",
|
|
357
|
+
[
|
|
358
|
+
"xfce4-terminal",
|
|
359
|
+
"-x",
|
|
360
|
+
"less",
|
|
361
|
+
"$FILE"
|
|
362
|
+
]
|
|
363
|
+
],
|
|
364
|
+
[
|
|
365
|
+
"edit $NAME at $PATH",
|
|
366
|
+
[
|
|
367
|
+
"xed",
|
|
368
|
+
"$FILE"
|
|
369
|
+
]
|
|
370
|
+
],
|
|
371
|
+
[
|
|
372
|
+
"vi $NAME at $PATH",
|
|
373
|
+
[
|
|
374
|
+
"xfce4-terminal",
|
|
375
|
+
"-x",
|
|
376
|
+
"vi",
|
|
377
|
+
"$FILE"
|
|
378
|
+
]
|
|
379
|
+
]
|
|
380
|
+
]
|
|
381
|
+
},
|
|
328
382
|
"spyder-ctx": {
|
|
329
383
|
"expr": "*.py",
|
|
330
384
|
"menu": [
|
|
@@ -337,7 +391,20 @@ for running on linux with xfce.
|
|
|
337
391
|
]
|
|
338
392
|
]
|
|
339
393
|
},
|
|
340
|
-
"
|
|
394
|
+
"autopep8-ctx": {
|
|
395
|
+
"expr": "*.py",
|
|
396
|
+
"menu": [
|
|
397
|
+
[
|
|
398
|
+
"autopep8 python $FILE",
|
|
399
|
+
[
|
|
400
|
+
"autopep8",
|
|
401
|
+
"-i",
|
|
402
|
+
"$FILE"
|
|
403
|
+
]
|
|
404
|
+
]
|
|
405
|
+
]
|
|
406
|
+
},
|
|
407
|
+
"geany-path": {
|
|
341
408
|
"expr": [
|
|
342
409
|
"*.c",
|
|
343
410
|
"*.cpp",
|
|
@@ -352,6 +419,48 @@ for running on linux with xfce.
|
|
|
352
419
|
]
|
|
353
420
|
]
|
|
354
421
|
]
|
|
422
|
+
},
|
|
423
|
+
"uncrustify-path": {
|
|
424
|
+
"expr": [
|
|
425
|
+
"*.c",
|
|
426
|
+
"*.cpp",
|
|
427
|
+
"*.h"
|
|
428
|
+
],
|
|
429
|
+
"menu": [
|
|
430
|
+
[
|
|
431
|
+
"uncrustify c $FILE",
|
|
432
|
+
[
|
|
433
|
+
"uncrustify",
|
|
434
|
+
"-c",
|
|
435
|
+
"~/.gitonic/uncrustify.cfg",
|
|
436
|
+
"--replace",
|
|
437
|
+
"$FILE",
|
|
438
|
+
"--no-backup",
|
|
439
|
+
"--if-changed"
|
|
440
|
+
]
|
|
441
|
+
]
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
"git-base-tools": {
|
|
445
|
+
"expr": [
|
|
446
|
+
"*"
|
|
447
|
+
],
|
|
448
|
+
"workdir" : "$GIT",
|
|
449
|
+
"menu": [
|
|
450
|
+
[
|
|
451
|
+
"gitk $GIT",
|
|
452
|
+
[
|
|
453
|
+
"gitk"
|
|
454
|
+
]
|
|
455
|
+
],
|
|
456
|
+
[
|
|
457
|
+
"git gui $GIT",
|
|
458
|
+
[
|
|
459
|
+
"git",
|
|
460
|
+
"gui"
|
|
461
|
+
]
|
|
462
|
+
]
|
|
463
|
+
]
|
|
355
464
|
}
|
|
356
465
|
}
|
|
357
466
|
|
|
@@ -359,9 +468,12 @@ for running on linux with xfce.
|
|
|
359
468
|
remark:
|
|
360
469
|
the sample config file provides support for opening
|
|
361
470
|
- terminal, in this case `xfce4-terminal`, can be replaced by e.g. `xterm` - depending on your distribution
|
|
471
|
+
- open file with `less`, `xed`, or `vi` - might be different with your distribution (see line above)
|
|
362
472
|
- `.gitignore` file for selected repo with [`xed`](https://en.wikipedia.org/wiki/Xed)
|
|
363
473
|
- [`spyder-ide.org`](https://spyder-ide.org/), for files matching `*.py`
|
|
364
474
|
- [`geany`](https://www.geany.org/), for files matching `*.c`, `*.cpp`, `*.h`
|
|
475
|
+
- `gitk` and `git gui` the base git tools which are automatically installed with `git`
|
|
476
|
+
-
|
|
365
477
|
|
|
366
478
|
|
|
367
479
|
**limitation:**
|
|
@@ -532,4 +644,6 @@ in `config.json`, or delete the config file to fall back to the defaults
|
|
|
532
644
|
gitonic is released under the following
|
|
533
645
|
[`LICENSE`](https://github.com/kr-g/gitonic/blob/main/LICENSE.md)
|
|
534
646
|
|
|
647
|
+
git logos from [git-scm](https://git-scm.com/downloads/logos)
|
|
648
|
+
|
|
535
649
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M439.6 236.1L244 40.5a28.9 28.9 0 0 0 -40.8 0l-40.7 40.6 51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.2 199v121.9c25.3 12.5 22.3 41.9 9.1 55a34.3 34.3 0 0 1 -48.6 0c-17.6-17.6-11.1-46.9 11.3-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1a28.9 28.9 0 0 0 0 40.8l195.6 195.6a28.9 28.9 0 0 0 40.8 0l194.7-194.7a28.9 28.9 0 0 0 0-40.8z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="92pt" height="92pt" viewBox="0 0 92 92"><defs><clipPath id="a"><path d="M0 .113h91.887V92H0Zm0 0"/></clipPath></defs><g clip-path="url(#a)"><path style="stroke:none;fill-rule:nonzero;fill:#100f0d;fill-opacity:1" d="M90.156 41.965 50.036 1.848a5.913 5.913 0 0 0-8.368 0l-8.332 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.043 7.043 0 0 1 1.673 7.277l10.183 10.184a7.026 7.026 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.045 7.045 0 0 1-9.961 0 7.038 7.038 0 0 1-1.532-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.034 7.034 0 0 1 2.308-1.539V33.926a7.001 7.001 0 0 1-2.308-1.535 7.049 7.049 0 0 1-1.516-7.7L29.242 14.273 1.734 41.777a5.918 5.918 0 0 0 0 8.371L41.855 90.27a5.92 5.92 0 0 0 8.368 0l39.933-39.934a5.925 5.925 0 0 0 0-8.371"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="92pt" height="92pt" viewBox="0 0 92 92"><defs><clipPath id="a"><path d="M0 .113h91.887V92H0Zm0 0"/></clipPath></defs><g clip-path="url(#a)"><path style="stroke:none;fill-rule:nonzero;fill:#f03c2e;fill-opacity:1" d="M90.156 41.965 50.036 1.848a5.918 5.918 0 0 0-8.372 0l-8.328 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.034 7.034 0 0 1 1.669 7.277l10.187 10.184a7.028 7.028 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.05 7.05 0 0 1-9.965 0 7.044 7.044 0 0 1-1.528-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.06 7.06 0 0 1 2.304-1.539V33.926a7.049 7.049 0 0 1-3.82-9.234L29.242 14.272 1.73 41.777a5.925 5.925 0 0 0 0 8.371L41.852 90.27a5.925 5.925 0 0 0 8.37 0l39.934-39.934a5.925 5.925 0 0 0 0-8.371"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="92pt" height="92pt" viewBox="0 0 92 92"><defs><clipPath id="a"><path d="M0 .113h91.887V92H0Zm0 0"/></clipPath></defs><g clip-path="url(#a)"><path style="stroke:none;fill-rule:nonzero;fill:#100f0d;fill-opacity:1" d="M90.156 41.965 50.036 1.848a5.913 5.913 0 0 0-8.368 0l-8.332 8.332 10.566 10.566a7.03 7.03 0 0 1 7.23 1.684 7.043 7.043 0 0 1 1.673 7.277l10.183 10.184a7.026 7.026 0 0 1 7.278 1.672 7.04 7.04 0 0 1 0 9.957 7.045 7.045 0 0 1-9.961 0 7.038 7.038 0 0 1-1.532-7.66l-9.5-9.497V59.36a7.04 7.04 0 0 1 1.86 11.29 7.04 7.04 0 0 1-9.957 0 7.04 7.04 0 0 1 0-9.958 7.034 7.034 0 0 1 2.308-1.539V33.926a7.001 7.001 0 0 1-2.308-1.535 7.049 7.049 0 0 1-1.516-7.7L29.242 14.273 1.734 41.777a5.918 5.918 0 0 0 0 8.371L41.855 90.27a5.92 5.92 0 0 0 8.368 0l39.933-39.934a5.925 5.925 0 0 0 0-8.371"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "v0.17.0"
|