Commit Graph

11425 Commits

Author SHA1 Message Date
Slava Zanko
ff69719304 Added inline function vfs_path_get_last_path_vfs()
...to simple get VFS class for last path element without malloc/free
operations.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:26 +03:00
Slava Zanko
02f31f4db6 Added inline function vfs_path_get_last_path_str()
...to simple get path string without malloc/free operations.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:26 +03:00
Slava Zanko
389ac85992 Changed input parameters of mc_mkstemp() and mc_tempdir() functions
to handle vfs_path_t type.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:26 +03:00
Slava Zanko
f2dc217060 Added unit-tests for mc_tmpdir() and mc_mkstemps() functions
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
53c500f58c Moved functions mc_mkstemp() and mc_tempdir() to VFS module.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
4945d0f9a6 Changed interface of function mc_open() for handle vfs_path_t object as parameter
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
0a7caff306 Changed interface of function mc_symlink()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
b27f686f87 Changed interface of functions mc_link() and mc_rename()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
3f6f89bc49 Changed interface of following functions to handle vfs_path_t object as parameter:
* mc_chmod()
 * mc_chown()
 * mc_utime()
 * mc_readlink()
 * mc_unlink()
 * mc_mkdir()
 * mc_rmdir()
 * mc_mknod()

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
031e994cba changed interface of function mc_setctl() for handle vfs_path_t object as parameter
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
9177b954df Removed split_dir_name() function.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:25 +03:00
Slava Zanko
034252a71a Changed interface of function mc_opendir()
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:24 +03:00
Slava Zanko
eeaad790ab Changed interface of mc_stat() and mc_lstat() functions
...to handle vfs_path_t object as parameter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:41:24 +03:00
Slava Zanko
c47bc3778e added vfs_path_build_filename() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
Slava Zanko
8ec4f94dc6 changed interface of function mc_chdir() for handle vfs_path_t object as parameter
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
Slava Zanko
d69d9b31f1 VFS core: vfs_s_free_inode() function have global visibility
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-03-06 11:33:12 +03:00
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