I realized that deleting items in archive is trivial with 2a. because user can simply:
1. 2a archive.zip
2. select whatever they need
3. unzip, jump to that ~/Unzip
4. 2a then type x
this idea is doable, but this will remove an important feature: disable all.
if your cursor is on [2a], you can disable all, then choose what files you need.
this is not possible without a parent node at top...
@ShadowKyogre
for 2. do you mean not to recursively scan dir?
Although that too would be handy, it isn't what I meant ^^;.
Let's say we have a folder to tar up like this:
a
|- b
|- c
|- d
|- e
|- d
With an option like #2, we would have the tarball's contents end up looking like this:
b
c
d
e
|- d
todo list:
1. config file .2arc
2. ability to choose items to process (by default all items are added, but you can toggle them)
3. delete items in archive (toggle, use 's' to save)
* For the changing the archive extraction and creation, probably a simple key-value file like the following?
[General] # <- header isn't really needed unless the other suggestions by linux-ka get added to example file
unzip_path=~/Unzip #expands to $HOME/Unzip
zip_path=~/Zip #expands to $HOME/Zip
# <other suggestions linux-ka proposed >
* Could an option be added to the archive maker that's similar to process all, but instead makes the contents of the initial top-level instead of being nested under the folder fed to 2a? I think all that'd need to be done is strip the top folder from the path for the files that need to be added, though I'm not positively sure on this.
* For excluding certain files on making an archive, probably attach a widget to each row in archive creation mode that the program can check while going over the list of files to put into the archive?
* And deleting some files from an archive. Not sure how that'd be implemented yet.
2a's view of the given archive example:
xarchiver's view of the given archive example (with the appropriate *.xz patch for xarchiver):
Could you please provide a man page ? It is easy to create using e.g. manedit (extra repo) .
Further, do you intend to work on proposals of former posts ? It would be really great to chose a different zip/unzip folder as well as chosing a bunch of single files in the same or even different folders to zip. Kind of ~/.2arc whre to set zip/unzip folder, mabye colors...just a set of feature requests :-)
I like your tool, hang on!
L-K
]]>1. various ncurses ui improvements
2. automatically jump to Unzip and Zip afterwards
3. dont blink on scrolling
Maybe you can add the function to mark certain files/folders to include into this archive. Means, not every file of the given folder will be included. Sometimes this is rather useful.
Also the path where to save the archive should be chosen by the user, the name as well.
But I guess this is already in progress :-)
]]>feature:
1. pstree preview
2. unzip almost everything.
2a <your zip file>
3. super lightweight (unlike ark and file-roller) I use it for i3wm
4. support simple zip mode
2a <dir>
5, use it like less! Ggfn
6. search with /
7. easy to manage zip and unzip stuff: I learned this from chrome's Download dir; why not just put all zip files in ~/Zip and all unzip stuff in ~/Unzip?
8. leave your comment below
*changelog*
2013-01-19 completely revamped
2013-01-19 fix tree is missing some nodes, fix malloc if browsing a dir with too many files (> 100000 files)
aur: https://aur.archlinux.org/packages.php?ID=58101
github: https://github.com/taylorchu/2a/