Skip to content

Commit

Permalink
Format code using black
Browse files Browse the repository at this point in the history
  • Loading branch information
damonlynch committed Oct 23, 2021
1 parent da59f1f commit d2aa36d
Show file tree
Hide file tree
Showing 10 changed files with 251 additions and 165 deletions.
16 changes: 10 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
Changelog for Show in File Manager
==================================

1.01 (2021-10-23)
-----------------
- Reformat code with black.

1.0.0 (2021-10-04)
------------------
- Support [Lumina](https://lumina-desktop.org/)
- Support [Lumina](https://lumina-desktop.org/).

0.9.0 (2021-09-08)
------------------
- Add option to specify file manager to use from command line
- Support [Double Commander](https://doublecmd.sourceforge.io/)
- Support [Krusader](https://krusader.org/)
- Support [SpaceFM](https://ignorantguru.github.io/spacefm/)
- Support [fman](https://fman.io/)
- Add option to specify file manager to use from command line.
- Support [Double Commander](https://doublecmd.sourceforge.io/).
- Support [Krusader](https://krusader.org/).
- Support [SpaceFM](https://ignorantguru.github.io/spacefm/).
- Support [fman](https://fman.io/).

0.0.8 (2021-08-31)
------------------
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Show in File Manager

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

**Show in File Manager** is a Python package to open the system file manager and optionally select
files in it. The point is not to _open_ the files, but to _select_ them in the file manager, thereby highlighting the
files and allowing the user to quickly do something with them.
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = show-in-file-manager
version = 1.0.0
version = 1.0.1
author = Damon Lynch
author_email = [email protected]
description = Open the system file manager and select files in it
Expand Down
6 changes: 3 additions & 3 deletions src/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Copyright (c) 2021 Damon Lynch
# SPDX - License - Identifier: MIT

__author__ = 'Damon Lynch'
__author__ = "Damon Lynch"
__copyright__ = "Copyright 2021, Damon Lynch"

from showinfm.showinfm import main

if __name__ == '__main__':
main()
if __name__ == "__main__":
main()
5 changes: 4 additions & 1 deletion src/showinfm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
# SPDX - License - Identifier: MIT

from showinfm.showinfm import (
show_in_file_manager, valid_file_manager, user_file_manager, stock_file_manager
show_in_file_manager,
valid_file_manager,
user_file_manager,
stock_file_manager,
)
20 changes: 10 additions & 10 deletions src/showinfm/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@


class FileManagerType(Enum):
regular = 1 # file_manager "File1" "File2"
select = 2 # file_manager --select
dir_only_uri = 3 # cannot select files
show_item = 4 # file_manager --show-item
show_items = 5 # file_manager --show-items
win_select = 6 # explorer.exe /select
reveal = 7 # open --reveal (macOS)
dual_panel = 8 # file_manager "File1" "File2"
regular = 1 # file_manager "File1" "File2"
select = 2 # file_manager --select
dir_only_uri = 3 # cannot select files
show_item = 4 # file_manager --show-item
show_items = 5 # file_manager --show-items
win_select = 6 # explorer.exe /select
reveal = 7 # open --reveal (macOS)
dual_panel = 8 # file_manager "File1" "File2"


class Platform(Enum):
Expand All @@ -21,5 +21,5 @@ class Platform(Enum):
macos = 3


single_file_only = ('explorer.exe', 'pcmanfm', 'open', 'cutefish-filemanager')
cannot_open_uris = ('fman', 'fman.exe', 'lumina-fm')
single_file_only = ("explorer.exe", "pcmanfm", "open", "cutefish-filemanager")
cannot_open_uris = ("fman", "fman.exe", "lumina-fm")
Loading

0 comments on commit d2aa36d

Please sign in to comment.