diff --git a/README.md b/README.md index a757616..bfef8c8 100644 --- a/README.md +++ b/README.md @@ -171,6 +171,11 @@ This means that `fuzic` users may share their playlists irrespective of the audi Possibly even more importantly, this means that you can preserve your playlist even if you reorganize your local music library: You can safely share your playlists with your future self. +Playlists are stored under `XDG_DATA_HOME/fuzic/playlists`, which defaults to `~/.local/share/fuzic/playlists`. +You may also define the playlist directory using the `PLAYLIST_DIRECTORY` environment variable. +In `share/playlists` you find example playlists. +Thus, the command `PLAYLIST_DIRECTORY=share/playlists fuzic` launches this application with access to these example playlists. + 🧭 Planned Features ------------------- The following features are planned: diff --git a/share/playlists/example b/share/playlists/example new file mode 100644 index 0000000..0baeb18 --- /dev/null +++ b/share/playlists/example @@ -0,0 +1,7 @@ +e2276744-afe0-4ecd-9340-9e34f1526cc5 56e2c4d2-01b2-4bc6-a11f-ee6a50be9fa6 +a75bb4c3-d1ce-4d35-aac5-2068f7c32805 8def9034-1cd7-4fe3-88c6-5c83fdc9537a +60a90232-228c-4ee2-af2f-07706fa13bd8 f9f5c049-b2f2-3ce7-93e3-956ce2c77d2c +13027e7b-340c-4478-8dda-df5fa4af3564 b2f18f14-7918-4856-bce3-b936fd628763 +ca2e4dca-0ec3-411a-b2a0-60bb97107c2c d0c5cb23-ec7a-41ce-8a1c-3498aafdf527 +486239ef-0be2-435b-963a-b9451f8c8c57 c6c3b393-fede-489e-bb77-23e32951ebc9 +b3cf4db5-deb4-40b8-88bc-e016cca1104f c90ec13c-b406-3c15-83d3-8443304ccc6f diff --git a/src/sh/keys.sh b/src/sh/keys.sh index 830012d..872a115 100644 --- a/src/sh/keys.sh +++ b/src/sh/keys.sh @@ -328,6 +328,9 @@ print_keybindings() { "$KEYS_SCROLL_PREVIEW_DOWN" "Scroll preview down" \ "$KEYS_SCROLL_PREVIEW_UP" "Scroll preview up" \ "$KEYS_KEYBINDINGS" "Show these keybindings" \ + "$KEYS_PREVIEW_TOGGLE_WRAP" "Toggle preview wrapping" \ + "$KEYS_PREVIEW_TOGGLE_SIZE" "Toggle preview size" \ + "$KEYS_PREVIEW_OPEN" "Open preview window" \ "$KEYS_PREVIEW_CLOSE" "Close preview window" __keybindinggroup_from_args "Navigation" \ "$KEYS_DOWN" "Down" \ diff --git a/src/sh/playlist.sh b/src/sh/playlist.sh index 3154ec4..a492db5 100644 --- a/src/sh/playlist.sh +++ b/src/sh/playlist.sh @@ -18,7 +18,7 @@ if [ ! "${PLAYLIST_LOADED:-}" ]; then PLAYLIST_CMD_SHUFFLE PLAYLIST_CMD_UNSHUFFLE PLAYLIST_CMD_LOAD # Storage and loading of playlists - PLAYLIST_DIRECTORY="$LOCALDATADIR/playlists" + PLAYLIST_DIRECTORY="${PLAYLIST_DIRECTORY:-"$LOCALDATADIR/playlists"}" [ -d "$PLAYLIST_DIRECTORY" ] || mkdir -p "$PLAYLIST_DIRECTORY" export PLAYLIST_DIRECTORY