Commit Graph

11409 Commits

Author SHA1 Message Date
Slava Zanko
e2c326997f Added usage of VFS_S_USETMP flag
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
Slava Zanko
73a7f1ce67 Ticket #2695: The vfs_path_t expansion to 'src/' subdirectory
Added vfs_subclass_flags_t type

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
Andrew Borodin
963ee345c8 Merge branch '2736_dont_panel_reload'
* 2736_dont_panel_reload:
  Ticket #2736: dont't reload panel forced before file operations
2012-02-28 20:44:54 +03:00
Andrew Borodin
ebacf41678 Ticket #2736: dont't reload panel forced before file operations
...to avoid actions on wrong files.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-28 20:44:32 +03:00
Andrew Borodin
7721a33acf Merge branch '2451_no_subst_var'
* 2451_no_subst_var:
  Support of disable of shell variables substitution in autocompletion.
  Added tests for examine_cd() function.
  (examine_cd): split in two functions to be unit test friendly.
  Support of disable of shell variables substitution in the command line.
  (strutils_unescape): allow disable shell variable substitution.
  Ticket #2451: allow do not variable substite in the command line.
2012-02-24 09:39:33 +03:00
Andrew Borodin
bff2736906 Support of disable of shell variables substitution in autocompletion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
ec476d0b88 Added tests for examine_cd() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
5531b25dd7 (examine_cd): split in two functions to be unit test friendly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
0a5065cb84 Support of disable of shell variables substitution in the command line.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
9f898d76dd (strutils_unescape): allow disable shell variable substitution.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
66231b1ac9 Ticket #2451: allow do not variable substite in the command line.
Environment variable should not be substituted if escaping of dollar
sign is used: \$VAR.

Initial steps:
(do_cd): changed return type from int to gboolean.
(examine_cd): likewise and some cleanup.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-24 09:39:04 +03:00
Andrew Borodin
792ae68170 Merge branch '2684_always_show_selected_file'
* 2684_always_show_selected_file:
  Ticket #2684 (selected file must be into the visible area).
2012-02-23 17:02:00 +03:00
Egmont Koblinger
94ffb8ba37 Ticket #2684 (selected file must be into the visible area).
After resize the window, the cursor line disappears, selected file was hide, but mustn't.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-23 17:00:31 +03:00
Ilia Maslakov
c99bec62ba Merge branch '2731_scroll_filenames'
* 2731_scroll_filenames:
  added scroll indication
  Ticket #2731 (scroll long filenames in panel)
2012-02-21 22:29:53 +04:00
Ilia Maslakov
0a192e51c7 added scroll indication
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-21 22:20:27 +04:00
Ilia Maslakov
d94da7d5c3 Ticket #2731 (scroll long filenames in panel)
added bindings 'ScrollLeft', 'ScrollRight' for scroll long filenames in panel

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>

    some code & typo fixes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-21 22:20:25 +04:00
Ilia Maslakov
678120dd9e Merge branch '2726_mcedit_reset_selection'
* 2726_mcedit_reset_selection:
  Ticket #2726 (mcedit nonpersistent selection must reset after cursor moved)
2012-02-15 15:17:32 +04:00
Ilia Maslakov
693ae0ac7f Ticket #2726 (mcedit nonpersistent selection must reset after cursor moved)
reset selection after END/HOME/PgDn/PgUp pressed only if 'persistent selection' is switched off.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-15 13:58:43 +04:00
Sergei Trofimovich
92ca4e8a74 Merge branch '2732_muldefs'
* 2732_muldefs:
  Ticket #2732: fix vfs test build failure on alpha
  Ticket #2732: tests/lib/vfs/Makefile.am: drop muldefs from CFLAGS
2012-02-13 16:18:42 +03:00
Sergei Trofimovich
931819039e Ticket #2732: fix vfs test build failure on alpha
The test fails to compile on alpha:

>  CC     vfs_parse_ls_lga.o
> vfs_parse_ls_lga.c: In function ‘test_vfs_parse_ls_lga’:
> vfs_parse_ls_lga.c:174:9: error: unknown field ‘st_atime’ specified in initializer
> vfs_parse_ls_lga.c:175:9: error: unknown field ‘st_mtime’ specified in initializer

as st_atime on alpha in not just a field name:

struct stat {
...
    __extension__ union { struct timespec st_atim; struct { __time_t st_atime; unsigned long st_atimensec; }; };
    __extension__ union { struct timespec st_mtim; struct { __time_t st_mtime; unsigned long st_mtimensec; }; };
    __extension__ union { struct timespec st_ctim; struct { __time_t st_ctime; unsigned long st_ctimensec; }; };
};

The fix switches to old-style struct initialization.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-02-13 14:18:31 +03:00
Sergei Trofimovich
3e4d6d6b76 Ticket #2732: tests/lib/vfs/Makefile.am: drop muldefs from CFLAGS
Otherwise gcc on alpha/arm will break in gcc -c phase:

      CC     config_string.o
    armv5tel-softfloat-linux-gnueabi-gcc <skip>  -z muldefs -c config_string.c
    armv5tel-softfloat-linux-gnueabi-gcc: muldefs: No such file or directory
    make[4]: *** [config_string.o] Error 1

Gentoo-bug: http://bugs.gentoo.org/403343
Reported-by: Markus Meier
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-02-13 14:18:16 +03:00
Ilia Maslakov
b1a26c7e2f Merge branch '2465_dynamically_resize'
* 2465_dynamically_resize:
  modified mc.lib, added alt-shift-arrows
  Ticket #2465 (dynamically resize panels)
2012-02-09 22:02:58 +04:00
Ilia Maslakov
7a4a7576b8 modified mc.lib, added alt-shift-arrows
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-09 13:44:32 +04:00
Ilia Maslakov
5e688eec94 Ticket #2465 (dynamically resize panels)
added new panel's action to dynamically resize panels:
    SplitEqual - make equal size of panels
    SplitMore - enlarge left/up panel
    SplitLess - enlarge right/down panel

changed misc/mc.keymap.default, misc/mc.keymap.emacs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-02-09 13:44:32 +04:00
Andrew Borodin
7c0a526916 Merge branch '2521_panel_size_after_split_change'
* 2521_panel_size_after_split_change:
  Ticket #2521: fixup of panel size after layout change.
2012-02-08 12:36:18 +03:00
Andrew Borodin
ebd0ce59a0 Ticket #2521: fixup of panel size after layout change.
Now each layout type has independent options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-08 12:36:02 +03:00
Andrew Borodin
fb9bd93022 Merge branch '2725_more_browsers'
* 2725_more_browsers:
  configure.ac: treat firefox as browser as well
2012-02-02 11:33:44 +03:00
Sergei Trofimovich
1da8ab58f8 configure.ac: treat firefox as browser as well
Found out by Michał Górny

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-02-02 11:33:23 +03:00
Andrew Borodin
d74841e6e1 Merge branch '2714_tree_command_line'
* 2714_tree_command_line:
  Ticket #2714: command line is unaccessible form tree panel.
2012-02-01 12:42:28 +03:00
Andrew Borodin
349308542f Ticket #2714: command line is unaccessible form tree panel.
If current panel is tree one, cannot enter a command in the command
line.
tree_key() was sync'd with panel_key().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-02-01 12:42:07 +03:00
Andrew Borodin
144824c304 Merge branch '2705_hex_prefix'
* 2705_hex_prefix:
  Ticket #2705: the 0x prefix for hexadecimal search is optional now.
2012-01-31 21:47:16 +03:00
Andrew Borodin
2fdc05db08 Ticket #2705: the 0x prefix for hexadecimal search is optional now.
Hexadecimal values like "2d f0" can be used as well as "0x2d 0xf0"
in all search dialogs where hexadecimal search is supported.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-29 18:52:16 +03:00
Ilia Maslakov
dca8a412bc Merge branch '2689_bsd_fallocate_fix'
* 2689_bsd_fallocate_fix:
  Ticket #2689 (fix fallocate detection for xBSD)
2012-01-19 16:37:56 +04:00
Egmont Koblinger
33bc4cea27 Ticket #2689 (fix fallocate detection for xBSD)
fixed macros 'mc-get-fs-info.m4' for correct 'fallocate' detection under xBSD

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-01-19 16:36:46 +04:00
Slava Zanko
7b1c27d4e7 Merge branch '2703_mc_menu'
* 2703_mc_menu:
  Ticket #2703: Simplify mc.menu - remove LZMA|LZ and change p7 to 7z
2012-01-13 11:55:14 +03:00
Artem S. Tashkinov
e60aca5d1a Ticket #2703: Simplify mc.menu - remove LZMA|LZ and change p7 to 7z
* LZMA is now considered unsupported and outdated, let's get rid of it.
 * There's no p7 archiver format, let's change it to "7z".

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-01-13 11:14:16 +03:00
Andrew Borodin
6318295a2b Merge branch '2503_compute_totals'
* 2503_compute_totals:
  Grammar.
  Calculate and show copied bytes for all files.
  Update file operation statistics for every processing file.
  Simplify constructing of file operation progress dialog.
  Ticket #2503: don't show total file operation info
2012-01-10 20:13:22 +03:00
Andrew Borodin
7f1a2e76af Grammar.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
b991d529ee Calculate and show copied bytes for all files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
09d77878c7 Update file operation statistics for every processing file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
dad538e7dc Simplify constructing of file operation progress dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Andrew Borodin
efb0197656 Ticket #2503: don't show total file operation info
...if the file_op_compute_totals option is off.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-10 20:13:02 +03:00
Ilia Maslakov
be6590a4a8 Merge branch '2710_mcedit_fix'
* 2710_mcedit_fix:
  (edit_insert_file_cmd): sync with new edit_insert_file()
  Ticket #2710 (can't open an edit zero-length file from VFS in mcedit)
2012-01-08 12:01:25 +04:00
Andrew Borodin
8fae57a1f5 (edit_insert_file_cmd): sync with new edit_insert_file()
...and make minor optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-08 11:58:21 +04:00
Ilia Maslakov
88b3f840a7 Ticket #2710 (can't open an edit zero-length file from VFS in mcedit)
fixed problem with zero-length files from VFS in mcedit.

    steps to reproduce the problem:
    1. touch test.txt
    2. tar cf test.tar test.txt
    3. place cursor on test.tar and press Enter to enter to the archive.
    4. place cursor on test.txt and press F4 to open file in editor.
    Result: file not opened.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-01-08 11:58:20 +04:00
Andrew Borodin
22f0ce34b3 Merge branch '2645_djvu'
* 2645_djvu:
  Ticket #2645: improve djvu support.
2012-01-07 13:44:19 +03:00
ctmp1
57f0240522 Ticket #2645: improve djvu support.
Open of djvu files with 'djv' extension.
View action for djvu with text layer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-07 13:44:01 +03:00
Andrew Borodin
e3d249a995 Merge branch '2702_video'
* 2702_video:
  Ticket #2702: improve video support.
2012-01-06 14:32:38 +03:00
Nerijus Baliunas
7345058ba5 Ticket #2702: improve video support.
Open .m4v and .ts files as video ones.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-06 14:32:16 +03:00
Andrew Borodin
067256f0df Merge branch '1576_hotlist_delete_group'
* 1576_hotlist_delete_group:
  Refactoring of hotlist confirmation dialogs.
  Ticket #1576: delete an empty hotlist group w/o extra confirmation.
2012-01-04 17:35:58 +03:00