Version 1.1
This commit is contained in:
parent
59c49bcca5
commit
b803cbc5b8
17
README.md
17
README.md
@ -9,10 +9,12 @@ cd ~/Pictures
|
|||||||
imgsort
|
imgsort
|
||||||
```
|
```
|
||||||
2. When you run it the first time, you will be prompted to create a new config. That means you need to assign keyboard keys to directories in your filesystem.
|
2. When you run it the first time, you will be prompted to create a new config. That means you need to assign keyboard keys to directories in your filesystem.
|
||||||
For example, you could use:
|
For example, you could use:
|
||||||
- f = *~/Pictures/Family*
|
- f = *~/Pictures/Family*
|
||||||
- v = *~/Pictures/Vacation 2019*
|
- v = *~/Pictures/Vacation_2019*
|
||||||
- o = *~/Pictures/Other*
|
- o = *~/Pictures/Other*
|
||||||
|
|
||||||
|
Note that 's', 'u' and 'q' are reserved for 'skip', 'undo' and 'quit', but you can use 'S', 'U' and 'Q' instead.
|
||||||
3. Save the config if you might want to use it again. The config file will be stored in *~/.config/imgsort*.
|
3. Save the config if you might want to use it again. The config file will be stored in *~/.config/imgsort*.
|
||||||
4. Enjoy the slideshow!
|
4. Enjoy the slideshow!
|
||||||
|
|
||||||
@ -26,3 +28,14 @@ cd imgsort
|
|||||||
python3 -m pip install .
|
python3 -m pip install .
|
||||||
```
|
```
|
||||||
You can also install it system-wide using `sudo python3 -m pip install.`
|
You can also install it system-wide using `sudo python3 -m pip install.`
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
### 1.1
|
||||||
|
- Terminal does not break anymore when program exits
|
||||||
|
- Todo-Images are now sorted by filename
|
||||||
|
|
||||||
|
### 1.0
|
||||||
|
Initial Release
|
||||||
|
|
||||||
|
## Importand Notice:
|
||||||
|
This software comes with no warranty!
|
||||||
|
@ -62,12 +62,12 @@ class Sorter:
|
|||||||
self.placement.visibility = uz.Visibility.VISIBLE
|
self.placement.visibility = uz.Visibility.VISIBLE
|
||||||
self.placement.scaler = uz.ScalerOption.FIT_CONTAIN.value
|
self.placement.scaler = uz.ScalerOption.FIT_CONTAIN.value
|
||||||
self.placement.x = SIDEBAR_WIDTH + 1
|
self.placement.x = SIDEBAR_WIDTH + 1
|
||||||
self.placement.y = 1
|
self.placement.y = 2
|
||||||
self.placement.width = self.win_x - SIDEBAR_WIDTH - 1
|
self.placement.width = self.win_x - SIDEBAR_WIDTH - 1
|
||||||
self.placement.height = self.win_y - FOOTER_HEIGHT - 1
|
self.placement.height = self.win_y - FOOTER_HEIGHT - 2
|
||||||
|
|
||||||
# version
|
# version
|
||||||
self.version = "Image Sorter 1.0"
|
self.version = "Image Sorter 1.1"
|
||||||
|
|
||||||
def validate_dirs(self):
|
def validate_dirs(self):
|
||||||
"""
|
"""
|
||||||
@ -96,8 +96,9 @@ class Sorter:
|
|||||||
if (path.isfile(name)):
|
if (path.isfile(name)):
|
||||||
self.images.append(name)
|
self.images.append(name)
|
||||||
|
|
||||||
|
self.images.sort()
|
||||||
self.images_new = self.images.copy()
|
self.images_new = self.images.copy()
|
||||||
print(self.images)
|
# print(self.images)
|
||||||
|
|
||||||
def display_image(self):
|
def display_image(self):
|
||||||
with self.canvas.lazy_drawing: # issue ueberzug command AFTER with-statement
|
with self.canvas.lazy_drawing: # issue ueberzug command AFTER with-statement
|
||||||
@ -223,6 +224,7 @@ class Sorter:
|
|||||||
def quit(self, message = ""):
|
def quit(self, message = ""):
|
||||||
self.window.clear()
|
self.window.clear()
|
||||||
self.window.refresh()
|
self.window.refresh()
|
||||||
|
c.endwin()
|
||||||
print(message)
|
print(message)
|
||||||
print("Quitting " + self.version)
|
print("Quitting " + self.version)
|
||||||
exit(0)
|
exit(0)
|
||||||
|
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="imgsort",
|
name="imgsort",
|
||||||
version="1.0",
|
version="1.1",
|
||||||
description="A program that lets you easily sort images into different folders.",
|
description="A program that lets you easily sort images into different folders.",
|
||||||
|
|
||||||
author="Matthias Quintern",
|
author="Matthias Quintern",
|
||||||
|
Loading…
Reference in New Issue
Block a user