Slava Zanko
7f974fdbbb
VFS: Added new function vfs_path_to_str_flags()
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:53 +03:00
Slava Zanko
ff85ae5400
Use vfs_path_t in execute.c and subshell.c.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:53 +03:00
Slava Zanko
d590e13fb1
Changed do_cd() and do_panel() functions
...
...to handle vfs_path_t objects.
Changed panelized_panel_t.root type to vfs_path_t.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:53 +03:00
Slava Zanko
9a7750ca2f
Added unit test for do_panel_cd() functions.
...
Check if empty directory is mean 'change current directory to home dir'.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
493a8ce96d
Code refactoring: removed concat_dir_and_file() function.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
a83624cc75
Code refactoring
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
d6eb009bd8
Changed internal viewer to use vfs_path_t objects.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
95fdd25753
Changed internal editor to use vfs_path_t objects.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
d8f91d556a
Changed lock_file() and unlock_file() functions
...
...to handle vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
5480fe5f80
Changed treestore functions to handle vfs_path_t objects.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
fec5cd6c5d
Added function vfs_path_cmp()
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
d71e62c9fc
Added vfs_path_cmp() ans vfs_path_ncmp() functions
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
89e5604c9c
Changed do_reload_dir() function
...
...to handle vfs_path_t objects.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:52 +03:00
Slava Zanko
a6e13a5756
Push/pop dirstack: changed type of saved items to vfs_path_t type.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:51 +03:00
Slava Zanko
e239aaa307
VFS: internal changes in vfs_path_t type.
...
Changed type of array from slower GList to faster GArray.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:51 +03:00
Slava Zanko
916ac05c4b
Changed format of string 'current directory path' at header of panel.
...
* path elements now are separated and shown one-by-one
(eg. ftp://some.in.net instead of ~/some/path/ftp://some.in.net)
* encoding info is shown separated at top of header line
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:51 +03:00
Slava Zanko
5dafd4d809
Changed type of WPanel::cwd (char *) and WPanel::lwd (char *)
...
...to WPanel::cwd_vpath (vfs_path_tr *) and WPanel::lwd_vpath (vfs_path_t *).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:51 +03:00
Slava Zanko
fdedfb5d3b
Added new fnction for manipulate vpath objects:
...
* vfs_path_append_vpath_new ()
* vfs_path_vtokens_get ()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:51 +03:00
Slava Zanko
133cf183b5
Added vfs_path_tokens_count() and vfs_path_tokens_get() functions
...
...for easy work with vfs_path_t tokens.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:51 +03:00
Ilia Maslakov
4267c04b69
subshell.c: changed printf message into stserr to the vfs_print_message
...
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2012-04-22 10:31:51 +03:00
Slava Zanko
490af62655
Changed interface of functions mc_getlocalcopy() and mc_ungetlocalcopy()
...
...to handle vfs_path_t object as parameter.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:51 +03:00
Slava Zanko
893ed22259
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-04-22 10:31:51 +03:00
Slava Zanko
6cde215e0e
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-04-22 10:31:51 +03:00
Slava Zanko
a337f84ded
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-04-22 10:31:50 +03:00
Slava Zanko
617359e871
Added unit-tests for mc_tmpdir() and mc_mkstemps() functions
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
eb5543f02f
Moved functions mc_mkstemp() and mc_tempdir() to VFS module.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
d376b6ed40
Changed interface of function mc_open() for handle vfs_path_t object as parameter
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
82e07617ae
Changed interface of function mc_symlink()
...
...to handle vfs_path_t object as parameter.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
890f1f9242
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-04-22 10:31:50 +03:00
Slava Zanko
a78f87d30d
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-04-22 10:31:50 +03:00
Slava Zanko
cb2ad816f6
changed interface of function mc_setctl() for handle vfs_path_t object as parameter
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
eaa71ed519
Removed split_dir_name() function.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
e51c9e50fe
Changed interface of function mc_opendir()
...
...to handle vfs_path_t object as parameter.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:50 +03:00
Slava Zanko
32c6bde080
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-04-22 10:31:49 +03:00
Slava Zanko
a959d2843f
added vfs_path_build_filename() function
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
aecdc1a32e
changed interface of function mc_chdir() for handle vfs_path_t object as parameter
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
19201165a2
VFS core: vfs_s_free_inode() function have global visibility
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
5d2e5f636d
Added usage of VFS_S_USETMP flag
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-22 10:31:49 +03:00
Slava Zanko
f16bc71efb
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-04-22 10:31:49 +03:00
Andrew Borodin
71d1a118b0
Merge branch '2776_dir_selection_fix' into 4.8.1-stable
...
* 2776_dir_selection_fix:
Ticket #2776 : file selection reset after cd to ".." in remote VFS.
2012-04-16 12:45:02 +04:00
Andrew Borodin
0bd270a336
Ticket #2776 : file selection reset after cd to ".." in remote VFS.
...
After cd from directory to ".." in remote VFS, directory selection is
reset (".." is selected instead of the previous directory).
Bug was introduced in c457eaf9b1
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-16 12:44:37 +04:00
Andrew Borodin
88bf4cc672
Merge branch '2776_archive_selection_in_root' into 4.8.1-stable
...
* 2776_archive_selection_in_root:
Ticket #2776 : file selection reset after exit from the archive in the root.
2012-04-13 14:57:45 +04:00
Andrew Borodin
222ee44bfe
Ticket #2776 : file selection reset after exit from the archive in the root.
...
After exit from archive located in the root of FS, file selection is
reset (/bin is selected instead of the archive).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-13 14:57:23 +04:00
Andrew Borodin
321d2260e0
Updated RU translation.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-10 15:20:01 +04:00
Slava Zanko
fd3c93df07
Merge branch '1868_replace_regexp_hangup' into 4.8.1-stable
...
* 1868_replace_regexp_hangup:
Code optimization: memory allocation and free moved outside of loop.
Ticket #1868 : mcedit hang up on replace with regexp.
2012-04-09 12:34:03 +03:00
Slava Zanko
5f98155496
Code optimization: memory allocation and free moved outside of loop.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:33:27 +03:00
Slava Zanko
d2b72ad239
Ticket #1868 : mcedit hang up on replace with regexp.
...
steps to reproduce:
* create/open dummy file
* replace (with regexp enabled)
* on search string, put: ^ or $
* on replacement string, put *any string*
* on confirm replace, select All
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 12:33:27 +03:00
Slava Zanko
4b9d746741
Merge branch '2764_pcre_case_sentitive' into 4.8.1-stable
...
* 2764_pcre_case_sentitive:
Ticket #2764 : Case sensitive search with SEARCH_TYPE_PCRE
2012-04-09 11:34:57 +03:00
vokac
a99d2b2588
Ticket #2764 : Case sensitive search with SEARCH_TYPE_PCRE
...
When mc is compiled with SEARCH_TYPE_PCRE (and without SEARCH_TYPE_GLIB,
e.g. on systems with old glib < 2.14) case (in)sensitive search works in opposite.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2012-04-09 11:34:37 +03:00
Andrew Borodin
22785c8823
Ticket #2774 : mc.ext: comment out the empty rule for texinfo.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-04-07 16:54:44 +04:00