#punch

85 messages · Page 1 of 1 (latest)

peak delta
#

@storm aurora just finished rewriting it in clap and have submitted a pull request.

storm aurora
storm aurora
#

mhm

storm aurora
dusty mortar
#

Ok. the trash right?

storm aurora
dusty mortar
#

Got it.

peak delta
#

Also @dusty mortar in case it helps the general idea I was going to make was to have a file which stored the last date when it was cleared and if the difference of today and that day i larger than some amount then clear it.

dusty mortar
peak delta
#

whenever punch is run

#

or we could just hand it over to a daemon

dusty mortar
#

Got it

peak delta
#

so daemon or when punch is run?

#

the daemon would increase complexity by a bit and also increase resource consumption

dusty mortar
#

when punch is run

peak delta
#

k

peak delta
#

also should we also add a feature to restore the files.

storm aurora
#

yeah I was thinking of some sort of punch undo which would undo the last trash or an easier option punch --drag <TARGET> which would retrieve files from the before mentioned trash directory

peak delta
storm aurora
#

sounds good

dusty mortar
#

My approach to moving the file is recreating them on the ~/.ptrash directory. Doing that will cause original date created to change.

#

Is there any better idea?

storm aurora
dusty mortar
#

That makes sense.

#

But I am referring to the approach of moving the files

#

we need to move the files/folder to that directory

#

There is no move API, we can use copy, create(for directories) and remove to achieve the same functionality

storm aurora
dusty mortar
#

gracias

storm aurora
dusty mortar
storm aurora
#

wow, great timing

dusty mortar
#

lol

storm aurora
dusty mortar
#

Once you are done, I think we can try use anyhow and thiserror to manage error handling

peak delta
#

i think we should probably use anyhow instead as thiserror is more for libraries

#

Should we nixify it?

peak delta
#
note: /usr/bin/ld: cannot find -lsqlite3: No such file or directory
          collect2: error: ld returned 1 exit status
peak delta
storm aurora
storm aurora
#

For now try sudo apt-get install libsqlite3-dev

peak delta
#

yeah it works now

storm aurora
#

I was busy today so I should be able get the undo command working later

storm aurora
dusty mortar
#

Hey all, what's up

storm aurora
#

Hey

storm aurora
#

so far so good on the undo function

hasty pier
#

Hello all, I'm quite new to Rust but I would like to contribute in some way. I thought a nice feature would be renaming and/or creating copies of existing files. I'm happy to implement these features over the coming days to get some more experience with the language if that's ok. Also, I think "spicy_lemonade" should maybe create another discord dedicated to this project

storm aurora
hasty pier
#

Also, just wanted to let you know about a potential issue (it might just be a me problem but whatever), I'm on windows and when I wanted to use punch from cmd I had to manually add the punch path to my system paths in order to use it from there. I have no idea how to append to the "path" variable from bash/rust on windows and also don't know if anyone else had this problem but if you did, let me know

storm aurora
hasty pier
storm aurora
hasty pier
storm aurora
#

yup

peak delta
peak delta
#

nvr mind there are a lot of permission problems with using nix as a build script

peak delta
storm aurora
peak delta
storm aurora
#

ah

peak delta
storm aurora
#

alr

storm aurora
#
to = to.join(PathBuf::try_from(args[0].clone()).unwrap());
#

its meant to be args[1]

#

should be good now

peak delta
#

actually it is supposed to be buf

#

yeah it works now

peak delta
#

@storm aurora i have opened a pull request for the rename feature

storm aurora
peak delta
#

lol its 11AM here

dusty mortar
#

Good work done from you guys, For windows you can use git bash to test, It's what I used to test the feature I worked on.

hasty pier
#

Bump

storm aurora
peak delta
#

Hi i am looking to contribute to this project. Could you point me to some good first issues or some features to implement. @storm aurora

storm aurora
peak delta
storm aurora
#

although I havent used clap before but yes from what im seeing,it looks like it would be beneficial rewriting the parsing in it

storm aurora
dusty mortar
#

Hey @storm aurora I am interested, what can I do?