Commit Graph

4255 Commits

Author SHA1 Message Date
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 1f1908a824 Refactoring of hotlist confirmation dialogs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-04 16:30:28 +03:00
Andrew Borodin a29abae2e3 Ticket #1576: delete an empty hotlist group w/o extra confirmation.
While deleting an empty group in hotlist, the extra confirmation
"Group not empty. Remove it?" should not raise.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2012-01-04 16:30:10 +03:00
Andrew Borodin 0aa81e22ad Fixed hotkeys in 'Search' dialog in mcdiff viewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin 301e41b3e5 Fixed hotkeys in 'Search' and 'Replace' dialogs in mcedit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin 407b57a0b2 Fixed hotkeys in 'Search' dialog in mcviewer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-30 17:49:16 +03:00
Andrew Borodin 1923c3544c Ticket #2694: support '~' as home dir in 'Start at:' field in 'Find File' dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-29 11:46:07 +03:00
S. Melnikov a3ddfd14ea Ticket #2105 (mcview backward search)
Until 4.7 '/' was forward and '?' backward search.
    In current releases both keys are bound to ViewSearch
    so one must manually choose Backwards option in the dialog.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-28 17:30:07 +04:00
Ilia Maslakov 0b631ab1eb Ticket #86 (disable X11 from command line)
added option --no-x, -X for starting mc without X11 support.
    updated documentation: es, hu, it, en, pl, ru, sr.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-22 09:04:50 +04:00
Andrew Borodin bd2ddb54cb Modified "Configure options" dialog for better look'n'feel.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:30:35 +03:00
Slava Zanko 1dffc24f9b Fixed user defined home dir, if home dir contain tilda (~/)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 12:30:35 +03:00
Andrew Borodin 1b53918e0a Move type and function declarations.
(panel_view_mode_t): move from panel.h to layout.h.
(panel_update_cols): move from layout.[ch] to panel.[ch]
Fixed related includes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin 5e129f6b03 Fixed double declaration of midnight_dlg variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin 5aaaa57883 More type accuracy
...in addition to a1e34b8dfa.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin 56f8164381 Type accuracy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Andrew Borodin 7e01565c93 Fixed panel type replacement.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-12 12:23:25 +03:00
Slava Zanko 1ba18c54b0 Ticket 2686: Code cleanup
Avoid compiler warnings

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 12:23:25 +03:00
Slava Zanko ccb6de98c1 FISH: added external script 'utime'
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 11:51:25 +03:00
Sergey fac8c5d2f3 Ticket #2625: mc does not preserve file mtime when copying over ssh
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-12 11:51:25 +03:00
Andrew Borodin 86c8378d66 Fixup update of command line after window resize.
The bug only occurs with subshell enabled.

When resizing the window while in the viewer, the subshell resizes
itself and hence prints its prompt again. This is captured and processed
by mc.

src/filemanager/layout.c:setup_panels() is executed and recalculates
properties of the panel, but for some reason this time mc_prompt does
contain all the invisible characters, they are not stripped off, hence
size calculation goes wrong.

Thanks Egmont Koblinger for the detailed description of the problem and
the idea of fix.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-07 16:02:20 +03:00
Andrew Borodin 5e2d802f8d Ticket #2677: ret rid of double dialog in viewer if search not found.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-06 20:53:43 +03:00
Andrew Borodin 56a819ec5e Fixed comment about location of mc.keymap file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-12-06 16:24:10 +03:00
Slava Zanko 6c32fa3b84 Added function mc_config_get_full_path() for search user's config files by short names.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-12-06 16:24:10 +03:00
Sergey b4fb7b0c74 Ticket #1730 (troubles in mcviewer with utf8)
Fixed troubles in mcviewer with drawing utf8 chars.
    It happens in the middle of an utf8 char (on every 4096 bytes),
    leading to a valid char treated as unprintable.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-06 16:24:10 +03:00
Andrew Savchenko 6d99accfe0 Ticket #2676 (save of some learned keys is broken)
fixed saving of 'F13'-'F20' learned keys.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-12-06 11:42:20 +04:00
Andrew Borodin 0fcd9fdfa3 Minor optimization in file list creation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-18 10:37:33 +03:00
Ilia Maslakov 7f6655e865 Show the relative filename path in the panel
...if current panel->cwd is equal to the panelization root.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-11-18 10:01:16 +03:00
Ilia Maslakov 068b5b4948 Changed type of the WPanel::is_panelized member from int to gboolean.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-11-18 09:54:42 +03:00
Andrew Borodin 44b827bb9f Fixes segfault after switch panel mode
...from non-listing one (info, tree, quick view) to panelization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-17 16:32:40 +03:00
Andrew Borodin 3dbc61124f Ticket #275: panelization fixes.
"File listing" menu command should switch panel from panelization to the
file listing mode.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-17 16:31:53 +03:00
Andrew Borodin f929752310 Ticket #71: not all errors are skipped after "Ignore all" choose.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-11-16 16:29:49 +03:00
Andrew Borodin 83ee61254b Ticket #2669: fixed broken directory reloading.
Bug was introduced in 5c252726f1.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-11-09 13:51:51 +03:00
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