Commit Graph

10 Commits

Author SHA1 Message Date
Thomas Frans
dc64a2941d style(vscode): add EditorConfig extension recommendation
As Visual Studio Code is the most popular editor at the moment, it makes
sense to recommend the EditorConfig extension because it's not included
by default. Also enable the final newline in files again as that was the
default until the EditorConfig file was added.
2024-05-21 13:40:57 +02:00
Thomas Frans
caf937d858 fix: add leading slash to gitignore paths
The leading slash forces Git to only look for the mentioned files from
the root of the directory, not inside allowed subdirectories.
2023-11-24 19:10:28 +01:00
Thomas Frans
e8adff444c Automatic shell completion generation
* Add automatic shell completion generation.
Add automatic generation of shell completion scripts for various shells
(the ones supported by `clap_complete`). The scripts can be generated
using the `generate-shell-completion` xtask, which outputs the shell
script to stdout.

* Improve shell completion generation xtask.
General improvements to both the shell completion generation as well as
the xtask package itself. Update the README to match the new additions.
2023-03-09 19:02:11 +01:00
Thomas Frans
b27e84a386 Add manpage generation using xtask
* Add manpage generation.

* Hide xtask compilation info.
This changes the default behavior of the `cargo run` command for xtasks
to hide the compilation info. This makes sense as xtask's are run as a
program, and showing the compilation info every time clutters stdout
with unrelated info.

* Move ncspot's `clap::Command` to `lib.rs`.
Moving the `clap::Command` used internally by ncspot to a library allows
it to be easily shared between different packages (xtask and ncspot
itself).

This commit also reworks the xtasks to use clap for parsing the xtask
arguments, which simplifies writing new xtasks.

* Make `generate-manpage` `--output` optional.
When more xtasks get added, it would make sense to have a `generate-all`
subcommand that executes all xtasks, which wouldn't be able to have
options for every separate subcommand. Therefore the `output` argument
should be optional, and by default output to the `misc` directory which
contains extra metadata files already.

* Add packaging info to `README.md`.
Update the README to include information for packagers. The information
includes provided files as well as info on how to generate some of them.
2023-03-06 21:55:19 +01:00
Saul Chavez Sanchez
c9d02507ac Increase/Decrease volume by 5 (#298)
* Increase/Decrease volume by 5

* Fixed static value

* use fallback value in case parsing fails

fixes #282

Co-authored-by: Henrik Friedrichsen <henrik@affekt.org>
2020-10-22 20:21:49 +02:00
Bettehem
578d2b2f0c fix mpris metadata returing Spotify URI instead of an url in xesam:url field (#222)
* Added OpenUri D-BUS MPRIS support.
Removed "user:" from URIType check because Spotify doesn't always provide it.

* Added tags to .gitignore

* Changed mpris metadata to actually return the track's url instead of the Spotify URI so that it matches the functionality of the official Spotify client.

* Changed mpris:trackid and xesam:url to not use static naming so it can support podcasts.

* Changed xesam:url to default to an empty string instead of "0"
2020-07-14 21:30:14 +02:00
Henrik Friedrichsen
1e475b953a check Cargo.lock into repository
fixes #68
2019-05-13 08:54:14 +02:00
Rasmus Larsen
c5a0a73077 Ignore files created by IDEA-based IDEs 2019-05-07 23:37:27 +02:00
KoffeinFlummi
ab0d3eb9e7 Add .log to .gitignore 2019-04-18 13:30:44 +02:00
Henrik Friedrichsen
8ddf4498ba initial commit 2018-11-11 00:01:00 +01:00