You are not logged in.

#1 2012-04-01 08:27:54

taylorchu
Member
Registered: 2010-08-09
Posts: 405

2a: ncurses archive manager

written in c, 2a archive manager uses only ncurses and libarchive. I created this because i don't want to use atool or bsdtar command all the time. it allows you to open and extract(or create) in one action.

YaH1fhPl.png?1

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 smile

*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/

Last edited by taylorchu (2013-01-19 21:25:39)


"After you do enough distro research, you will choose Arch."

Offline

#2 2012-04-02 00:53:58

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 2a: ncurses archive manager

i forgot to post the link for aur and git.


"After you do enough distro research, you will choose Arch."

Offline

#3 2012-04-03 11:14:06

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: 2a: ncurses archive manager

Hi, nice tool.

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 :-)

Offline

#4 2012-04-05 06:14:25

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 2a: ncurses archive manager

add some support for extracting and compressing single file
i think it is better to put (un)zipped files in specific folders. it is much more organized. i feel this way because i always forget where i extract my zip files to.


"After you do enough distro research, you will choose Arch."

Offline

#5 2012-05-04 03:53:13

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 2a: ncurses archive manager

juWuZs.png?1

1. various ncurses ui improvements
2. automatically jump to Unzip and Zip afterwards
3. dont blink on scrolling

Last edited by taylorchu (2012-05-04 03:58:49)


"After you do enough distro research, you will choose Arch."

Offline

#6 2013-01-19 08:41:37

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 2a: ncurses archive manager

after a long time, I came back to this project.
a lot clean-ups have been done, and more features have been added.
take a look.


"After you do enough distro research, you will choose Arch."

Offline

#7 2013-01-19 10:54:53

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: 2a: ncurses archive manager

great, after migrating to a new laptop I lost it somehow....your post reminded me to reinstall it :-)

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

Offline

#8 2013-01-19 15:46:16

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: 2a: ncurses archive manager

Tried this out today after reading the forum post. It works fantastically except for archives that have just one folder in the top of the archive. I'm not exactly sure what's going on here, but I'll provide a screenshot.

2a's view of the given archive example:
taDR5Mw

xarchiver's view of the given archive example (with the appropriate *.xz patch for xarchiver):
taDR5OA

Last edited by ShadowKyogre (2013-01-19 15:47:43)


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#9 2013-01-19 21:27:24

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 2a: ncurses archive manager

@ShadowKyogre
fixed


"After you do enough distro research, you will choose Arch."

Offline

#10 2013-01-20 01:00:19

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: 2a: ncurses archive manager

@taylorchu:
Thanks! I can now see all the contents of the given example archive in 2a! big_smile I have two quick suggestions, along with probably implementation guesses for how the suggestions'd be put into effect:

* 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.


For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#11 2013-01-20 01:33:47

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 2a: ncurses archive manager

@ShadowKyogre
for 2. do you mean not to recursively scan dir?

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)


"After you do enough distro research, you will choose Arch."

Offline

#12 2013-01-20 19:49:53

ShadowKyogre
Member
From: Hell! XP No... I'm not telling
Registered: 2008-12-19
Posts: 476
Website

Re: 2a: ncurses archive manager

taylorchu wrote:

@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

For every problem, there is a solution that is:
Clean
Simple and most of all...wrong!
Github page

Offline

#13 2013-01-20 22:38:15

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 2a: ncurses archive manager

@ShadowKyogre
select file feature is done.
use "mark (m)" to mark or unmark file

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...

Last edited by taylorchu (2013-01-20 22:38:45)


"After you do enough distro research, you will choose Arch."

Offline

#14 2013-01-28 01:52:30

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: 2a: ncurses archive manager

changelog
* support page scroll
* some refactor to RunMode
* fix a bug that the content will wrap around when the terminal is too small


"After you do enough distro research, you will choose Arch."

Offline

Board footer

Powered by FluxBB