emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A couple of questions


From: George Hadow
Subject: Re: A couple of questions
Date: Wed, 20 Nov 2024 11:10:20 +0100

What happens when you do the following:

- go to a playlist buffer
- M-x emms-playlist-set-playlist-buffer

- delete the current buffer name (which is what is there by default)

--> This explains it! When I delete the current buffer name I then see completion for my other playlists.
So for some reason when I run the function it auto completes the name of the current playlist.
At the bottom of my mail is my vertico config (I can't see anything there that might be causing the issue)

> --> good to know about `emms-toggle-single-track', but shame it doesn't
> work currently with mpv

It will be fixed soon.

--> Great! Is there a way I can get notified when this is implemented? Or notifications when there are any updates?

I would be happy to mark this as your project and leave it unimplemented
if that would be a good motivator for you. Sounds like a great first
elisp project.

--> I'll add it to my to do list! I've started work on my first package, so I'm busy on that at the moment.

First, explain what you mean by "insert text" (in the metaplaylist buffer). Do you mean annotate the
name of a playlist with additional text which only appears in the
metaplaylist buffer?

-->  Yes, just like we can in the playlist buffer. I'm not sure about how useful this will be though. I'm now just going to get started using Emms and later perhaps offer suggestions (assuming you're happy with that)
  
Second, the order of the metaplaylist buffer is presented as an
alphanumerical sort because the order of Emms playlists changes, and it
would be annoying if every time you visited the metaplaylist buffer they
would be in a different order. 

--> Ah yes, this makes total sense!

Thanks a lot!
George


(use-package vertico
  :init
  (vertico-mode)
  :config
  (add-hook 'minibuffer-setup-hook #'vertico-repeat-save)
  (add-hook 'rfn-eshadow-update-overlay-hook #'vertico-directory-tidy)
  :bind
  ("M-P" . vertico-repeat-previous)
  ("M-N" . vertico-repeat-next)
  ("M-S" . vertico-suspend)
  ("M-R" . vertico-repeat)
  (:map minibuffer-mode-map
("C-w" . vertico-save)
("C-<up>" . previous-history-element)
("C-<down>" . next-history-element)
("<next>" . vertico-scroll-up)
("<prior>" . vertico-scroll-down)
("C-<prior>" . vertico-first)
("C-<next>" . vertico-last)
("S-<prior>" . vertico-repeat-previous)
("S-<next>" . vertico-repeat-next)
))

On Tue, Nov 19, 2024 at 6:55 PM Yoni Rabkin <yoni@rabkins.net> wrote:
George Hadow <georgehadow@gmail.com> writes:

> When called interactively from within a playlist buffer,
> `emms-playlist-set-playlist-buffer' should present a completing read of
> all playlist buffers. Is this not what you see?
>
> --> No, I only see completion for the current playlist (even though I have
> multiple)...strange.

I'm interested in debugging this. I would appreciate your help.

What happens when you do the following:

- go to a playlist buffer

- M-x emms-playlist-set-playlist-buffer

- delete the current buffer name (which is what is there by default)

- press TAB

> --> good to know about `emms-toggle-single-track', but shame it doesn't
> work currently with mpv

It will be fixed soon.

>     Because of this I tried to use VLC, but the problem is when I close the
> player the audio still plays, any ideas why?

I don't know why that would happen. I'll have a look.

> `emms-bookmarks.el' is a very simple implementation and doesn't have
> search. Were you thinking of a completing read? That shouldn't be hard
> to implement.
>
> --> completing read would be great! If you don't work on it, I hope to
> someday (I'm still early in my elisp journey!)

I would be happy to mark this as your project and leave it unimplemented
if that would be a good motivator for you. Sounds like a great first
elisp project.

It's up to you; decide if you want the feature sooner, or to use as a
learning experience. I'm fine with either.

> --> I guess there's no way to insert text or rearrange the metaplaylist
> buffer is there?

First, explain what you mean by "insert text". Do you mean annotate the
name of a playlist with additional text which only appears in the
metaplaylist buffer?

Second, the order of the metaplaylist buffer is presented as an
alphanumerical sort because the order of Emms playlists changes, and it
would be annoying if every time you visited the metaplaylist buffer they
would be in a different order. But I guess there is no problem in
principle with making the sort order customizable.


> Thanks Yoni!
>
> On Mon, Nov 18, 2024 at 10:34 PM Yoni Rabkin <yoni@rabkins.net> wrote:
>
>> George Hadow <georgehadow@gmail.com> writes:
>>
>> > Hi there,
>> >
>> > I think I'm getting very close to Emms being a very important tool in my
>> > workflow.
>> > There are just a couple of things I'd love to clear up:
>> >
>> > The command 'emms-playlist-set-playlist-buffer' only gives me the option
>> to
>> > select the current playlist (I expected to see completion for all my
>> > playlists).
>>
>> When called interactively from within a playlist buffer,
>> `emms-playlist-set-playlist-buffer' should present a completing read of
>> all playlist buffers. Is this not what you see?
>>
>> Personally, I have a lot of playlist buffers. I have M-<f11> bound to
>> `emms-metaplaylist-mode-go', which is where I manage my playlists and
>> choose from among them.
>>
>> > Is there an option to not have emms select the next in the playlist
>> > after hitting RET ((emms-playlist-mode-play-smart). When I'm watching
>> > a video and I stop before the end, I want point to remain on that
>> > file. Ideally this would work only for videos and not for audio.
>>
>> `emms-toggle-single-track' is a function which will toggle the
>> buffer-local value of the `emms-single-track' variable. When
>> `emms-single-track' is t, then Emms doesn't proceed to the next
>> track. So you could set `emms-single-track' to t in playlist buffers
>> with videos in them.
>>
>> The mpv backend misbehaves with regards to `emms-single-track'. This is
>> a bug and will be fixed. Sorry about that.
>>
>> > Lastly - Is there a way to search through all bookmarks?
>>
>> `emms-bookmarks.el' is a very simple implementation and doesn't have
>> search. Were you thinking of a completing read? That shouldn't be hard
>> to implement.
>>
>> > My whittled down config:
>> > (use-package emms
>> >   :init
>> >   (require 'emms-history)
>> >   :commands (emms-smart-browse emms)
>> >   :ensure t
>> >   :custom
>> >   (emms-player-mpv-parameters '("--no-config"))
>> >   :config
>> >   (setq
>> >    emms-player-list '(emms-player-mpv))
>> >   (emms-history-load)
>> >   (emms-all))
>> >
>> > Thanks very much!
>>
>> --
>>    "Cut your own wood and it will warm you twice"
>>

--
   "Cut your own wood and it will warm you twice"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]