Many File Editor
Opens a file with many near-filenames but not exactly right (for example file-name which needs to be file-name.txt), pulls out all those filenames, allows you to apply a file extension, opens those files one at a time, allows you to edit them, then saves it and goes on to the next.
Uses the Ruby GUI toolkit Shoes.
Built for Mac OS X.
Go to the Shoes website and download Shoes.
Open the Shoes app then open many_file_editor.rb.
Paste or open a file with the near filenames.
Add a Regex to change the near-filenames to proper filenames. Click "Apply". This will show the new filenames in the edit box to the right.
Put in the extension to add to the filenames. Click "Apply".
Click "Open Files". The window will change to a big edit box with each file.
Edit the file, then click "Save" then "Next File" or "Previous File".
Click "Exit" when you are done or "Main Window" to start over.
Pasted in text:
pasted = <<HEREDOC
- [[bk_BeyondQuantumTheory|Beyond Quantum Theory]]
- [[bk_RememberWholesale|We Can Remember It For You Wholesale]]
- [[bk_TranscentionHypothesis|Transcention Hypothesis]] HEREDOC
Regex Match Used:
captured = pasted.scan(/(bk_\w+)/).flatten puts captured
Folder with Files:
bk_BeyondQuantumTheory.markdown bk_RememberWholesale.markdown bk_TranscentionHypothesis.markdown
- allow to add any substituion, rather than just an extention
- add features