Skip to content

Releases: akazukin5151/koneko

koneko こねこ v0.13.0

01 Dec 14:55
Compare
Choose a tag to compare

The ueberzug repo was deleted. In the meantime please use this fork

Features

  • New config values in the [welcome_screen] section: spaces_to_offset and image_size

Bug fixes

  • Fix bug where cache files are created unconditionally (#29)
  • #34
    • Fix bug where welcome picture displays over text (see feature above)
    • Fix bug where rows are drawing on top of each other
    • Fix bug where images_x_spacing is not working correctly

Documentation

  • Update manual to be clearer and more accurate
  • Note that programs (koneko, lscat, koneko-url-login) needs to be in $PATH

Maintenance

  • Update dependencies

Massive thanks to @sparr for #29 and @VGrol for #34

koneko こねこ v0.12.4

08 Mar 16:21
Compare
Choose a tag to compare

Bug fixes

  • Fix bug where prefetching crashes on the last page
  • Fix bug where cache dir is not created automatically if missing
  • Update dependencies

Thanks to @PPAChao for the bug report

koneko こねこ v0.12.3

08 Mar 16:20
Compare
Choose a tag to compare

Bug fixes

  • Fix bug where pip install does not copy necessary files
  • Update dependencies

Thanks to @PPAChao for the bug report

koneko こねこ v0.12.2

28 Aug 01:14
b53e5cf
Compare
Choose a tag to compare

Bug fixes

  • Remove infinite loop if image fails to download and warn user instead
  • Fix bug where recommended images would raise an exception
  • Fix undefined reference to get_id_then_save

koneko こねこ v0.12.1

01 Aug 19:17
6071822
Compare
Choose a tag to compare

Bug fixes

  • Fix bug where (down)loading full size images hangs/crashes

Code maintenance

  • Update pixivpy and sphinx-material
  • (Properly) generate all puml images and update their command in docs
  • Fix image links in docs

koneko こねこ v0.12.0

24 Jun 17:21
a825cca
Compare
Choose a tag to compare

Features

  • Remove the need to ask for your pixiv user ID; koneko will now get it from the API response
    • Custom user ID for mode 3 (view following users) has thus been removed, to reduce complexity of first-time setup
    • See issue #4. Thanks to @Thesola10 for PR #5

Bug fixes

  • Fixed broken pixiv login
  • Fixed broken curl fallback commands in the .rst version

Code maintenance

  • Update dependencies
  • Unit tests: Use tmp_path fixture instead of manually creating paths
  • Replace FollowingUserModeLoop class with following_user_mode function
  • Removed integration tests due to unreliability of new pixiv login method
  • Simplified the README

koneko こねこ v0.11.0

09 Aug 14:27
2676d7a
Compare
Choose a tag to compare

Changelog

Features

  • Ueberzug support to work with other terminals (but seems to be linux only)
    • New configuration options in the experimental section
      • use_ueberzug (default: off)
      • scroll_display (default: on)
        • On means you have to manually scroll the terminal with mouse/keyboard shortcuts
        • Off means you can use up/down keys to view more images
        • This option is always on if use_ueberzug is on
      • ueberzug_center_spaces (default: 20)
    • If scroll_display is off, then use up/down keys to view more images
    • Should work on everything:
      • lscat app
        • In lscat config assistant
          • Page spacing is disabled for ueberzug
        • Browse cache, display path
        • testgallery, testuser
      • koneko app
        • For already downloaded images in Gallery, Users, & Image modes
        • For showing images as they download in Gallery, Users, & Image modes
        • Everywhere else (main screen, info screen, etc)
  • Improved documentation using tables in the manual (MANUAL.md) and developer guide (HACKING.md)

Bug fixes

  • Fixed bugs in lscat app's display path (mode p/3):
    • Not working if path given via cli
    • Always showing directory in gallery mode
  • Fixed race conditions while prefetching
    • eg, viewing an image while prefetching would crash or cause undefined behaviour
    • Prefetching in user mode takes longer, making it likely to trigger an action before prefetch has finished

Code maintenance

  • Remove circular imports
    • prompt importing ui
    • assistants importing lscat_app
    • main importing cli
    • picker importing assistants
  • Updated and improved diagrams in HACKING.md
  • Methods starting with maybe (formerly abstractmethods) now do nothing by default, override to do something
    • Rename middle() to maybe_show_preview() in lscat prompt
  • Inline in yield expression in users preview (lscat)
  • Replace while loop with a for loop and a guard at the end in lscat
  • Use Keystroke name attribute rather than its key code (blessed.Terminal)
  • Rename utils.check_quit() to quit_on_q()
  • Move lscat related functions in utils to lscat
  • print_doc now restores previous cursor location
  • Rewrite of core lscat functions: new unified API (lscat.api) with the same interface for both pixcat and ueberzug
    • For ueberzug, only one ueberzug process and canvas is instantiated in the program
  • Added more tests

koneko こねこ v0.10.1

26 Jul 08:40
1a912e8
Compare
Choose a tag to compare

Changelog

Bug fixes

  • Fixed inconsistent 'page' / 'image' in ui.Image
  • Fixed du not working in macOS
  • Fixed xdg-open not present in macOS, use open in that case instead
  • Fixed bug where artist name with '/' isn't downloaded
  • Fixed users mode prefetching page 1 again

Code maintenance

  • Added more tests
  • Use int page_num for gallery data cache keys
  • Extract duplicated init method in gdata and udata to ABC
  • Remove sys path modifications by changing pytest command & conftest path. No need to run pytest with the -s argument. There is a conftest.py symlink in root, pointing to the original path in testing/
  • Fixed tests sometimes showing a (pixcat) image: mock and assert pixcat in lscat.icat()
  • Use default github gitignore for python

koneko こねこ v0.10.0

22 Jul 13:45
bdba3eb
Compare
Choose a tag to compare

Changelog

Features

  • Browse cache now supports navigating between pages
  • Breaking: Removed image_mode_text_offset config setting, now does nothing
  • Renewed developer guide in HACKING.md
  • Breaking: lscat app: move 'browse cache' and 'specify path' to mode 2 and 3 respectively, moving 'testgallery & 'testuser' to mode 4 and 5 respectively (swapped)
  • Add image mode preview for lscat app
  • Add related images gallery (mode 15): view related and suggested images in image view (mode 2). Press the 'r' key while viewing an image to view related images
  • Add illust_recommended_mode (mode 6): discover recommended illustrations
  • Access browse cache from koneko main; clear cache is now inside browse cache
  • Use koneko q to view frequents and launch their mode
  • Revamped user guide/manual

Bug fixes

  • Fixed browse cache crashing on empty directory
  • Fixed docs: mode 5 cannot go back to main screen
  • Fixed reloading in a gallery mode leading to user prompt
  • Browse cache now no longer accepts an invalid directory to display on
  • Fixed experimental image mode previews index errors due to it trying to download more images than possible
  • Almost fixing experimental image mode previews by saving previous cursor position and restoring it later; but still a bit unstable
  • Fixed grammar in prompt: "a image command" -> "an image command"
  • Improved stability (eg weird race conditions, files downloaded in wrong places) by not cd-ing into directories
  • Fixed logging in with a new session every time by caching the login token.
  • Stop prefetch if next_offset is invalid

Code maintenance

  • lscat show_instant() now inspects the cls passed in instead of a bool argument
  • "Inlined" some abstract methods in AbstractUI into attributes
  • Make all ui.Image methods depend on only data.ImageData like the associated free functions, so those methods can be moved to a subclass of data.ImageData (the new ui.Image class extends IO behaviours from the data class)
  • Pass in path and name to api.download instead of cd-ing into the dir and manually renaming downloads, simplifying a lot of code in the process
  • Replace pure.Map with list comprehensions. Can't force functional programming into Python after all
  • Use funcy.autocurry() instead of partial
  • Split up files.filter_dir()
  • Use ws_picker() in _pick_dirs_picker()
  • Add next_offset property to AbstractData (moved calculation from ui to data.py)
  • Change list comprehensions assigning to _ into normal for loops
  • Split up _parse_and_download()
  • Improved order of methods in GalleryData: now sorted by required methods/properties by the interface/abstract class, and unique methods/properties.
  • Rewrite UserData class to be more like GalleryData
  • Move download_path() method to AbstractData
  • Extract view_post_mode() and view_image() to ABC

koneko こねこ v0.9.2

16 Jul 16:03
aa8fcc8
Compare
Choose a tag to compare

Changelog

Features

  • lscat app: Display first picture if a mode 2 directory is selected
  • This project is now mirrored on gitlab here

Bug fixes

  • Fixed mode 2 exclusive filter showing mode 1 page dirs

Code maintenance

  • Added more type annotations
  • Rename AbstractImageAdjuster.write() to report()
  • Added docstrings in assistants.py
  • Added image_adjuster.puml, displayed in HACKING.md
  • Use namedtuple instead of classes in some tests
  • Use mocks instead of repetitive fake classes
  • Add AbstractData to puml
  • Use new json in some tests
  • Test print multiple images with one and two posts
  • Add some comments on MVC vs MVA
  • Removed unused search_string() method