Skip to content

Commit

Permalink
Merge pull request #79 from SkwalExe/version
Browse files Browse the repository at this point in the history
New version: add vim motions, better coloring, print log history
  • Loading branch information
SkwalExe authored Aug 5, 2024
2 parents 84325bc + ed427ff commit 3b257e3
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 89 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# 2.3.0 - 2024-08-05

### Improved
- Improved coloring of log messages

### Added
- Print logs history on exit to allow copying data from commands
- Added navigation using VIM keys (hjlk) within the canvas


# 2.2.0 - 2024-07-18

### Improved
Expand Down
3 changes: 1 addition & 2 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ authors = [{name = "Leopold Koprivnik", email = "skwal@etik.com"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = ["License :: OSI Approved :: MIT License"]
requires-python = ">=3.9"
requires-python = ">=3.10"
dynamic = ["version"]

dependencies = [
Expand All @@ -19,6 +19,7 @@ dependencies = [
"pillow==10.3.0",
"asyncio==3.4.3",
"textual_canvas==0.2.0",
"rich>=13.7.1",
]

[tool.pdm.version]
Expand Down
2 changes: 1 addition & 1 deletion src/fractalistic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Terminal based fractal explorer, including Mandelbrot, Burning Ship, and Julia."""

__version__ = "2.2.0"
__version__ = "2.3.0"
17 changes: 15 additions & 2 deletions src/fractalistic/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/usr/bin/env python3

from click_extra import STRING, Choice, IntRange, extra_command, option
from rich.console import Console

from . import __version__
from .app import FractalisticApp
from .colors import color_renderers
from .fractals import fractal_list
from .settings import Settings
from .utils import get_color_index_from_name, get_fractal_index_from_name
from .utils import get_color_index_from_name, get_fractal_index_from_name, rich_theme, rule
from .vec import Vec


Expand Down Expand Up @@ -110,4 +112,15 @@ def main(
app.settings.threads = threads
app.settings.screenshot_threads = screenshot_threads

app.run()
logs = app.run()
if logs is None:
print(logs)
quit(0)

console = Console(theme=rich_theme)
console.print("Logs history is presented below:")
for logobj in logs:
lines = [logobj] if not isinstance(logobj, list) else logobj
console.print(rule)
for line in lines:
console.print(line)
Loading

0 comments on commit 3b257e3

Please sign in to comment.