« get me outta code hell

mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
AgeCommit message (Collapse)Author
2019-05-28Change "Play later" option formattingFlorrie
Also add some todo's.
2019-05-28MenubarFlorrie
Or the beginning of one, anyway!
2019-05-26Sorta experimental: Add queue duration monitorFlorrie
Ala cytube!
2019-05-26Add "Reveal" menu option for queue listing tracksFlorrie
2019-05-26Fix menu not shrinking to content properlyFlorrie
Before this commit, the width of the context menu depended on its own previous width - so if you opened the menu of an album with a very long name, then opened the menu of a shorter one, the width wouldn't actually shrink to the shorter one's size as it's supposed to.
2019-05-26Add queue current index / length labelFlorrie
2019-05-12Update tui-lib with scrollbar changesFlorrie
...and adapt the code to support the scrollbar being hidden (if there aren't enough items to make the listing scrollable).
2019-05-12Fix the "processing metadata" text getting stuckFlorrie
...when you choose "process metadata (new entries)" on a track which has already had its metadata processed.
2019-05-12Show track title in context menusFlorrie
...rather than just leaving a blank space where the title should be.
2019-05-01Hide track number in queue listing!Florrie
2019-04-19Don't volume-down when / is pressedFlorrie
2019-04-19Fix input causing misc. crashes before 100% loadedFlorrie
Definitely by pressing Ctrl-L but probably any of these would cause all sorts of badness.
2019-04-17Rework input system, support number padFlorrie
Also changed focus main/queue listings to [ and ], so that we can use the 2 key for the down arrow on a number pad.
2019-04-11Reset keyboard selector value when menu opensFlorrie
Otherwise you could type, for example, P to select "process...", then close the menu, then reopen it and press R to jump to "remove...", but it would just select "process" again because that matches "PR".
2019-04-11Remove dead keyboard shortcut codeFlorrie
2019-04-08Fix listing index not being updated correctlyFlorrie
Actually it wasn't being updated at all. We need to pass an element to selectInput, not an index!
2019-04-02Remove HL from HJKL, for nowFlorrie
Sorry :P
2019-04-02Vim HJKL keybindings :)Florrie
2019-04-02Update tui-lib - fix crash when queue gets shorterFlorrie
Previously (on Avatar), removing tracks from the queue would cause a crash if the queue listing was scrolled down. This update fixes that.
2019-04-02Focus context menu items by typing out their nameFlorrie
2019-03-10Suspend supportFlorrie
Should think about moving this into tui-lib! It'd fit the boilerplate function I have there already (I think), but we're not making use of that in mtui yet.
2019-02-25Don't remove current track when clearing queueFlorrie
2019-02-25Metadata (stored, throttle, status, and more)Florrie
2019-02-25Metadata (in memory)Florrie
2019-02-25Pass around app instead of recordStore, for nowFlorrie
I still prefer recordStore as the cleaner solution, but we were just doing recordStore.app a lot of the time, and this really wasn't any better than just passing app.
2019-01-31More hacky layout stuffFlorrie
Fixes play/mark/etc status not updating right away.
2019-01-31REALLY BAD DRAW CODE to support more animesFlorrie
2019-01-31Don't delete the scrollbarsFlorrie
2019-01-28Don't unqueue currently-playing trackFlorrie
2019-01-24(v), (V) - Volume controlsFlorrie
"v" increases because it's lowercase and therefore more likely to be accidentally pressed, hence more likely to confuse the user when it decreases the volume (if it decreased the volume - since it increases the volume, it generally doesn't seem to have any effect until you've already discovered that v and V are used for volume controls).
2019-01-24(l) to loop currently playing trackFlorrie
2019-01-10Hotfix stuffFlorrie
2019-01-10Queue item menu, "Play later" optionFlorrie
Items in the queue now have a menu, and if you pick "play later" from it (the other option is "remove from queue"), it'll move that item into somewhere further down in the queue. If it was already playing when you select play later, it'll first skip it, then move it.
2019-01-10:disgust: Fix some selection issuesFlorrie
* Menus opened from the queue wouldn't work before. Now they do. (Well, there's no code for them yet, but there was when I was testing.) * Rebuilding the items of a listing while it's selected doesn't reset the selection (i.e. select AppElement -> Tabber -> left pane). So you can remove an item from the queue and have focus remain on the queue, at the index where the item you removed was.
2019-01-09Fix left/right seeking in context menuFlorrie
AKA, prevent left/right from bubbling (I already intended this to happen but I forgot a required return false).
2018-12-28(Ctrl+L) to select playing track in queueFlorrie
2018-12-28(g), (G) to select first, last item in listingsFlorrie
2018-12-28Automatically use previous input if empty in '/'Florrie
If you press enter in the JumpElement form while it's still empty, automatically treat the previously-entered input as the entered value, so that it's easy to quickly do a "repeated" search (you don't have to enter the same value over and over again).
2018-12-28Prioritize searching past current indexFlorrie
Well, not the current index; rather the index which was selected when the jump element was opened.
2018-12-28Fix queue not auto-selecting auto-played trackFlorrie
Previously the cursor would only follow the selected track if it was selected by shift-up/down; now it works if it's automatically played (i.e. by the previous song finishing).
2018-12-23Mouse support in tabber elementsFlorrie
Click to switch tab, scroll over the tab list to quickly switch to the previous or next tab.
2018-12-23Show "unnamed" in "this group:" (and its menu)Florrie
2018-12-22Use cleaner tui-lib require syntaxFlorrie
2018-12-21Fix "this group" listing item causing a crashFlorrie
Somebody remind me to write unit tests...
2018-12-21Make cursor follow selection in queue listingFlorrie
This was already half-done, but the new behavior in this commit feels quite a bit nicer. (Specifically if you use shift-up/down (or n/p) while the queue is selected, the cursor will move to the new selection if it was already on the old selection, whereas before it would never follow when the queue was selected.)
2018-12-21Remove dead codeFlorrie
2018-12-21Move menu behavior out of grouplike item elementsFlorrie
This also makes it so that the selected options in whereControl and orderControl stay the same when you open the context menu on a different item, browse a different group, etc.
2018-12-21"Distribute" optionsFlorrie
E.g. to interweave two groups together.
2018-12-19Revive the old shuffle-groups feature!Florrie
Cool! This was one of my favorite tiny features of http-music.
2018-12-19Make a neater neato nice context menu!Florrie
Not a lot of new potential utility here for now, but it's at the least easier to use and cleaner than the old look! Also.. shuffle-groups soon(TM). Maybe!