Ticket #2701 (new enhancement)

Opened 13 years ago

Last modified 6 weeks ago

Compress to format...

Reported by: iwfmp Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: master
Keywords: Cc:
Blocked By: #4571 Blocking:
Branch state: no branch Votes for changeset:

Description

ATM there's a few scripts in the user menu that compress to a few formats.
It would be great to have a prompt for the compression type when trying to compress files/directories.

Perhaps using a hotkey (C-x, c) to show the window that prompts for a compression type (zip, tar.gz, bz2 etc...) and using a hotkey to choose the specific format.

The name of the compressed file would be prompted from the user when the format is chosen...

Change History

comment:1 Changed 13 years ago by andrew_b

I don't quite understand what you want.

  1. Enter to the directory.
  2. Press F2.
  3. Select 'Compress the current subdirectory (tar.gz)' item.
  4. Press Enter.
  5. See the prompt
    $  /bin/sh /tmp/.private/user/mc-user/mcusr6bjMea
    Name of the compressed file (without extension) [mc]: 
    

comment:2 Changed 13 years ago by iwfmp

You're right, this is the current option, and there's basically nothing wrong with it.

What I suggested is making the compression a little more organized - using a hot-key to open a window with all and only with compression formats, and then pressing a hotkey to select the correct one.

for example pressing C-x, c will open a window that prompts me for compression format:
===============================
Please select compression type:
g&z
t&ar.gz
&tar
&bz2

etc (the & represents the format hotkey)

comment:3 Changed 11 years ago by szaszg

This would be a good feature. BTW some of the "great" ancestor has similar options, and more...
Norton:

  • General settings for compression (select fast, smaller size)
  • Alt+F5 Compress with select compressor (builtin zip, pkzip, etc...)

Dos Navigator:

  • General settings for all external archivers
  • Shift+F1 Compress with select compressor and options (lot of...)

Necromancer's Dos Navigator:

similar to DN

Volkov:

  • hmm.., never finished ...

comment:4 Changed 7 years ago by cazacugmihai

+1 for this feature

comment:5 Changed 7 years ago by cazacugmihai

Until then, I did this:

= t d
1       Compress the current subdirectory (7z)
        Pwd=`basename %d /`
        echo -n "Name of the compressed file (without extension) [$Pwd]: "
        read name
        [ "$name"x = x ] && name="$Pwd"
        cd .. && \
        7z a "$name.7z" "$Pwd" && \
        echo "../$name.7z created."

+ t r & ! t t
2       Compress file (7z)
        Pwd=`basename %d /`
        echo -n "Name of the compressed file (without extension) [%f]: "
        read name
        [ "$name"x = x ] && name="%f"
        7z a "$name.7z" "%f" && \
        echo "$name.7z created."

+ t t
3       Compress files (7z)
        Pwd=`basename %d /`
        echo -n "Name of the compressed file (without extension) [$Pwd]: "
        read name
        [ "$name"x = x ] && name="$Pwd"
        7z a "$name.7z" %s && \
        echo "$name.7z created."

comment:6 Changed 6 weeks ago by zaytsev

  • Blocked By 4571 added
Note: See TracTickets for help on using tickets.