diff --git a/README.md b/README.md index be89c19..ebeddeb 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,12 @@ cd ~/Pictures 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. -For example, you could use: + For example, you could use: - f = *~/Pictures/Family* - - v = *~/Pictures/Vacation 2019* + - v = *~/Pictures/Vacation_2019* - 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*. 4. Enjoy the slideshow! @@ -26,3 +28,14 @@ cd imgsort 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! diff --git a/imgsort/sorter.py b/imgsort/sorter.py index 3c0ae18..0d9736b 100755 --- a/imgsort/sorter.py +++ b/imgsort/sorter.py @@ -62,12 +62,12 @@ class Sorter: self.placement.visibility = uz.Visibility.VISIBLE self.placement.scaler = uz.ScalerOption.FIT_CONTAIN.value 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.height = self.win_y - FOOTER_HEIGHT - 1 + self.placement.height = self.win_y - FOOTER_HEIGHT - 2 # version - self.version = "Image Sorter 1.0" + self.version = "Image Sorter 1.1" def validate_dirs(self): """ @@ -96,8 +96,9 @@ class Sorter: if (path.isfile(name)): self.images.append(name) + self.images.sort() self.images_new = self.images.copy() - print(self.images) + # print(self.images) def display_image(self): with self.canvas.lazy_drawing: # issue ueberzug command AFTER with-statement @@ -223,6 +224,7 @@ class Sorter: def quit(self, message = ""): self.window.clear() self.window.refresh() + c.endwin() print(message) print("Quitting " + self.version) exit(0) diff --git a/setup.py b/setup.py index ef3e0f8..1d69ca0 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name="imgsort", - version="1.0", + version="1.1", description="A program that lets you easily sort images into different folders.", author="Matthias Quintern",