Commit Graph

244 Commits

Author SHA1 Message Date
f3c4cec24a
Add and bind an action to center the cursor
"z" stands for VIM's "zz".
2021-12-23 20:36:00 +01:00
410136a647
Fix up coding style inconsistency 2021-12-21 06:26:53 +01:00
61a141203b
Bump liberty and version, update NEWS 2021-12-21 05:46:28 +01:00
48482ef2e5
Make incremental search more useful
Make it unanchored, as well as case-insensitive.
2021-12-21 05:46:22 +01:00
840c69767c
Prepare a NEWS entry for the next release 2021-12-08 19:05:58 +01:00
a14a907b18
Indicate that a stream download is in progress 2021-12-08 18:58:03 +01:00
333049de01
Do not run cURL fully synchronously
The improvement is very minor in character.
2021-12-08 18:23:30 +01:00
4e3596db35
Add rudimentary incremental search facility 2021-12-08 17:23:25 +01:00
5aa07fd8af
Clean up mpd_process_info() better 2021-12-07 20:38:02 +01:00
2060da4a8e
Do not jump to beginning after unqueueing
Instead, assume that the whole previously selected range
has been removed, and try to go after or before it accordingly.
2021-12-07 20:34:32 +01:00
f5b5cec340
Clean up unreadable code 2021-12-07 20:10:35 +01:00
1a671dfad5
Document PulseAudio integration 2021-11-16 05:17:15 +01:00
587a02fa15
Indent man page snippets with spaces 2021-11-16 05:16:51 +01:00
227b8e0fa2
Do not show both volumes if unnecessary
Also, make it apparent which value comes from where.
2021-11-16 04:48:52 +01:00
e66e9f249a
Rename an action to be shorter
Also, fix make dependencies to include the source file for actions.
2021-11-16 04:48:52 +01:00
32203f8117
Fix the comment for settings.pulseaudio 2021-11-08 07:23:08 +01:00
6b871898d8
Fix build on macOS and other non-GNU systems 2021-11-08 06:36:01 +01:00
4598c45d2f
Generate actions from a text file
Mostly because I wanted to nest preprocessing.

This makes the build more complex and slightly less portable,
but the code itself is much cleaner.
2021-11-08 06:07:04 +01:00
66c77c3f8d
Update README 2021-11-07 23:21:32 +01:00
7165a8eb02
Add ability to control PulseAudio volume
I know, son, it might be hard to accept,
but you're imported.  Your true parents are wmstatus
and paswitch, from the desktop-tools family.

Also, fix unnecessary linking of optional dependencies.
2021-11-07 23:07:55 +01:00
87b57bb24c
Add a comment about the music directory 2021-11-07 13:29:13 +01:00
ba86961ba5
Bump version, update NEWS 2021-11-04 14:19:50 +01:00
0cdb4989e5
Bump termo 2021-11-04 14:16:25 +01:00
6de940fe96
Do not beep on focus changes 2021-11-04 13:24:15 +01:00
6bd8c1db2f
CMakeLists.txt: fix macOS build 2021-11-02 17:17:32 +01:00
56efe9c6a9
Update .gitignore 2021-10-30 03:35:49 +02:00
8a17e674f8
CMakeLists.txt: clean up 2021-10-30 03:02:00 +02:00
bd0ee66c19
Add clang-format configuration 2021-10-30 03:02:00 +02:00
6f6efe077b
CMakeLists.txt: synchronize with sdtui 2021-10-27 19:48:47 +02:00
ee5c41b2bf
README: update dependencies 2021-10-21 09:21:08 +02:00
9a67e076a9
Bump version, update NEWS 2021-10-21 09:16:51 +02:00
53fbb3dec1
Fix the line editor/spectrum analyser interaction
The updater assumed the terminal cursor was invisible.
2021-10-21 09:13:07 +02:00
267598643a
Add program arguments to MPD's current playlist
I was tired of using `mpv --no-video`, this is a bit better.

It's all rather quirky, but very little code is involved.

I've added a few related TODO entries.
2021-09-07 06:35:24 +02:00
fba1210e9f
Clean up connection initialisation
Also, do not set up the spectrum visualiser before a password is sent.

It would look a bit weird to have it run but display "Disconnected",
even though technically, it would probably work.
2021-09-06 21:48:27 +02:00
30777e8fd3
Improve terminal initialisation
Don't just abort() on failures, print a proper error message.

Also, set up ncurses as late as possible.  This should be alright wrt.
signal handlers according to ncurses code, as well as XSI:

> Curses implementations may provide for special handling of
> the SIGINT, SIGQUIT and SIGTSTP signals if their disposition
> is SIG_DFL at the time initscr is called ...

termo blocks job control, so SIGTSTP is not a concern at all.
2021-09-06 21:30:03 +02:00
353174ee3c
Spetrum analyser: expand my favourite comment 2021-07-09 20:08:53 +02:00
2d641d087f
Spectrum analyser: add some useful comments 2021-07-09 06:25:48 +02:00
20c8385f2e
Spectrum analyser: optimise the x:16:2 case
nncmpp CPU usage went from 2 to 1.7 percent, a 15% improvement.

Sort of worth it, given that it's a constant load.

The assembly certainly looks nicer.
2021-07-08 19:14:26 +02:00
fa4443a3ce
Rectify an obsolete comment 2021-07-08 04:33:03 +02:00
14ba637d4b
Expand the last comment once again 2021-07-08 04:32:53 +02:00
66bc3f1c2c
Expand the comment on spectrum frequency filtering 2021-07-05 23:42:51 +02:00
0646cea126
Silence a compiler warning
The statement can be eliminated, then it suggests braces.
2021-07-05 01:26:16 +02:00
a439a56ee9
Add an optional spectrum visualiser
This is really more of a demo.  It's doable, just rather ugly.

It would deserve some further tuning, if anyone cared enough.
2021-07-05 01:10:46 +02:00
120a11ca1b
Update a comment about mouse modes
We might even depend on termo now more than is stated.
2021-07-04 10:23:37 +02:00
7e531e95c5
Process focus events
Should help prevent accidents in other windows.
2021-06-29 05:28:54 +02:00
0335443b22
Bump version, update NEWS 2020-11-05 01:47:18 +01:00
70ff29e3d5
Add a real manual page
Closes #3
2020-11-05 01:47:06 +01:00
ba122b7672
Minor clarifications 2020-11-05 01:47:05 +01:00
456fab5b11
CMakeLists.txt: install the contrib directory 2020-11-05 01:47:05 +01:00
f4999a63a5
CMakeLists.txt: make this build in OpenBSD 2020-10-29 18:14:41 +01:00