Skip to content

Commit

Permalink
History of visited spots with ability to go back and forth added; ref…
Browse files Browse the repository at this point in the history
…ormatted with black
  • Loading branch information
pronopython committed Jul 22, 2024
1 parent 92570c8 commit 3c96c7d
Show file tree
Hide file tree
Showing 33 changed files with 795 additions and 559 deletions.
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,16 @@ You can watch this process or start traveling through the images world.
|i |Toggle grey information box |
|1-7 |Zoom levels |
|0 |Zoom fit |
|b |Go backward in history to previous selection |
|f |Go forward in history to next selection |
|j |Jump randomly |
|n |Open image with system image viewer; Open video with system video player of VLC |
|t |Call [Fapel-System](https://github.com/pronopython/fapel-system) Tagger on selection|
|s |Call [Fapel-System](https://github.com/pronopython/fapel-system) Set on selection |
|up / down |Open and go through Fapel Table rows |
|left / right |Go through Fapel Tables of one row |
|g |Open Dialog to go to a spot by coordinates x,y |
|c |Open information dialog |
|c |Open information dialog |
|o |Pause image server (troubleshooting) |
|p |Pause crawler (troubleshooting) |
|e |Generate and export world map as png file |
Expand Down Expand Up @@ -706,14 +708,46 @@ in `rugivi.conf`, RuGiVi will not load images but rather represent every directo

# 📢 Community Support

Please report errors you find! For example, I did not find out that the rugivi_configurator could not select new files for about 4 releases. I sure cannot test every setup or every way you could use RuGiVi 😮 so your input is **gold** for me!

Since you may not like to be connected to be using RuGiVi, you can contact me **one-way anonymously** and report errors!

## Report errors and send ideas anonymously

Head over to

[my bug report at formape.com](https://www.formape.com/f/phqrw)

and fill out the bug report form. You do not need an account or provide any form of personal information (mail address etc). Just help me find errors and improve RuGiVi!

You can also contact me via email: [email protected] . If you want to contact me anonymously, create yourself a burner email account.

## Report errors via GitHub
The [GitHub discussion boards](https://github.com/pronopython/rugivi/discussions) are open for sharing ideas and plans for RuGiVi.

You can report errors through a [GitHub issue](https://github.com/pronopython/rugivi/issues/new).

Don't want to use GitHub? You can also contact me via email: [email protected] If you want to contact me anonymously, create yourself a burner email account.


# Release Notes

## v0.6.0-alpha

### added

- History of visited spots with ability to go back and forth added

### fixed

- rugivi_configurator now uses save-as dialog (selecting a non existing new sqlite file is now possible)
- selection left the visible area when screen was moved and switched back to screen to late
- jump did not change selection when target spot was visible on screen (only the screen was centered)

### changed

- Reformatted all files with black
- Removed dead or commented out code (using flake8)

## v0.5.2-alpha

### fixed
Expand Down
20 changes: 14 additions & 6 deletions rugivi/config_file_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#

import os
from pathlib import Path
import configparser
import pathlib
import sys
Expand All @@ -46,8 +45,10 @@ def __init__(self, configFilePath, create_if_missing=False) -> None:
self.config_file_path = dir_helper.expand_home_dir(self.config_file_path)

if create_if_missing and not os.path.isfile(self.config_file_path):
pathlib.Path(os.path.dirname(self.config_file_path)).mkdir(parents=True, exist_ok=True)
open(self.config_file_path, 'a').close()
pathlib.Path(os.path.dirname(self.config_file_path)).mkdir(
parents=True, exist_ok=True
)
open(self.config_file_path, "a").close()

self.create_config_parser_and_load_config()
self.config_changed = False
Expand Down Expand Up @@ -101,9 +102,16 @@ def check_key(self, group, key):
try:
self.config_parser.get(group, key)
except configparser.NoOptionError:
errortext = 'Error: The following group / key combination is missing in your RuGiVi config "'+self.config_file_path+'":\n\n['+group+']\n'+key+'\n\nLook into rugivi dir of git repo for a default config file!'
errortext = (
'Error: The following group / key combination is missing in your RuGiVi config "'
+ self.config_file_path
+ '":\n\n['
+ group
+ "]\n"
+ key
+ "\n\nLook into rugivi dir of git repo for a default config file!"
)
print("Config entry missing!")
print(errortext)
messagebox.showerror('Config entry missing!', errortext)
messagebox.showerror("Config entry missing!", errortext)
sys.exit()

Loading

0 comments on commit 3c96c7d

Please sign in to comment.