fned 0.0.2 → 0.0.3

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.
data/README CHANGED
@@ -1,21 +1,47 @@
1
- fned: filename edit
2
- ===================
3
-
4
- fned allows you to use your favorite $EDITOR to edit filenames.
5
-
6
- .Example
7
- ----
8
- % touch foo.txt bar.txt
9
- % fned -v *
10
- $EDITOR starts with:
11
- # ./
12
- 0 bar.txt
13
- 1 foo.txt
14
- Keep the numbers in front and change the filenames as you like:
15
- # ./
16
- 0 file one.txt
17
- 1 other file.txt
18
- Write out the changes, the files are renamed accordingly:
19
- "foo.txt" -> "other file.txt"
20
- "bar.txt" -> "file one.txt"
21
- ----
1
+ fned(1) -- filename edit
2
+ ========================
3
+
4
+ ## SYNOPSIS
5
+
6
+ `fned` [`-r`|`--recursive`] [`-v`|`--verbose`]
7
+ [`-s` <separator>|`--separator`=<separator>] <filenames>
8
+
9
+ ## DESCRIPTION
10
+
11
+ `fned` allows you to rename files or directories by editing their name
12
+ in your favorite <EDITOR>. `fned` accepts the list of files to be
13
+ renamed as arguments. The editor is started with a line number and the
14
+ filename on each line. The line number must be preserved in order for
15
+ `fned` to recognize the file as valid. Lines starting with
16
+ `#` are comments.
17
+
18
+ `fned` chooses the editor by checking if the <VISUAL> or <EDITOR>
19
+ environment variables are set and uses its value or falls back to `vim` as
20
+ default.
21
+
22
+ ## OPTIONS
23
+
24
+ * `-r`, `--recursive`:
25
+ If a directory is specified on the command line the directory and
26
+ every file and directory recursively within the directory are
27
+ available for editing.
28
+
29
+ * `-v`, `--verbose`:
30
+ Verbose output.
31
+
32
+ * `-s` <separator>, `--separator`=<separator>:
33
+ Use <separator> to separate the line number and the name of the file
34
+ or directory. A single space is used by default.
35
+
36
+ ## AUTHOR
37
+
38
+ Matthias Lederhofer <matled@gmx.net>
39
+
40
+ ## REPORTING BUGS
41
+
42
+ Please report your bugs on <https://github.com/matled/fned/issues>.
43
+ Patches welcome.
44
+
45
+ ## SEE ALSO
46
+
47
+ mv(1), rename(1)
data/bin/fned CHANGED
@@ -1,3 +1,19 @@
1
1
  #!/usr/bin/env ruby
2
+ # Copyright (C) 2012 Matthias Lederhofer <matled@gmx.net>
3
+ #
4
+ # This file is part of fned.
5
+ #
6
+ # fned is free software: you can redistribute it and/or modify
7
+ # it under the terms of the GNU General Public License as published by
8
+ # the Free Software Foundation, either version 3 of the License, or
9
+ # (at your option) any later version.
10
+ #
11
+ # fned is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ # GNU General Public License for more details.
15
+ #
16
+ # You should have received a copy of the GNU General Public License
17
+ # along with fned. If not, see <http://www.gnu.org/licenses/>.
2
18
  require 'fned'
3
19
  exit Fned.main(*ARGV)
@@ -1,4 +1,19 @@
1
- #!/usr/bin/env ruby
1
+ # Copyright (C) 2012 Matthias Lederhofer <matled@gmx.net>
2
+ #
3
+ # This file is part of fned.
4
+ #
5
+ # fned is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # fned is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with fned. If not, see <http://www.gnu.org/licenses/>.
2
17
  require 'tempfile'
3
18
 
4
19
  module Fned
@@ -1,3 +1,19 @@
1
+ # Copyright (C) 2012 Matthias Lederhofer <matled@gmx.net>
2
+ #
3
+ # This file is part of fned.
4
+ #
5
+ # fned is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # fned is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with fned. If not, see <http://www.gnu.org/licenses/>.
1
17
  require 'pathname'
2
18
  require 'fned/edit_list'
3
19
  require 'fned/rename'
data/lib/fned/rename.rb CHANGED
@@ -1,3 +1,19 @@
1
+ # Copyright (C) 2012 Matthias Lederhofer <matled@gmx.net>
2
+ #
3
+ # This file is part of fned.
4
+ #
5
+ # fned is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # fned is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with fned. If not, see <http://www.gnu.org/licenses/>.
1
17
  module Fned
2
18
  class Rename
3
19
  def initialize(options = {})
data/lib/fned/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Fned
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/fned.rb CHANGED
@@ -1,3 +1,19 @@
1
+ # Copyright (C) 2012 Matthias Lederhofer <matled@gmx.net>
2
+ #
3
+ # This file is part of fned.
4
+ #
5
+ # fned is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU General Public License as published by
7
+ # the Free Software Foundation, either version 3 of the License, or
8
+ # (at your option) any later version.
9
+ #
10
+ # fned is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU General Public License
16
+ # along with fned. If not, see <http://www.gnu.org/licenses/>.
1
17
  require 'optparse'
2
18
  require 'fned/filename_edit'
3
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fned
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,15 +9,14 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-16 00:00:00.000000000 Z
12
+ date: 2012-01-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: fned allows you to use your favorite $EDITOR to edit filenames
15
15
  email: matled@gmx.net
16
16
  executables:
17
17
  - fned
18
18
  extensions: []
19
- extra_rdoc_files:
20
- - README
19
+ extra_rdoc_files: []
21
20
  files:
22
21
  - COPYING
23
22
  - README