diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | ui.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md index 5071468..c59f80b 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ You're also welcome to share any ideas, suggestions, and questions through there * <kbd>Escape</kbd> - stop playing the current track * <kbd>Right</kbd> - seek ahead * <kbd>Left</kbd> - seek back -* <kbd><kbd>Ctrl</kbd>+<kbd>O</kbd></kbd> - jump to a track or group by entering (part of) its name +* <kbd><kbd>Ctrl</kbd>+<kbd>F</kbd></kbd> or <kbd>/</kbd> - jump to a track or group by entering (part of) its name * <kbd><kbd>Ctrl</kbd>+<kbd>O</kbd></kbd> - open a playlist from a source (like a /path/to/a/folder or a YouTube playlist URL) (you can also just pass this source to `mtui`) * <kbd>t</kbd> and <kbd>T</kbd> (shift+T) - switch between playlist tabs * <kbd><kbd>Ctrl</kbd>+<kbd>T</kbd></kbd> - open the current playlist in a new tab (so, clone the current tab) diff --git a/ui.js b/ui.js index fc38401..69fc7f1 100644 --- a/ui.js +++ b/ui.js @@ -250,7 +250,7 @@ class AppElement extends FocusElement { items: [ // A label that just shows some brief information about the item. isGroup && {label: - `("${item.name}" -` + + `(${item.name ? `"${item.name}"` : 'Unnamed'} -` + ` ${item.items.length} item${item.items.length === 1 ? '' : 's'}` + `, ${countTotalItems(item)} total` + ')'}, @@ -965,7 +965,7 @@ class GrouplikeListingElement extends Form { // within any groups (so you can't bworse a parent and access its menu // from there). if (!this.grouplike.isTheQueue) { - const ownElement = new BasicGrouplikeItemElement(`This group: ${this.grouplike.name}`) + const ownElement = new BasicGrouplikeItemElement(`This group: ${this.grouplike.name || '(Unnamed group)'}`) ownElement.item = this.grouplike ownElement.recordStore = this.recordStore ownElement.isGroup = true |