1
0
Fork 0
mirror of https://git.sr.ht/~nixgoat/vento synced 2024-11-21 14:23:05 +00:00
Commit graph

81 commits

Author SHA1 Message Date
Lux Aliaga 5a0988d2c6
manifest: Bump version to v1.1.2
I don't really have more changes to add to Vento after this, so I guess
I'll push these changes to a new release. Have fun!
2022-11-07 18:21:02 -03:00
Lux Aliaga 833669af3c
item: Add slot to take/drop messages
To be more consistent with undo messages, I've added the slot in which
items are involved to take and drop messages. Simple as that.
2022-11-07 18:18:25 -03:00
Lux Aliaga dadb0d721f
readme: Fixed typo
The command to undo the last action is "vento -u" and not "vento -c".
2022-11-03 22:56:55 -03:00
Lux Aliaga ab313e2f50
manifest: Bump version to v1.1.1
Enough changes have been done for a newer version and I can confidently
call this a stable release. Enjoy.
2022-11-03 21:32:30 -03:00
Lux Aliaga ef3dcf8acc
inv: Emoji consistency
The slot switching action had a different emoji for confirming the
command was successful compared to other actions, so I switched it for
the green checkmark.
2022-11-03 21:15:00 -03:00
Lux Aliaga 1cbfc5a568
history: Nicer messages for undo result
It includes more details such as:
- What action was undone
- What item was affected in the action
- What that action involved
2022-11-03 21:06:28 -03:00
Lux Aliaga 19aa1955c8
inv: Add "message" arg to slot switching
When undoing a slot switching command, it would show the message
normally show when running the command by itself, which is not supposed
to happen. This commit fixes that by adding a boolean argument that will
print the message when true.
2022-11-03 19:42:39 -03:00
Lux Aliaga c1533e6b41
inv: Include slot switching in undoable actions
Turns out the history didn't include undoing slot switching, so an
action could accidentally be undone in the wrong slot. I've fixed that
and also reorganized the source so undoing actions wouldn't be pegged to
the item module.
2022-11-03 19:26:15 -03:00
Lux Aliaga 6ad43bbf82
src: Remove periods from end of sentences
For many messages there were some consistency issues in terms of
punctuation. I've fixed this issue by removing every period from every
sentence.
2022-11-03 19:08:50 -03:00
Lux Aliaga af0a27464b
manifest: Bump version to v1.1.0
New features, new version!
2022-10-26 17:15:58 -03:00
Lux Aliaga 0434457475
readme: Add "vento -u" to examples.
This is probably the last bit of documentation this new command needs.
Time to release!
2022-10-26 17:14:36 -03:00
Lux Aliaga 4f0c52ac16
doc: Add "vento -u" to documentation
I was about to release v1.1.0 until I forgot this command was completely
undocumented, so here it is.
2022-10-26 17:02:23 -03:00
Lux Aliaga 69ce377ec1
src: Improve documentation
Also removes an extra unnecessary comma.
2022-10-26 16:49:45 -03:00
Lux Aliaga 26699fe765
item: Implement undo command
Brand new feature! Now you can easily undo your last action using "vento
-u". While not a fully-fledged history, if you messed something up
during your last action, you can now easily undo it! Thank you
@Ephera@lemmy.ml for the suggestion!
(https://slrpnk.net/post/103331/comment/24020)
2022-10-26 16:37:52 -03:00
Lux Aliaga f8750f3515
item: Store last action
This is part of a user-suggested feature made by @Ephera@lemmy.ml over
on Lemmy (https://slrpnk.net/post/103331/comment/24020). It stores the
last action so it can later be undone by the user. Maybe if I feel
generous I might store a longer history in an SQLite database, but for
now a simple text file will do. The command for undoing will follow.
2022-10-24 17:57:46 -03:00
Lux Aliaga 5f5ae6e41e
src: Removed redundant clones
These suggestions were made by cargo clippy. These clones were
previously there to remove compiler messages, but it seems like they're
not needed anymore.
2022-10-23 12:54:23 -03:00
Lux Aliaga 839d4dcc76
item: Added take and drop messages
This was suggested by @Ephera@lemmy.ml on Lemmy
(https://slrpnk.net/post/103331/comment/24020) and I've decided to
implement it, since it's not really a hard thing to do and makes the
tool more intuitive.
2022-10-23 11:11:52 -03:00
Lux Aliaga d0ddc93b47 Merge pull request 'Refactoring' (#9) from refactor into master
Reviewed-on: https://codeberg.org/nixgoat/vento/pulls/9
2022-10-18 01:22:37 +02:00
Lux Aliaga 3b9a405614
build: Use struct for page data
The tuple approach was a bit complicated, so I decided to switch it out
for a Page struct. Yes, I have an obsession with structs.
2022-10-17 20:09:44 -03:00
Lux Aliaga 5e05bfa2ef
src: Removed unnecessary contexts
This commit should remove some contexts that actually made some errors
more difficult to read. They will now display the idiomatic errors
generated by anyhow.
2022-10-17 19:56:23 -03:00
Lux Aliaga d51163ef09
common: Use struct to deliver settings
After learning more about structs, I've decided to try and use them in
the common module. It replaces the original behavior of delivering the
data using a vector in favor of the Settings struct, also defined on the
same file.
2022-10-17 18:11:38 -03:00
Lux Aliaga b9cea29592
manifest: Bump version to v1.0.4
Another minor update! Really tiny and probably the last one in a good
while.
2022-10-01 17:40:08 -03:00
Lux Aliaga 4712c67bc2
src: Implemented clippy recommendations
Should make some code look less silly.
2022-10-01 17:38:14 -03:00
Lux Aliaga b627d304d8
manifest: Bump version to v1.0.3
And yup, new tiny release! Probably one of the last minor new releases.
2022-09-28 22:10:00 -03:00
Lux Aliaga 56ecc7d580
manifest: Binary size optimizations
This worked like magic! The release binaries went from ~5MB to ~800KB.
This is going in a new release.
2022-09-28 22:02:07 -03:00
Lux Aliaga 26cbbef870
readme: Asciinema demo
Should make showing the functionality of the tool clearer for users.
2022-09-28 17:45:52 -03:00
Lux Aliaga 9007b775e2
manifest: Bump version to v1.0.2
Another minor release!
2022-09-28 17:26:18 -03:00
Lux Aliaga 21c477e2ce
makefile: Disallow macOS from installing manpages.
Since the directory structure on macOS is not even close to the one in
Linux systems, I've decided to stop making it attempt to install the
manpages.
2022-09-28 15:01:43 -03:00
Lux Aliaga 0c08bc0a29
readme: Rewrite for Crates.io
So the readme on Crates.io looks kind of bad. I decided to redo it so it
looks well on there.
2022-09-28 15:01:42 -03:00
Lux Aliaga 96178a11b3
manifest: Bump version to v1.0.1
Just to register the bugfix release.
2022-09-27 22:38:44 -03:00
Lux Aliaga a98a8147e9
item: Fix taking files recursively
This should fix an issue which made it impossible to take files from
directories other than the one the user is sitting at.
2022-09-27 21:23:43 -03:00
Lux Aliaga 6ec32037db
src: Code comments and cleanup
Basically some last refinements to make the code look a bit more
readable and presentable.
2022-09-27 20:05:08 -03:00
Lux Aliaga 6fa0cba8ca
item: Pre-init error handling
Also adds another error handler for invalid slots. Solves #8.
2022-09-27 19:38:44 -03:00
Lux Aliaga 45dfcc9f19
fixup! src: Universal error handling 2022-09-27 19:29:54 -03:00
Lux Aliaga 8fe5bca167
src: Universal error handling
This commit should unify the way Vento handles errors. Solves #7.
2022-09-27 19:16:18 -03:00
Lux Aliaga ef5205ce3a
fixup! common: Add custom config 2022-09-27 00:05:06 -03:00
Lux Aliaga 3cd5ad758c
common: Add custom config
This should allow users to customize the location for their Vento
directory by modifying a single key in vento.toml. More information is
available in the manual page for vento.toml. Powered by config-rs.
Solves #4.
2022-09-26 23:58:42 -03:00
Lux Aliaga d3a2391cf2
readme: Fix syntax
vento help -> vento -h
2022-09-26 17:05:23 -03:00
Lux Aliaga ac986f8822
vento: The BIG commit
Since I worked on a LOT of stuff here, it's quite hard for me to
separate every change I've done. Take this as one huge refactor, which
includes:
- Changing the syntax of the Vento command
- Separating Vento into three binaries: vento, take, drop
- Moving the help messages into a new file called help.rs
- Removing unnecessary format macros
- Changing expect macros to context, for better anyhow compatibility
- Updating the documentation for these changes.
2022-09-26 16:58:33 -03:00
Lux Aliaga aa233555a4
readme: Update quickstart
I know this is not accurate yet but I want to not bother with this
later.
2022-09-24 22:56:44 -03:00
Lux Aliaga 13e28e445c
build: Create manpages for Vento.
I've backtracked from using Clap and instead will keep using my own
custom command parser. I'll be using the man crate instead. These
manpages have the new syntax which I'll implement in the following
commits. This also uses cargo-make to install the manpages because I
don't want the manpages being replaced everytime I rebuild.
2022-09-24 22:51:57 -03:00
Lux Aliaga 61235e7a63
manifest: Bump version to v1.0
Also added some manifest information and the "clap" and "clap_mangen"
dependencies.
2022-09-19 22:25:34 -03:00
Lux Aliaga edcf1408ee
readme: Credit jo!
Seriously, couldn't have done it without her lol
2022-09-19 00:32:00 -03:00
Lux Aliaga 76ad4aad5a
src: Better error handling
Should make it more Rusty™. Solves #2. Thank you @j0 for the help. (i'm
big stupid lol)
2022-09-19 00:31:30 -03:00
Lux Aliaga 756c56ea9f
readme: Add logo
yay we have a new project logo! 💖
2022-09-18 01:43:49 -03:00
Lux Aliaga d24727d301
inv: Prevent non-files from displaying file size
Maybe for folders I could later add a folder size but the method I'm
using to calculate file sizes doesn't work with folders, so yeah.
2022-09-18 00:35:50 -03:00
Lux Aliaga d11a200d6f
inv: Added directory listing
Now you can list the contents of directories with the list command!
2022-09-18 00:31:23 -03:00
Lux Aliaga 6c51a8da6e
inv: Show new message if inventory is empty
Basically so it looks less dumb if there aren't any items in the
inventory the user asked to list.
2022-09-17 22:53:44 -03:00
Lux Aliaga 445b5b1671
inv: Add directory count to inventory list
This commit modifies the spacing before an item in the inventory list.
2022-09-17 22:43:34 -03:00
Lux Aliaga 6c10953e88
inv: Add file size to inventory list
This commit also improves formatting in the inventory list.
2022-09-17 18:33:40 -03:00