Andrew Borodin
287dc015f3
(mcview__get_nroff_real_len): immediately return 0 if viewer is not in nroff mode..
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-05 16:26:30 +03:00
Egmont Koblinger
ff2132b0a8
Ticket #2294 : mcview: incorrect starting offset for 'search again'
...
When you press F7 in mcview to repeat the previous search, it starts again from the
file offset that is 3 bytes after the beginning of the current match. This introduces
weird and clearly buggy symptoms. Couple of examples:
If the file contains
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
and you search for a single x character, and you keep on pressing F7,
every third character gets highlighted.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:26:30 +03:00
Slava Zanko
906f688742
Merge branch '2361_url_path'
...
* 2361_url_path:
Fixed errors while connect to IPv6 hosts
custom_canonicalize_pathname(): Removed old-style path handling.
Deprecated parser now used just in Hotlist widget.
fixed relative symlink operations. Symlink now stay relative
Ticket #2361 : VFS URI reimplementation
2011-07-05 16:20:01 +03:00
Slava Zanko
0f249bd9b5
Fixed errors while connect to IPv6 hosts
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Slava Zanko
2044d8f853
custom_canonicalize_pathname(): Removed old-style path handling.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Slava Zanko
32a9f8257d
Deprecated parser now used just in Hotlist widget.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Slava Zanko
12af8e5db0
fixed relative symlink operations. Symlink now stay relative
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:57 +03:00
Andrew Borodin
ea4078e52e
Ticket #2361 : VFS URI reimplementation
...
Code cleanup:
* (vfs_set_raw_current_dir): remove redundant check.
* VFS: minor optimizations.
* Fixed type of mode argument of vfs_class:chmod method.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:09:23 +03:00
Ilia Maslakov
92d21199c4
Merge branch '2534_mark_file_left_right'
...
* 2534_mark_file_left_right:
Ticket #2534 (mark files by shift-left/shift-right)
2011-06-24 09:26:50 +00:00
Ilia Maslakov
125e4cb86b
Ticket #2534 (mark files by shift-left/shift-right)
...
added actions for mark files in the panel by shift-left/shift-right
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-06-24 09:23:08 +00:00
Slava Zanko
f462d71ab4
Added po/mc.pot file for auto-upload to Transifex.net
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-24 12:02:43 +03:00
Sergei Trofimovich
23f1447ae5
doc/HACKING: fixed link to gentoo's patchsets
...
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2011-06-24 10:51:29 +03:00
Slava Zanko
f2ebbd2eb4
Merge branch '2361_vfs_uri'
...
* 2361_vfs_uri: (60 commits)
Fixed vfs_class->fill_names() functions (Fish, Ftpfs, Smbfs) for return URL-like paths
Fixed nice_cd() behavior with vfs-prefixed. added converter benween old-style and url-stype VFS prefixes
Code cleanup
vfs_path_get_by_index(): added check for valid element index
Fixed memory leaks in folowing functions:
Removed function vfs_s_get_path(); Function vfs_s_get_path_mangle() renamed to vfs_s_get_path()
Added function mc_build_filename() for processing URL-paths as well
fixed x_basename function for handle URL-like paths
added vfs_path_element_valid() function
Changes in man-files for describe new URL-like paths
change name of user bindings file to mc.ext
vfs_path_to_str() now return URL string instead of old representation
Added URL-like path parser
Reorder VFS parser to work with VFS parameters:
Handle path /some/path/#vfsprefix:/path as /some/path#vfsprefix:/path
Remove usage of vfs_path_t->raw_url_str from src/* files
Following prototypes of functions was changed in VFS-module API:
Added function vfs_path_url_split() for parse VFS parameters
Removed vfs_get_class() function
Following prototypes of functions was changed in VFS-module API:
...
2011-06-23 14:46:11 +03:00
Slava Zanko
ef676d3244
Fixed vfs_class->fill_names() functions (Fish, Ftpfs, Smbfs) for return URL-like paths
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
a0b48d9b4e
Fixed nice_cd() behavior with vfs-prefixed. added converter benween old-style and url-stype VFS prefixes
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
c8ae0a5aaf
Code cleanup
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
91fe0d71bb
vfs_path_get_by_index(): added check for valid element index
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
5fa1070225
Fixed memory leaks in folowing functions:
...
* mc_opendir()
* mc_chdir()
* vfs_release_path()
* check_panel_timestamp()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
60123b7c99
Removed function vfs_s_get_path(); Function vfs_s_get_path_mangle() renamed to vfs_s_get_path()
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
1beaecdf12
Added function mc_build_filename() for processing URL-paths as well
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:02 +03:00
Slava Zanko
1eb91d7921
fixed x_basename function for handle URL-like paths
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
04a4ed0ece
added vfs_path_element_valid() function
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
42e864ad61
Changes in man-files for describe new URL-like paths
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
f7518c8d77
change name of user bindings file to mc.ext
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
bba132381e
vfs_path_to_str() now return URL string instead of old representation
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
2ec4cc59ab
Added URL-like path parser
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
39462b9b76
Reorder VFS parser to work with VFS parameters:
...
* Removed vfs_path_element_t->raw_url_str;
* Changed some VFS prefixes (colon now used when need to split VFS prefix and VFS parameters);
* Removed vfs_translate_url() functions and related code;
* added converter of VFS parameters to string representation.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:01 +03:00
Slava Zanko
bd022573e5
Handle path /some/path/#vfsprefix:/path as /some/path#vfsprefix:/path
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
5b862005bd
Remove usage of vfs_path_t->raw_url_str from src/* files
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
e6ec447585
Following prototypes of functions was changed in VFS-module API:
...
* archive_check
* archive_same
* open_archive
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
e9ed6a41cf
Added function vfs_path_url_split() for parse VFS parameters
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
3d1e2df9b7
Removed vfs_get_class() function
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
922114a1d0
Following prototypes of functions was changed in VFS-module API:
...
* archive_check
* archive_same
* open_archive
Added new functions:
* vfs_path_element_clone()
* vfs_path_clone()
* vfs_path_remove_element_by_index()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
c442e5e75f
Changed custom_canonicalize_pathname() function for handle URL:// style
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
d931785fd3
Added test for canonicalize_pathname() function
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
997876a109
Remove vfs_url_t structure (replace with vfs_path_element_t)
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
3eafe7308a
Added serialization and deserialization for vfs_path_t object
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
e7bb47cc2d
Added ability to serialize/deserialize strings and config objects(mc_config_t)
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
be0f9dda56
mcconfig: make parameters in some functions as const mc_config_t *
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
f8c45706e1
Avoid memory leaks in vfs tests
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
e8d58f188d
Fixed segfault while trying create dir in r/o VFS'es
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:45:00 +03:00
Slava Zanko
cec54195e7
Changes in VFS-tests.
...
* added test for checking encoding in VFS-module
* fixed names of log-files for tests
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
ac939a1bea
Fixed path recoding in VFS modules
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
691c06ce30
removed vfs_path_t->unparsed variable
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
a5dc2de78b
Added vfs_change_encoding() and vfs_path_element_need_cleanup_converter() functions.
...
Changes for handling directory encoding.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
c0004807d4
vfs_path_element_t->encoding now handled in lib/vfs/path.c
...
Added testcase for testinh path encoding.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
cedad03833
Move vfs_get_encoding() to path.c and make as static function.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
b0df841a4a
Removed vfs_path_t->unparsed_encoding.
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
ebe519ef15
remove struct dirinfo definition
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
405cc98cea
VFS: Make functions vfs_canon_and_translate() and vfs_canon() as static in lib/vfs/path.c
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00