tagmv 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +23 -9
- data/lib/tagmv/command_line.rb +5 -28
- data/lib/tagmv/version.rb +1 -1
- data/tagmv.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d10d02448926a0c0f986ad631e4d2f295eb7962
|
4
|
+
data.tar.gz: 323a1d33dd451badf7511b4fee7d6081e228e8c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b62596a0e6821ae819a67215c1a4c74a43e78d95b55f239c6917a42cbe815fa06d0b108b8000ca9e2001508030be28908ebe32544df5494096cf81561afb3284
|
7
|
+
data.tar.gz: c4821dfdb7491f3951d9729d74055342d9c5bc6b6155543cfa2a8832618f3862a3187c446c2305a14a40ea3b80d3bbe17d432c083a383a8d67d0a9cb39d86d2e
|
data/README.md
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# Tagmv
|
2
2
|
|
3
|
-
|
3
|
+
The ultimate keep-your-files-organized solution!
|
4
4
|
|
5
|
-
|
5
|
+
Moves your files into directories that represent tags, these tags are kept organized as a hierarchy according to tag counts.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
Tag all your files with multiple tags, and watch them end up organized!
|
8
|
+
|
9
|
+
Works using the most basic parts of the filesystem - no FUSE, no symbolic or hard links.
|
10
10
|
|
11
11
|
## Installation
|
12
12
|
|
@@ -14,13 +14,27 @@ The directories that represent tags are organized hierarchically (either by # of
|
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
17
|
-
$
|
17
|
+
$ tagmv file1 file2 directory1 directory2 -t tag1 tag2 tag3
|
18
|
+
|
19
|
+
This will move your files and directories into:
|
20
|
+
|
21
|
+
~/t/tag1./tag2./tag3./
|
22
|
+
|
23
|
+
As you tag more files and folders, it will order the tag directories according to the most popular tags, keeping things organized for you.
|
24
|
+
|
25
|
+
## Current features
|
26
|
+
|
27
|
+
Default directory is "~/t/" (not configurable yet, oops)
|
28
|
+
|
29
|
+
Supports top level tags - so that you can "pin" certain tags to be the top level directory
|
30
|
+
|
31
|
+
Config file: ~/.tagmv.yml currently supports the top level tags (no easy way to update config yet)
|
32
|
+
|
18
33
|
|
19
|
-
##
|
34
|
+
## Upcoming features
|
20
35
|
|
21
|
-
|
36
|
+
Dealing with tags - remove specific tags, rename/merge similar tags, listing tags, etc.
|
22
37
|
|
23
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
24
38
|
|
25
39
|
## Contributing
|
26
40
|
|
data/lib/tagmv/command_line.rb
CHANGED
@@ -10,7 +10,7 @@ module Tagmv
|
|
10
10
|
header "Options:"
|
11
11
|
|
12
12
|
footer ""
|
13
|
-
footer "tagmv by James Robey (
|
13
|
+
footer "tagmv by James Robey (https://github.com/foucist/tagmv/)"
|
14
14
|
|
15
15
|
option :tags, :required => true do
|
16
16
|
short '-t'
|
@@ -22,33 +22,10 @@ module Tagmv
|
|
22
22
|
def parse
|
23
23
|
return Choice.help if Choice.rest.empty?
|
24
24
|
|
25
|
-
|
25
|
+
opts = Hash.new
|
26
|
+
opts[:files] = Choice.rest
|
27
|
+
opts[:tags] = Choice.choices[:tags]
|
28
|
+
opts
|
26
29
|
end
|
27
30
|
end
|
28
31
|
end
|
29
|
-
|
30
|
-
#module Tagmv
|
31
|
-
# class CommandLine
|
32
|
-
# def self.parse
|
33
|
-
# Choice.options do
|
34
|
-
# header "\033[1m\033[32mtagmv\033[0m\033[0m: A Directory-based Tagging Organizer"
|
35
|
-
# header ""
|
36
|
-
# header "Options:"
|
37
|
-
#
|
38
|
-
# footer ""
|
39
|
-
# footer "tagmv by James Robey (http://jamesrobey.com/tagmv/)"
|
40
|
-
#
|
41
|
-
# option :tags, :required => true do
|
42
|
-
# short '-t'
|
43
|
-
# long '--tags *tags'
|
44
|
-
# desc 'The hostname or ip of the host to bind to (default 127.0.0.1)'
|
45
|
-
# end
|
46
|
-
# end
|
47
|
-
#
|
48
|
-
# return Choice.help if Choice.rest.empty?
|
49
|
-
#
|
50
|
-
# {files: Choice.rest, tags: Choice.choices[:tags]}
|
51
|
-
# end
|
52
|
-
# end
|
53
|
-
#end
|
54
|
-
|
data/lib/tagmv/version.rb
CHANGED
data/tagmv.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["james.robey+tagmv@gmail.com"]
|
11
11
|
spec.summary = %q{Tag your files by moving them into a tree-like tag structure}
|
12
12
|
spec.description = %q{Moves your files into directories that represent tags, these tags are kept organized as a hierarchy according to tag counts}
|
13
|
-
spec.homepage = "
|
13
|
+
spec.homepage = "https://github.com/foucist/tagmv/"
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tagmv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -119,7 +119,7 @@ files:
|
|
119
119
|
- lib/tagmv/tree.rb
|
120
120
|
- lib/tagmv/version.rb
|
121
121
|
- tagmv.gemspec
|
122
|
-
homepage:
|
122
|
+
homepage: https://github.com/foucist/tagmv/
|
123
123
|
licenses:
|
124
124
|
- MIT
|
125
125
|
metadata: {}
|