getreu / tp-note

Minimalistic note taking: save and edit your clipboard content as a note file (Gitlab mirror)
https://blog.getreu.net/projects/tp-note/
Apache License 2.0
116 stars 3 forks source link

shorter binary name #7

Closed getreu closed 2 years ago

getreu commented 3 years ago

When Tp-Note is unsed on the console, one has to write the binary name tp-note a lot. Here, the - is especially annoying, because it inhibits autocomplete.

Tp-Note should have a shorter binary name, maybe tpnote or tpn? Are there any widely used tpn applications out there?

midnightexigent commented 3 years ago

on Arch Linux here, there are no known packages (AUR included) that provide a binary named tpn

getreu commented 3 years ago

Yes, I am still waiting for Tracking Issue for different-binary-name · Issue #9778 · rust-lang/cargo to be stabilized. At the moment it only works with unstable cargo.

midnightexigent commented 3 years ago

Hmm, not sure why you would need that feature as tpn is a perfectly valid name. I just tried adding the following in Cargo.toml and it worked. Isn't that sufficient ?

[[bin]]
name = "tpn"
path = "src/main.rs"
getreu commented 3 years ago

Yes, you are right. The above feature is not necessary and your solution works perfectly well.

The remaining questions is, what would be a better short name? tpn or tpnote? tpn would be a good choice, but it might be still in conflict with other programs on some systems. Then, maybe tpnote is easier to remember? After all, it mainly concerns the Tp-Note users who work on the console directly.

getreu commented 2 years ago

Solved with: Release v1.15.0: Rename binaries and installer packages to tpnote · getreu/tp-note