Commit Graph

4373 Commits

Author SHA1 Message Date
Slava Zanko
ffbd9561f0 Ticket #2652: SMB is broken
After #2361, smb vfs module doesn't work at all.
The error message "Cannot chdir to ..." raises after hostname enter.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-31 23:31:59 +03:00
Andrew Borodin
fb3b86f2cd Optimization of menu creation.
Avoid a lot of iteration through the list of menu entries.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-31 15:53:05 +03:00
Andrew Borodin
e7e3a119b4 src/filemanager/mountlist.c and related m4 macros: sync with gnulib.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-28 11:26:54 +04:00
Andrew Borodin
ac23f3277b Ticket #2338: use uintmax_t for file system infomation
... to avoid integer overflow in huge file systems.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-28 11:01:24 +04:00
Ilia Maslakov
5c252726f1 Ticket #275 (panelize enhancement)
added ".." at the top of file list (after external panelization)
    added ".." at the top of file list (after 'find' panelization)
    disable ctrl-r (refresh) for panelized content
    added menu entry Left\Panelize, to restore panelized panel

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

Minor changes in goto_parent_dir()
many code optimization

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

little fixup

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-27 15:54:57 +04:00
Slava Zanko
c67bb4c53f Fixed compiler error: request for member strict in something not a structure or union
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-25 12:09:44 +03:00
Slava Zanko
489c7bf32e fixed warning: enumeration value 'FUSE_MAGIC' not handled in switch
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-25 12:06:32 +03:00
Sergey
2cd6dbfb53 Ticket #2634: mc cannot navigate over spftp servers
Some FTP servers like ftp.symantec.com and download.nvidia.com
do not support parameters in LIST command. They don't fail on
LIST -la ... just ignore them. So mc shows only root directory.
Always.

Steps to reproduce:
cd /#ftp:ftp.symantec.com/public

Expected result:
Content of /public/ directory shown.

Actual result:
Content of root / directory shown instead.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:54:33 +03:00
Slava Zanko
87e65893e7 Fixed searching the start of word
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
Slava Zanko
eacda21c12 Code optimization: avoid lot of calls for alloc/free memory in cycle.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
Slava Zanko
d12179c0de Current word under cursor doesn't included in completion list, if same word already exists in text.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:05 +03:00
ply
9b86146de2 Ticket #2614: Editor word completion should ignore the current word
Currently the completion considers the word the cursor is on as a possible
completion, but this is quite annoying if the cursor is inside the word.
Such completion effectively inserts the rest of the word one more time, so
CamelCase becomes CamelCaseCase. If this is the only match, it completes
automatically, which is even worse. The current word shouldn't be used
for completion.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:38:04 +03:00
igor
2e895e3c29 Ticket #2254: not mark checkbox "preserve Attributes" for filesystem mount with FUSE (sshfs)
If we copy the files to the partition mounted with sshfs,
the default checkbox "preserve Attributes" is unchecked.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-24 20:20:27 +03:00
Sergey
7f9c8f0969 fixed function 'edit_get_prev_utf ' to obtain the correct previous utf8 character.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-24 11:34:30 +04:00
Sergey
3e1b644f41 Ticket #2372 (Editor sometimes shows multibyte UTF-8 chars as two dots)
Sometimes when text contain multibyte UTF-8 chars, editor shows two dots instead of some letter.
When moving text cursor after that letter it will be displayed properly.
When moving cursor back (before letter) it will be displayed again as two dots.

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

added UTF8_CHAR_LEN

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-24 11:19:03 +04:00
Slava Zanko
41af257135 Added configuration option 'preallocate_space' for toggle space preallocating behaviour.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-20 10:51:08 +03:00
Slava Zanko
323fedecd7 Added implementation for files space preallocation
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-20 10:51:08 +03:00
Ilia Maslakov
c6e21eff7d little optimization to make code more intuitive.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-10-19 14:03:49 +04:00
Andrew Borodin
664b3efcda Ticket #2623: vfs: use data after free.
(vfs_s_close): vfs-specific data of file handler
vfs_file_handler_t::data is freed in vfs_s_subclass::fh_close method and
then can be used in vfs_s_subclass::file_store_one. Bug is related to
ftp and fish VFSes.

Added new vfs_s_subclass::fh_free_data method to free vfs-specific data
of file handler vfs_file_handler_t::data. Use it in ftp and vfs VFSes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-19 12:45:28 +04:00
Slava Zanko
0138645541 Ticket 1551: Update GPL version from 2 to 3
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-18 14:08:34 +03:00
Andrew Borodin
3f674600c8 Fix build with --disable-charset option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
07612ac7b7 Editor: reduce scope of some functions.
The edit_insert_column_of_text() function is used only in
src/editor/editcmd.c file. Now it is static.

Removed unneeded forward declarations.

Moved static functions to static area in src/editor/editcmd.c

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
4b0032de28 Editor: reduce scope of some functions.
Following fuctions are used in in src/editor/edit.c file only:

edit_print_string
edit_move_block_to_right
edit_move_block_to_left

They was moved from src/editor/editcmd.c into src/editor/edit.c
and made static.

insert_spaces_tab() is used in src/editor/edit.c. Not it is static. Also
some optimization was performed.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
8664830831 Editor: reduce scope of some functions.
Following fuctions are used in in src/editor/edit.c file only:

edit_get_byte_ptr
edit_get_buf_ptr
edit_get_prev_utf

Now they are static.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
9ac22ec544 (get_paragraph): fix of pointer difference.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
6ce562381c (load_keymap_from_section): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
6fdf2e6cef (load_keymap_from_section): remove unneeded keybind conversions.
Now the '^' sign can be directly used in keymap files as well
as his name 'caret'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:04 +03:00
Andrew Borodin
7330cd5672 Remove CK_Help action handler in diffviewer
...since it is fully identical with default handler.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:03 +03:00
Andrew Borodin
8f4b9e32f1 Remove extra screen update after show help.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-17 13:30:03 +03:00
Slava Zanko
a1e34b8dfa Code cleanup after runing splint on src/main.c file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-10-17 13:30:03 +03:00
Daniel Hahler
4271c184de Ticket #2598: u7z: Improve handling of missing p7zip binaries.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-10-03 13:39:56 +04:00
Slava Zanko
3c25300cd3 Ticket #2621: VFS extfs: broken navigation in archives if current path is encoded
Steps to reproduce:

 * configure & compile mc with '--enable-charset' option;
 * run mc
 * go to dir with any of *.zip, *.rpm, *.deb, *.patch/diff files
 * Change path encoding to any other by pressing ALT+e (selected encoding should be dfferent to system encoding)
 * try to enter to archive

You'll se error message from extfs module.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-30 12:54:10 +03:00
Andrew Borodin
b471db4905 Fixed positions of text start and hex cursor
...after switch between plane and hex modes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-23 20:38:50 +04:00
Vitaliy Filippov
6253decba5 Ticket #2543: Hex viewer mode does not restore cursor position.
If you are in hex viewer mode and viewer remembers file positions, the
viewer restores the start position, but does not restore the position
of cursor.
So the restored position is basically useless in hex mode, because when
you move cursor, you go back to the beginning of file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-22 21:29:40 +04:00
Slava Zanko
b361722545 Ticket #2611: FISH: broken panels drawing after entering password
Steps to reproduce:
 * run ssh daemon on your host;
 * run mc;
 * type cd sh://127.0.0.1;
 * type your password;
 * just one panel was shown, after pressing ctrl+r second panel will shown as well.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-19 12:53:54 +03:00
Ilia Maslakov
d6cbefb146 Ticket #2605 (FISH: mc hangs while copy lot of small files)
fixed fish-script 'get'.

    Steps to reproduce:
    create lot of small files
    try to copy these files throught FISH VFS
    mc hangs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-09-12 11:57:30 +04:00
Slava Zanko
3f816dbb5d Fixed placement for changesetfs and patchsetfs files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-11 12:36:46 +03:00
Andrew Borodin
23ec140834 (edit_collect_completions): fixed warinig:
editcmd.c:1104:42: warning: use of logical && with constant  operand;
switch to bitwise & or remove constant  [-Wconstant-logical-operand]
            if (*num == MAX_WORD_COMPLETIONS && MAX_WORD_COMPLETIONS)
                                             ^  ~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
0274ef4653 (etags_set_definition_hash): fixed memory leak
... and code indentation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
829f79c7e7 (move_right): fixed type of return value.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:56 +03:00
Andrew Borodin
4124e9e6de Editor: remove unused #define's.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Andrew Borodin
05385e1586 Set logfile for smbfs using mc_setctl().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Andrew Borodin
0c51a48a71 (mc_setup_by_args): fixed old VFS prefix.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Andrew Borodin
0997a01be9 (show_datadirs_extended): fixed paths in help message.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-09 12:01:55 +03:00
Slava Zanko
12dfe1bd55 VFS ftpfs: fixed broken filenames in unaligned 'ls' command output
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 20:10:48 +03:00
Slava Zanko
222442f50a Fixed filenames recoding while call external utilites by mc.ext rules
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 13:50:02 +03:00
Slava Zanko
70ff1dc3aa Removed mc_global.args structure.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 14:12:10 +04:00
Ilia Maslakov
67c35a20a6 Added -g, --oldmouse option to support of NORMAL/BUTTON_EVENT mouse type.
Required for some terminals (screen/tmux) to force needed mouse type
(BUTTON_EVENT by default).

Normal tracking mode sends an escape sequence on both button press and release.
Mouse highlight tracking notifies a program of a button press, receives a range of
lines from the program, highlights the region covered by the mouse within that
range until button release, and then sends the program the release coordinates.
It is enabled by specifying parameter 1001 to DECSET.

Button-event tracking is essentially the same as normal tracking, but xterm also
reports button-motion events. Motion events are reported only if the mouse pointer
has moved to a different character cell. It is enabled by specifying parameter 1002 to DECSET.
On button press or release, xterm sends the same codes used by normal tracking mode.

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

changed mc.1.in, added description of command line options -g, --oldmouse.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-09-08 14:12:10 +04:00
Slava Zanko
bfbe9b94ae Removed global variable slow_tty
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 14:12:10 +04:00
Slava Zanko
9d9935d290 Removed global variable ugly_line_drawing
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 14:12:10 +04:00
Slava Zanko
8d44ed297b Moved xterm_flag global variable to mc_global.tty.xterm_flag
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-08 14:12:10 +04:00
Andrew Borodin
387bad2c7e Move SIGWINCH handler initialization to tty_init()
... and rename tty_low_level_change_screen_size() to
tty_change_screen_size().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-08 14:11:51 +04:00
Andrew Borodin
09123c9fc9 Refactoring of TTY layer shutdown.
Unification of tty_shutdown() function as for S-Lang as for NCurses.
Added do_exit_ca_mode() call to the NCurses-based tty_shutdown().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-08 14:10:58 +04:00
Andrew Borodin
68468a25ac Ticket #2601: incorrect TTY layer initialization.
The xterm_flag variable was initialized in setup_mc() but used
first time in init_key() and in tty_init() (in do_enter_ca_mode())
before setup_mc() call.

Now xterm initialized in early step of mc start up process and
xterm support and mouse are initialized in tty_init().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-09-08 14:10:51 +04:00
Slava Zanko
00db991372 FISH: Fixed creating relative symlinks
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-07 14:44:59 +03:00
Slava Zanko
0894f8c827 Ticket #2582: Crash in 4.8.0-pre1 when copying symlink over ssh
mc 4.8.0-pre1 crashes when copying symlink over ssh.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-09-07 14:44:59 +03:00
Slava Zanko
d74ce809e5 Ticket #2576: Duplicate symbols (Linking) problem under Mac OS X
Fixed linker error 'duplicate symbol _record_macro_buf'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-08-30 18:19:00 +03:00
Andrew Borodin
90d019a499 Ticket #2201: file name length limit in tar archive
The problem: extracting deep files from an archive containing long directory/file
names, filenames are cut off at 100 characters (length of the whole path
inside the archive).

In general, the TarVFS is scheduled for total reimplementation. But this
fix is useful for stable releases.

Thanks AVFS (avf.sf.net) for the code of this fix.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-28 18:41:27 +04:00
Andrew Borodin
ad545f951a (panel_operate): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-28 17:31:19 +04:00
Andrew Borodin
0747bc6fe5 Ticket #2593: Hint line jumps to the top of the screen and overwrites main menu.
Don't modify the hintbar position before create and after destroy
of file operation progress dialog.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-28 17:31:19 +04:00
Andrew Borodin
d55c30eb7d Changed type of WEdit::extmod from integer to gboolean.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-26 10:30:53 +04:00
Andrew Borodin
d86acaa51d Extended shortcuts like 'ctrl-x x' are unavailable in editor.
Extended shortcuts like 'ctrl-x ctrl-x' or 'ctrl-x alt-x' are available
in editor, but 'ctrl-x x' are not.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-26 10:30:53 +04:00
Andrew Borodin
29d675c567 Allow create WEdit window with any sizes and in any location.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-08-24 09:51:54 +04:00
Andrew Borodin
340dc69013 Draw status line at the top of screen not at the top of editor widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-08-24 09:51:54 +04:00
Andrew Borodin
5ae3697e58 Ticket #2591: mouse clicks ignored on the bottom line of editor.
Initial step: fixups of WEdit resizing.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-24 09:51:54 +04:00
Andrew Borodin
10537ca05d Ticket #2590: M-o works unexpectedly on symlink shortcuts
(chdir_other_panel): symbolic link to directory is handled now
as directory.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-12 14:02:40 +04:00
Andrew Borodin
606883393e Ticket #2587: cannot compile 4.8.0-pre1 and 4.7.5.3 on Solaris
...using Sun C++ 5.11.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-11 11:10:46 +04:00
Andrew Borodin
f0b1f55c19 Ticket #2175: panelize doesn't honour current sorting.
After Find file -> Panelize files are shown with order of being found
and sorting mode of current panel is not applied.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-08-03 15:51:04 +04:00
Slava Zanko
b3e9a75e72 Fixed finds twice in backward direction in nroff'ed text
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:51:08 +03:00
Slava Zanko
7af542b76e fixed search result highlighting while search in backward direction
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:51:08 +03:00
Slava Zanko
1940e8f5dd Fixed broken search results highlighting
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:51:08 +03:00
Slava Zanko
064352e14d Fixed broken search in nroffed text with one-byte charset encoding
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:50:30 +03:00
Slava Zanko
ba2f67e0ac Fixed search for first symbol in string.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:50:30 +03:00
Slava Zanko
15cb151fce Ticket #265: Search finds bold/underlined strings twice
Fixed starting offset for 'search again' action in nroffed text.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-19 09:50:30 +03:00
David Sterba
125a640977 Ticket #2573 (patchfs enchancement)
1. do follow:
    diff -BurpN file1.c file.c > my.patch;
    diff -BurpN file2.c file.c >> my.patch;
    2. we see two file.c.diff entries within patchfs.

    after apply commit, we have one combined patch-file.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-07-16 14:41:00 +00:00
Ilia Maslakov
bdc7fc76cb changed README.extfs
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-07-16 13:10:02 +00:00
Ilia Maslakov
e8a0781934 Ticket #2467 (gitfs)
added new extfs plugin - gitfs
    used prefix [git] for identification as a #changesetfs

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-16 13:10:01 +00:00
Andrew Borodin
20b7ab681e Ticket #2522: fixup of Backspace key behavior in QuickSearch mode.
When Backspace key is mapped to CdParentSmart action,
it changes directory to the parent one in QuickSearch mode instead of
delete the previous symbol in qsearch buffer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-15 20:40:55 +04:00
Andrew Borodin
c4b95bcd32 Ticket #2576: fix of symbols duplication.
dialog_map, input_map and listbox_map variabels are declared and defined twice.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-14 21:46:59 +04:00
Slava Zanko
e5add17cb4 Ticket #81: Fixup of extfs.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-13 12:49:34 +03:00
Andrew Borodin
7fc7d0e74e Fixed vfs descriptions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 20:23:44 +03:00
Ilia Maslakov
54cf8c3ffa Do not mark the text after opening the file.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-07-11 20:23:44 +03:00
Slava Zanko
4e56efafe6 Ticket #81: savannah: can't access files on ftp starting with space
files starting with space can't be acessed by mc through ftp - it
shows the file as not having the leading space and attempts to
access it produce 'permission denied' errors.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-11 19:50:32 +03:00
Andrew Borodin
b13b031434 Renamed do_find() to find_file() and vice versa.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 13:26:24 +04:00
Andrew Borodin
835f12eb59 (search_content): use mc_build_filename() instead of concat_dir_and_file().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 13:26:24 +04:00
Andrew Borodin
97a776be47 (make_fullname): removed. Use mc_build_filename() instead.
Since make_fullname() now gets absolute paths only, optimize it out.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 13:26:24 +04:00
Andrew Borodin
439369b0ca Ticket #2491: broken lynk-like navigation in panelization of file find result.
Broken  left arrow (of lynx-like motion) from panelization of directories
having files only (without any subdirs).

Steps to reproduce:

1. mkdir -p a/{b/c,d}
2. touch a/d/e
3. cd a/b
4. mc
5. alt-shift-/ enter l left - selection points to 'b' directory (as it should)
6. down, enter, alt-shift-/ enter l left - selection points to '..' instead of 'd'

Now, if user enters the relative path in "Start at": input line in "Find File"
dialog window, the relative paths are used in panelization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-11 13:26:24 +04:00
Serhiy Storchaka
5ece6efde5 Ticket #2572: Patchfs with filenames containing whitespaces.
This solution isn't perfect because of ambiguous diff syntax.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-11 11:06:05 +03:00
Andrew Borodin
bc69280e50 Reimplementation of chmod dialog i18n.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
7a15e1d0e9 Calculate array sizes
...using actual array content. Get rid of according defines.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
36276dd7c8 Place buttons in 2 rows if more than 2 files are processed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
50d56ca13d Optimization of Chmod dialog initialization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
4029fa796e Collect file info labels in a separate array.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
69b1de0476 Added chmod_i18n() function.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
267f4302e9 Remove help text from chmod dialog
... as it presents in mc built-in help.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
b6ca87696c Code cleanup.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
ce46cf3a8e Ticket #2557: i18n reimplementation of 'Chmod' dialog.
Initial step: type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-09 13:54:47 +04:00
Andrew Borodin
ba4295e4f0 Ticket #71: mc hangs up after "Skip all" choose
...in case of copy/move files w/o read permissions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-07-08 20:54:55 +04:00
Slava Zanko
bf89e24a61 extfs helpers: Replace all 'gawk' occurences with @AWK@ meta variable.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 12:41:27 +03:00
Jindrich Makovicka
b0ba12d49c Ticket #2569: fix bashisms in extfs
Several extfs scripts (notably iso9660) don't work on linux
distributions using dash as the default shell. This patch
fixes all current problems in extfs reported by checkbashisms
utility.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-08 12:41:03 +03:00
Slava Zanko
79660a7588 Fixed return codes for mcview_get_utf() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-07 13:59:12 +03:00
Slava Zanko
c1aae6cb4e Search does not find text that are bold or underlined (yellow or red) and contain accented letters.
Exception: it finds if only the first character is accented, but highlights the match incorrectly.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-07 13:59:12 +03:00
Egmont Koblinger
b944a0a6c2 Ticket #1629: Problems displaying UTF-8 manual pages
Accented characters in bold (yellow) text are displayed incorrectly:
the letter, followed by a dot, then the letter once again, all in white.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-07 13:59:12 +03:00
Andrew Borodin
3ad5f51b8c (mcview_do_search): minor clean up, types accuracy and some algorithm optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-07-05 16:26:30 +03:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Slava Zanko
8ea49095c3 Changed functions vfs_file_is_local() and vfs_file_class_flags() for handle vfs_path_t type
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
c6796f790d VFS-plugins: remove usage of vpath->unparsed from 'local' plugin
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
093128c532 VFS: Current directory handler now have type vfs_path_t
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
a12fdfbb0e VFS: many changes for use vfs_path_t
* completed vfs_path_from_str();
 * completed vfs_path_to_str() and vfs_path_to_str_elements_count();
 * removed deprecated vfs_split();
 * changes in all related code;
 * new unit tests.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:59 +03:00
Slava Zanko
457c8b89e7 Changed internal function sfs_redirect() for handle vfs_path_t arg
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Slava Zanko
137ad4483d Changed internal function ftpfs_send_command() for handle vfs_path_t arg
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Slava Zanko
152124d9b7 Following prototypes of functions was changed in VFS-module API:
* getid
 * mkdir
 * rmdir
 * setctl

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Slava Zanko
d67da5dfa8 Following prototypes of functions was changed in VFS-module API:
* readlink
 * symlink
 * rename
 * link
 * unlink
 * mknod

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Slava Zanko
1406eb5035 Following prototypes of functions was changed in VFS-module API:
* opendir
 * stat
 * lstat
 * chdir

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Slava Zanko
dd19ca201d Following prototypes of functions was changed in VFS-module API:
* chmod
 * chown
 * utime

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Slava Zanko
479902f83e Following prototypes of functions was changed in VFS-module API:
* open
 * getlocalcopy
 * ungetlocalcopy

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:58 +03:00
Andrew Borodin
42bc3171c3 Ticket #2361: VFS URI reimplementation
Created vfs_url_t structure

...and use it to parse and store network VFS options.

vfs_s_super structure now has a special member for network VFS options.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-06-23 14:44:57 +03:00
Andrew Borodin
d2bd11be9b (save_setup_cmd): remove home directory and password
...from message of setup saving.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Andrew Borodin
82b27ead4d Optimization of history load.
Formerly, each widget loaded its history self in its constructor.
Thus, history file was read as many times as many widgets with history
are in dialog.

Now all widget histories are read from ${XDG_CACHE_HOME}/mc/history
file at one time after dialog initialization.

The ev_history_load_save_t event is apllied to load  histories.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Andrew Borodin
cff5925598 Optimization of history save.
Formerly, each widget saved its history self in WIDGET_DESTROY stage.
Thus, history file was read and written as many times as many widgets
with history are in dialog.

Now all widget histories are written to ${XDG_CACHE_HOME}/mc/history
file at one time before dialog destruction.

An ev_history_load_save_t event type is created to use new event engine
to save histories.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Andrew Borodin
7d469f841c (history_save): new function to save widget history
...to some in-memory created config without write it to file.

(history_put): now uses history_save().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Andrew Borodin
27ee15f828 "Layout" dialog window: remove "Save" button
...because it duplcates the "Save setup" menu item.
More correct i18n.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Andrew Borodin
87e16316bc src/filemanager/option.c: minor optimization and includes clean up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Andrew Borodin
e2c1db9f5a "Panel options" dialog window: remove "Save" button
...because it duplcates the "Save setup" menu item.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Andrew Borodin
28231f66d9 "Configure options" dialog window: remove "Save" button
...because it duplcates the "Save setup" menu item.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Andrew Borodin
4e232774b2 Ticket #2541: MC saves configuration many times.
The problem: when mc quits with auto-save setup, the main confguration
file is written 4 times.
The solution: don't write ini when some part of setup is saved. Write
ini only after save whole confguration.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-06-21 16:13:10 +04:00
Slava Zanko
b375236b53 Ticket #2544: search dialog trim spaces
What steps will reproduce the problem?

 * View some text (log) file (F3), or edit (F4).
 * Open search dialog (F7).
 * Enter string starting with space and ending with space (I used " ERROR " without quotes), press Enter
 * Press F7 to open search dialog again.

What is the expected output?
 * Original string in search dialog (" ERROR " without quotes)

What do you see instead?
 * "ERROR " (without leading space!)

What solution?
 * In function mc_config_set_string_raw() use g_key_file_set_string() instead of g_key_file_set_value()
 * change src/learn.c for handle new behavior
 * write some tests for new behavior

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-05-31 18:50:31 +03:00
Andrew Borodin
f147633f41 Ticket #2312: panelize content is lost when doing F5/F6/F8 on a file on the other panel.
(panel_operate): don't update panelize content in the other panel
before copy/move/delete operation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-05-30 17:29:20 +04:00
Ilia Maslakov
5e6e6aa37a Ticket #2556 (incorrect files mark by mouse)
What steps will reproduce the problem?
        1) activate left panel
        2) start mark files by mouse right button
        3) drag cursor into right panel
    What is the expected output?
        files are not marked in the right panel
    What do you see instead?
        files are marked in the right panel. it is not correct

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-05-28 10:47:19 +00:00
Yury V. Zaytsev
7dae33b257 Added locale setting before calling dpkg to fix "link to" parsing on non-C locales
Thanks to Andrew Borodin for this fix!

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2011-05-17 15:50:36 +04:00
Yury V. Zaytsev
87174687e2 Ticket #2552: Browsing *.deb files is broken with latest Perl
Latest Perl update broke the deb extfs. Thanks to Jakub Wilk for the solution!

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2011-05-17 15:50:36 +04:00
Andrew Borodin
47115e97ad Fix of terminal resize handling
...and fix of <sys/ioctl.h> includes
and includes cleanup in src/filemanager/layout.c.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-13 13:37:46 +04:00
Andrew Borodin
d92a2a4fd6 Get rid of some function forward declarations.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-13 13:37:46 +04:00
Andrew Borodin
321f5b2555 WEdit::num_widget_lines and WEdit::num_widget_columns are removed.
Widget sizes are used instead.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-13 13:37:46 +04:00
Andrew Borodin
c81486c202 WEdit::screen_modified is unused. Removed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-13 13:37:46 +04:00
Andrew Borodin
e64fe399e3 Viewer: removed commented-out code.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-13 13:37:46 +04:00
Pavel Vasilyev
777627103b Ticket #2518: code cleanup before 4.7.5.2 release.
(tree_store_load_from): removed unused variable.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-13 13:37:46 +04:00
Andrew Borodin
358391bd6b CPIO VFS: Use GSList to store inodes.
And missing includes were added.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-07 13:45:46 +04:00
Andrew Borodin
8de04446a3 Don't handle VFS timestamps for dirs opened in panels.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-04-07 13:45:46 +04:00
Andrew Borodin
a6e588e895 local.c: added copyright notice.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-04-07 13:45:46 +04:00
Slava Zanko
b46d2a3d62 Renamed struct vfs_s_fh to vfs_file_handler_t
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-04-07 13:45:46 +04:00
Andrew Borodin
68628184b1 vfs_s_super and vfs_s_fh now don't contain members specific to any vfs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-04-07 13:45:46 +04:00
Andrew Borodin
2e839a6ec6 sfs.c: reimplemented cached file list using GSList.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-04-07 13:45:46 +04:00
Andrew Borodin
5b7c5f09f4 Use GSList to create the list of no-proxied FTP hosts.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-04-07 13:45:46 +04:00
Andrew Borodin
401aaa5014 Ticket #2501: continue split of VFS core library and VFS plugins.
Use GList for list of vfs_s_super objects in vfs_s_subclass.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-04-07 13:45:46 +04:00
Andrew Borodin
ae07d3a9d4 Ticket #2511: fix of column mark with alt-alrrow keys in mcedit.
This bug was introduces in 1374340aa2 commit.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-31 10:32:27 +04:00
Andrew Borodin
a225419f1a (editcmd_dialog_raw_key_query): fix of result value.
ctrl-g is handled in common way (SIGINT), ctrl-c can be used as macro
shortcut.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin
e9014c5b13 Fix of DLG_ACTION handling in 'VFS Setting' dialog window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin
50a1b22860 Fix of DLG_ACTION handling in 'Chmod' command window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin
ab1ee7bd9f Fix of CK_Cancel handling in Tree widget.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin
0068809e58 Fix of DLG_ACTION handling in 'Configure options' dialog window.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin
4519c85134 Fix of DLG_ACTION handling in interactive help.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin
3e35200517 Fix of DLG_ACTION handling in diff viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin
9ae7a28bf8 Fix of DLG_ACTION handling in viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Andrew Borodin
87f3030c7a Fix of DLG_ACTION handling in file panels.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-30 16:17:16 +04:00
Slava Zanko
56c83d03d4 Added --configure-options for easy update & reconfigure existing mc.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-29 12:37:55 +03:00
Slava Zanko
ed70459b4d Ticket #2495 (addition info about paths)
Added -F option (AKA --datadir-info) for show extended information about used data dirs

display info about default used paths by 'mc -V'

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-29 12:37:55 +03:00
Andrew Borodin
0f1095ea38 Ticket #71: support of "Skip all" on multi-file/dir operation.
Added support of skip all failures on file/dir operations.
Original patch was created by me <me 0xn0 de> and modified by Thomas
Zajic <zlatko gmx at>.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-03-25 12:33:36 +03:00
alexander.stohr
a53d636b05 Ticket #2120 (cd to ~ processed incorrectly)
cd to "~" or "~" with subdirs may fail when issued from the in the command
    line if more than one space is separating the "cd" and "~". So, "cd<one space>~" works,
    but "cd<multiple spaces>~" fails.

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

    some fixes
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-22 21:30:23 +00:00
Slava Zanko
06f99484de Added configure parameter --enable-mclib for build own shared library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:53 +02:00
Slava Zanko
c0637dcb27 update .gitignore for src/vfs/extfs/helpers/
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:53 +02:00
Slava Zanko
f40887c3c6 Lib: removed includes to "src" directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:52 +02:00
Slava Zanko
6621250292 Added events for handle parent_call_string() and parent_call()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:52 +02:00
Slava Zanko
a01b8edd7a Use events for suspend mc (by pressing on CTRL+Z)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:52 +02:00
Slava Zanko
aad40e52fb Moved mc_refresh() to lib/widget
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:52 +02:00
Slava Zanko
5f8a5e4290 Use events for calling help window
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:52 +02:00
Slava Zanko
62207c8d4d Use events for operate with clipboard (copy/paste to external clipboard, save/load to file)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:52 +02:00
Slava Zanko
c2dfb82f61 Use events for update panels
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:52 +02:00
Slava Zanko
3634716374 Moved input_map, listbox_map and dialog_map variables to 'lib' subdirectory.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:51 +02:00
Slava Zanko
0f93e313df src/background.c: added some forgotten va_end() calls
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:51 +02:00
Slava Zanko
c58365fa64 Move check_for_default() function from lib/util.c to src/util.c
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:51 +02:00
Slava Zanko
7dad2df6a8 Moved initialization of mc_global.share_data_dir and mc_global.sysconf_dir to library
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:51 +02:00
Slava Zanko
e784cf65a5 Move src/filemanager/complete.c to lib/widget/input_complete.c
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:51 +02:00
Slava Zanko
5a458c702d Use events to show VFS messages.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:51 +02:00
Slava Zanko
746653fda2 Removed mc_main_error_quark() function
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:51 +02:00
Slava Zanko
4005b7924e Use events to check timestamp of panel directories
...instead of direct access to panels in VGS GC.

Inlcudes clean up.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:51 +02:00
Slava Zanko
6016620f42 Remove backlinks from lib to src - move global variables(used in lib) to mc_global structure (see lib/global.c)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 23:55:50 +02:00
Slava Zanko
6c5f5bf768 VFS structure changes:
* moved from lib/vfs/mc-vfs to lib/vfs;
  * split by directories for VFS-plugins and moved to src/vfs;
  * lib/vfs/vfs-impl.h was merged into lib/vfs/vfs.h.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 11:48:26 +02:00
Slava Zanko
d512649b33 Prepare to initialize application events.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-03-21 11:46:41 +02:00