#gitlogui — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #gitlogui, aggregated by home.social.
-
Progress on gitlogui. Yes, exactly. A minimal UI for git log.
New:
- regex or simple search through the shown text
- commit graph (--graph option of git log) may be shownSuggestions of features to add are welcome.😀
Same for a professional layout suggestion for the seemingly randomly tossed text entries and check boxes of the UI.
-
I have a script called pyfix which runs mypy and ruff to
- have strong typing
- have a fixed and orderly import order
- have the file always formatted in the same way
- detect programming errors and redundancies.Now I am working on gitlogui (https://codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running
pyfix glu
all the time, which reads funny. 😀
-
I have a script called pyfix which runs mypy and ruff to
- have strong typing
- have a fixed and orderly import order
- have the file always formatted in the same way
- detect programming errors and redundancies.Now I am working on gitlogui (https://codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running
pyfix glu
all the time, which reads funny. 😀
-
I have a script called pyfix which runs mypy and ruff to
- have strong typing
- have a fixed and orderly import order
- have the file always formatted in the same way
- detect programming errors and redundancies.Now I am working on gitlogui (https://codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running
pyfix glu
all the time, which reads funny. 😀
-
I have a script called pyfix which runs mypy and ruff to
- have strong typing
- have a fixed and orderly import order
- have the file always formatted in the same way
- detect programming errors and redundancies.Now I am working on gitlogui (https://codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running
pyfix glu
all the time, which reads funny. 😀
-
I have a script called pyfix which runs mypy and ruff to
- have strong typing
- have a fixed and orderly import order
- have the file always formatted in the same way
- detect programming errors and redundancies.Now I am working on gitlogui (https://codeberg.org/harald/gitlogui) the main script of which I called glu. So I am running
pyfix glu
all the time, which reads funny. 😀
-
Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.
To implement page up/down in https://codeberg.org/harald/gitlogui I have now:
def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
step = factor * int(self.pageSize.get())
...and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.
-
Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.
To implement page up/down in https://codeberg.org/harald/gitlogui I have now:
def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
step = factor * int(self.pageSize.get())
...and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.
-
Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.
To implement page up/down in https://codeberg.org/harald/gitlogui I have now:
def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
step = factor * int(self.pageSize.get())
...and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.
-
Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.
To implement page up/down in https://codeberg.org/harald/gitlogui I have now:
def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
step = factor * int(self.pageSize.get())
...and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.
-
Nice one. Type hints in Python allow to list a number of literal values, similar to TypeScript union types and the syntax is actually somewhat more explicit.
To implement page up/down in https://codeberg.org/harald/gitlogui I have now:
def doPage(self, factor: Literal[-1] | Literal[1]) -> None:
step = factor * int(self.pageSize.get())
...and I can be sure, when using mypy, that doPage is only ever called with either -1 or 1.
-
Progress on gitlogui. Yes, exactly. A minimal UI to avoid reading the docs for all those who use it not that often, in particular with pickaxe options.
Now on codeberg: https://codeberg.org/harald/gitlogui
Suggestions of features to add are welcome.😀
-
New project.
If there is something I can't quite remember: the multitude of git log options. There should be a simple UI which makes this easier. Somewhat like gitk for git in general, but with as many useful options shown as understandable buttons as possible.
I also wanted to toy with tkinter a bit. The last few hours brought up this minimally functional thing, which seems to be a good start. Suggestions of features to add first are welcome.😀