trash-d version 18

2022-07-14 Thread rushsteve1 via Digitalmars-d-announce
Hello! It's been a while, and few releases, since I [last posted](https://forum.dlang.org/post/nuyhauebgkximglfo...@forum.dlang.org) about `trash-d` here, so I figured I would give an update. [Version 18 was just tagged today!](https://github.com/rushsteve1/trash-d/releases/tag/18) A lot of i

Re: trash-d version 15

2022-03-12 Thread rushsteve1 via Digitalmars-d-announce
On Tuesday, 8 March 2022 at 16:25:44 UTC, Adam D Ruppe wrote: This is pretty flaky, I'd strongly recommend that for any module ever imported, use the explicit module definition, and use at last two names: `module mystuff.bar;` instead of `module bar;` Thanks for the advice! I've added explic

Re: trash-d version 15

2022-03-08 Thread rushsteve1 via Digitalmars-d-announce
On Tuesday, 8 March 2022 at 15:51:53 UTC, meta wrote: That's a very nice project, thanks for sharing, the code is very clean and easy to read, well done! Thanks! The only note I can make so far is the lack of proper modules ``module x;`` I'm surprised you could import other files without it

trash-d version 15

2022-03-08 Thread rushsteve1 via Digitalmars-d-announce
Hello! I thought I would give an update on `trash-d`, the utility that I've been writing in D for the last several months. https://github.com/rushsteve1/trash-d Previous announcement thread: https://forum.dlang.org/thread/onpukmibdjhtwwsva...@forum.dlang.org Since my last post there have been a

Re: trash-d: Replacement for rm that uses the trash bin

2021-08-25 Thread rushsteve1 via Digitalmars-d-announce
On Wednesday, 25 August 2021 at 18:37:33 UTC, Vladimir Panteleev wrote: I suggest investigating that as a future improvement. Not only is moving files within the same volume much faster (potentially an O(1) operation as opposed to having to read then write every byte of data), but it can also r

Re: trash-d: Replacement for rm that uses the trash bin

2021-08-25 Thread rushsteve1 via Digitalmars-d-announce
On Wednesday, 25 August 2021 at 13:52:32 UTC, Paul Backus wrote: To be honest, you could probably remove `pragma(inline)` from the program altogether and not notice a difference. A program like this is almost certainly going to be bottlenecked on IO long before function-call overhead makes a no

Re: trash-d: Replacement for rm that uses the trash bin

2021-08-25 Thread rushsteve1 via Digitalmars-d-announce
On Wednesday, 25 August 2021 at 06:23:37 UTC, Kagamin wrote: You marked all functions inline? If I did then it wasn't on purpose, I was only trying to mark the handful of helper functions as inline. If you know a solution to this, that would be greatly appreciated!

Re: trash-d: Replacement for rm that uses the trash bin

2021-08-25 Thread rushsteve1 via Digitalmars-d-announce
Thank you all for the warm welcome! --- On Wednesday, 25 August 2021 at 06:11:04 UTC, Vladimir Panteleev wrote: Cool! How does it compare to the `trash` command from the `trash-cli` package? To quote the `trash-cli` README Although the interface of trash-put seems to be compatible with rm,

Re: trash-d: Replacement for rm that uses the trash bin

2021-08-24 Thread rushsteve1 via Digitalmars-d-announce
On Tuesday, 24 August 2021 at 02:34:54 UTC, Paul Backus wrote: One thing I would have liked to see in the README, and had to go digging through the source code for, is a list of supported command-line options. You might consider copy+pasting the output of `trash --help` into the README, to giv

trash-d: Replacement for rm that uses the trash bin

2021-08-23 Thread rushsteve1 via Digitalmars-d-announce
https://github.com/rushsteve1/trash-d A near drop-in replacement for `rm` that uses the Freedesktop trash bin. Started because an acquaintance `rm -rf`'d his music folder and I thought there had to be a better way. It's pretty simple and only uses the D stdlib. Been working on it in my spare