-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iTunes CLI #15
Comments
Yeah, that's a cool idea. Someone should do it, I don't have the time though. It could use Inquirer.js or blessed to get an interactive interface. Can you elaborate a bit more on how you'd like it to work? |
This will largely come down to personal preference, but 99% of my Aflred iTunes usage is to play an artist or album... once I'm there it's easy enough to use the previous and next keys on my keyboard to move around. So in my mind the core features would be fuzzy matching of artist and album names with some kind of prioritisation. eg. ❯ itunes radiohead ❯ itunes king of limbs That would be my ❯ itunes radio ? Select an artist or album: (Use arrow keys)
❯ Radiohead (artist)
King of Limbs (album)
Radio - Lana Del Ray (song)
Radioactivity - Kraftwerk (song)
(Move up and down to reveal more choices) |
Hej, I l:heart_eyes:ve the idea and fiddled around with Apples JavaScript for Automation for a few hours. The docs are not that good and the »API« for iTunes is kinda limited: But I managed to write a proof of concept for
I would love to write the CLI for that. But I'm not sure how to start because I’ve never wrote a CLI before 😬 |
If only osx supported dbus and iTunes supported mpris ;) |
Hej, I just published version 0.1.x of itunes-remote 👯 The code is still a bit ugly and there is a lack of tests … but at least it’s possible to listen to music without leaving the terminal 🎶 |
@mischah Nice! Looks like a great start :) You should also split the API and CLI into separate packages. Would be really cool if it were interactive. You could use vorpal (framework for interactive CLI apps) to easily achieve that. // @dthree |
😄 Looks really cool so far! Vorpal could definitely help you do some fancy things with it, really easily. Some ideas are tabbed auto-completion of songs / artists, commands to see what's playing or active updates on your CLI of what's playing. You could even make a "menu bar" that shows the current song and is constantly updating. Feel free to ask me any questions if you want to use it. |
Yep. Going to dive into that.
Thanks. Has vorpal any main advantages compared to Inquirer.js? |
Woohoo :) Looking great so far @mischah |
Vorpal is built off of As an example, here's some API commands for manipulating prompts and the UI it provides: https://github.com/dthree/vorpal/wiki/api-|-vorpal.ui Does that help clarify? |
Yes. Thank you very much. It looks a bit complicated at first sight. Guess I have to play around with it 😗 |
From the feedback so far from others, it's pretty simple once you get the hang of it. I think the best way to go about it is work back from what you want to accomplish, i.e. name something you want your awesome little app to do, and then ask or look for how to do that. Feel free to overwhelm me with questions - I'm get emails on the |
Thanks man 😊 |
👍 |
Huh! Nice! 👍 |
@stefanjudis Thanks 😊 |
Thanks man. It's looking really good 🌟 |
Get some fuzzy search in there for search lol. Lists are annoying especially when you have 20000 artists/songs. |
I don’t know what you’re laughing about:
|
I use the list when I need »inspiration« for listening pleasures btw. |
Just a Q - I think there's some free APIs to grab lyrics, already in Node. Would be rad if it could show lyrics. What do you think? |
I think the following are my top priorities:
I’ m going to open a few issues over there. |
Sounds good! Just throwing out ideas, not priority and you can disregard them if you don't like. I was thinking it'd be really cool if, when the CLI goes idle for more than 15 seconds or so, it can start redrawing the screen like a player, something like this (but prettier and with colors, obviously):
The bottom section would stick to the bottom of the screen. When in this mode, the As soon as you start typing any other command, the normal CLI would resume. Anyway, just food for thought :) |
wohoo. you got me with this one 👌 |
Haha - if you end up doing it, again don't hesitate to ask me for help. The CLI auto-updating and keypress handles are actually really easy with the |
I really like @dthree's idea! Let's take CLI apps to the next level of awesomeness :) |
I just created a few enhancements issues in the Repo 💃 |
👍 |
Alright. I consider this resolved. Nice work @mischah! Looking forward to see more interactivity :) |
Thanks. I first have to fix something in node-osacript which I rely on to make things possible for the itunes cli 😆 |
Hey @sindresorhus
After using the [fkill-cli] for a while, it got me thinking... I use Alfred a lot to control iTunes and it could probably be done from the command line.
This would be incredible!
http://support.alfredapp.com/features:itunes
The text was updated successfully, but these errors were encountered: