Skip to content

Commit

Permalink
Merge branch 'fix-open-file'
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaorio committed Dec 23, 2022
2 parents 1e9e786 + 58f7842 commit da660ed
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ An additional note about the orientation of the masonry vs. the distribution of
![Obsidian Image Gallery - Examples](assets/obsidian-image-gallery-examples.jpg)

## Changelog

`1.1.1`
- Fix bug for the "open image in new tab" feature

`1.1.0`
- fixed alphabetical sorting
- introduced lightbox for both desktop and mobile
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-image-gallery",
"name": "Image Gallery",
"version": "1.1.0",
"version": "1.1.1",
"minAppVersion": "1.1.8",
"description": "A zero setup masonry image gallery for Obsidian",
"author": "Luca Orio",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-image-gallery",
"version": "1.1.0",
"version": "1.1.1",
"description": "A zero setup masonry image gallery for Obsidian",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/build-lightbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const globalSearchBtn = (gallery: HTMLElement, imagesList: {[key: string]: any})
galleryInstance.outer.find('#btn-glob-search').on('click', () => {
const index = galleryInstance.index
const selected = imagesList[index]
app.workspace.openLinkText(selected.name, selected.folder, true, {active: true})
app.workspace.openLinkText('', `${selected.folder}/${selected.name}`, true, {active: true})
galleryInstance.closeGallery()
});
})
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"1.0.0": "0.14.6",
"1.1.0": "1.1.8"
"1.1.0": "1.1.8",
"1.1.1": "1.1.8"
}

0 comments on commit da660ed

Please sign in to comment.