openjck / git-fzf

Interactive versions of built-in Git commands using fzf
MIT License
1 stars 0 forks source link

Reimplement in Python #12

Closed openjck closed 1 year ago

openjck commented 2 years ago

I think I should rewrite this in Python, which has much better argument parsing support via the argparse library, which ships with Python.

I have made some progress already on the python branch.

To do

openjck commented 2 years ago

Some advice which might help me to import utils that are shared amongst command scripts:

https://stackoverflow.com/questions/16981921/relative-imports-in-python-3/16985066#16985066

openjck commented 2 years ago

My next step on this is to finish converting git-idiff to Python, which is almost done on the python branch. The only known issue is that the pager is not used to ultimately show the diff when a pager is configured to be used with git diff.

edit: I think I have solved this, and pushed the solution up, but I want to test git-idiff and all other tests that have been edited more thoroughly before calling this done.

openjck commented 2 years ago

All of the commands have been reimplemented and pushed up. I would like to test them one more time. After that, I need to figure out how to distribute this and update the installation instructions accordingly.

openjck commented 2 years ago

Notes to self about distribution

Snap

pip

Other methods

General

openjck commented 1 year ago

I pushed up some code to the python branch which begins to use Poetry.

openjck commented 1 year ago

Hey that was easier than I thought.