Skip to content

Commit

Permalink
Update screenshot and animation, exclude images from bundle, update r…
Browse files Browse the repository at this point in the history
…eadme
  • Loading branch information
artemy committed Dec 1, 2024
1 parent 1d9bdfb commit e4541e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
7 changes: 2 additions & 5 deletions .readme/embedded-readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ Keyword settings are persisted across workflow upgrades.
Open Alfred and type the keyword for your IDE. The workflow will display a list of recent
projects (sorted by time last opened descending).

You can further filter a project list by typing additional words. Fuzzy first-letter search is supported (i.e.,
typing `map` will find `my-awesome-project`):

![animation](images/animation.gif)

You can further filter a project list by typing additional characters. Fuzzy first-letter search is supported (i.e.,
typing `map` will find `my-awesome-project`).

## Legal

Expand Down
Binary file modified .readme/images/animation.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified .readme/images/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Open Alfred and type the keyword for your IDE (see Supported IDEs below).
The workflow will display a list of recent
projects (sorted by time last opened descending).

You can further filter a project list by typing additional words.
You can further filter a project list by typing additional characters.
Fuzzy first-letter search is supported (i.e.,
typing `map` will find `my-awesome-project`):

Expand Down
8 changes: 2 additions & 6 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,7 @@ def build():
plist["version"] = version

with open(".readme/embedded-readme.md", 'r', encoding='utf-8') as file:
content = file.read()
# Replace nested image paths with flattened paths
content = re.sub(r'\((?:[^/\s]+/)*([^/\s]+)\)', r'(\1)', content)

plist["readme"] = content
plist["readme"] = file.read()

# Output
print(f"Building {[product.name() for product in products]}")
Expand All @@ -129,7 +125,7 @@ def build():
os.system(f'cp icons/{product.keyword}.png ./out/{product.uid}.png')

os.system(
f'zip -j -r alfred-jetbrains-projects.alfredworkflow out/* recent_projects.py products.json icon.png .readme/*')
f'zip -j -r alfred-jetbrains-projects.alfredworkflow out/* recent_projects.py products.json icon.png')


def get_products() -> list[Product]:
Expand Down

0 comments on commit e4541e5

Please sign in to comment.