Caption Gallery Slider

by Pauline Skrypnik
5
4
3
2
1
Score: 50/100

Description

Elegant gallery slider for Obsidian with editable Markdown captions.

Reviews

No reviews yet.

Stats

1
stars
98
downloads
0
forks
48
days
47
days
47
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
32
commits

Latest Version

2 months ago

Changelog

Maintenance release answering the community scorecard for 0.1.3. Gallery syntax and behavior are unchanged.

  • The stylesheet no longer uses !important. Rules that had to outrank a theme now do so through selector specificity, and the cursor shown during a resize drag comes from a single --og-cursor variable.

  • The buttons over the media fade in and out with the overlay that holds them, so hovering one now brightens it as the other gallery buttons do.

  • The build marks Node builtins external through node:module instead of the builtin-modules package, which is no longer a dependency.

  • Release assets are built, tested, and signed on GitHub Actions, so they carry artifact attestations:

    gh attestation verify main.js --repo skrpln/caption-gallery-slider
    

Requires Obsidian 1.6.6 or newer. Desktop only.

Install

Manual: copy main.js, manifest.json, and styles.css into <your-vault>/.obsidian/plugins/caption-gallery-slider/, then enable the plugin in Community plugins.

Beta testers: install BRAT and add skrpln/caption-gallery-slider.

README file from

Github

Caption Gallery Slider is an Obsidian plugin for turning a fenced gallery code block into a native-feeling media slider for local images and videos.

Its main idea is simple: keep media in your vault, keep captions as ordinary Markdown notes, and edit those captions directly inside the gallery.

This release is desktop only. The interface relies on hover controls and pointer input, so mobile support is planned for a later version, after dedicated touch testing.

Features

  • Local image and video galleries from a folder, an explicit file list, or both.
  • Editable Markdown captions stored as regular vault notes.
  • Internal links and hover previews inside rendered captions.
  • Preview thumbnails, plain dot navigation, and adaptive slider navigation.
  • Video playback controls with play, mute, loop, progress, and saved fragment ranges.
  • crop and fit view modes, rotation, manual crop pan/zoom, and fullscreen view.
  • Resize handles for the media viewport and caption panel.
  • Theme-aware UI based on Obsidian CSS variables.

Basic Syntax

```gallery
gallery_id: vacation
dir: Attachments/vacation_2026
list:
  - Attachments/special.png
sort: name
navigation: preview
view: crop
view_height: 420
caption_height: 96
```

gallery_id is required. It is used as the namespace for caption notes, so the same media file can have different captions in different galleries.

At least one media source is required:

  • dir: scans a vault folder recursively.
  • list: adds explicit vault paths.
  • both sources can be used together.

Options

Option Values Default Description
gallery_id text required Caption namespace for this gallery.
dir vault folder path none Recursively scans supported media files.
list YAML-style list none Adds explicit vault media paths.
sort name, created, modified name Sorts the combined media set.
navigation plain, preview plain Selects top navigation style.
view crop, fit crop Controls how media fits the viewport.
view_height number plugin default Media viewport height in pixels.
caption_height number plugin default Caption panel height in pixels.
caption true, false true Shows or hides the caption panel.

Caption Notes

Captions are not stored inside the code block. Caption Gallery Slider creates Markdown notes lazily when you first edit a caption.

By default, the caption folder is configured in:

Settings > Community plugins > Caption Gallery Slider > Caption folder

Each caption note contains frontmatter for gallery metadata and optional media state, followed by a normal Markdown body. This means captions can include:

  • [[internal links]]
  • formatted text
  • lists
  • headings
  • backlinks and search results like regular notes

Supported Media

Images:

  • jpg
  • jpeg
  • png
  • gif
  • webp
  • svg

Videos:

  • mp4
  • avi
  • mov
  • webm

Caption Gallery Slider currently works with local vault files. Remote image URLs, remote videos, YouTube embeds, grid layouts, slideshow autoplay, and audio support are planned as future work.

Support

Please report bugs through GitHub Issues:

https://github.com/skrpln/caption-gallery-slider/issues

Useful bug reports include:

  • Obsidian version and operating system.
  • Plugin version.
  • Whether the issue happens in Reading mode, Live Preview, fullscreen, or hover preview.
  • A small gallery code block that reproduces the issue.
  • Console errors, if any.

License

MIT. See LICENSE.