aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scripts/helpers.sh12
1 files changed, 2 insertions, 10 deletions
diff --git a/scripts/helpers.sh b/scripts/helpers.sh
index 69aa59a..3656032 100644
--- a/scripts/helpers.sh
+++ b/scripts/helpers.sh
@@ -35,17 +35,9 @@ function vgub() {
vgstash list done -w 80 | sed -e '1,2d' | sort | uniq -w50 | sort -b -t'|' -k 2,2
}
-# Shows you the games that have more than one entry (by title) in vgstash.
-# Helpful for seeing games you own or have owned more than one copy of.
+# Shows you the titles of games that you own on more than one system.
function vgmulti() {
- # TODO: improve
- if [ -n $1 ]; then
- local filter="$1"
- else
- local filter="allgames"
- fi
- vgstash list -w 80 | head -n 2
- vgstash list $filter -w 80 | sort | uniq -D -w50
+ vgstash list owned -w 80 | sed -e '1,2d' | sort -b -t'|' -k 1,1 | uniq -d -w50 | cut -d'|' -f 1
}
# Prints the title and system of a random game that you need to beat.
2 that includes these columns. Please use the schema migration script in the "scripts" directory to continue using VGStash. The list_games function has been completely re-worked to handle arbitrary tabular data. Raw mode has remained, but the width switch (-w) for default table view is no longer present. The first VIEW supporting these columns is also available in FILTERS: the backlog_age filter, which will show you the amount of time games with a purchase date value have been sitting in your collection unbeaten. 2025-01-24tox.ini: Update to Python 3.11 env by defaultzlg1-1/+1 2025-01-23schema1-to-2.py: Add shebang because I'm a doofuszlg1-0/+2 2023-09-22scripts: Add schema v1->v2 migration scriptzlg2-9/+85 This script adds three columns to the schema, supporting the "Purchased", "Beaten", and "Completed" note headers. They are now converted to a UNIX timestamp and stored in a separate column so queries made against that metadata are easier. The library itself still needs to support all the new columns.