Commit Graph

9026 Commits

Author SHA1 Message Date
Andrew Borodin
e2e549d4bc Fixed po/ru.po.
Fixed choose encoding shortcut (M-e instead of ó-t).
Removed extra quote symbol in 2684 line.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-11 08:47:56 +04:00
Ilia Maslakov
4cd93228d4 Ticket #1683
add command EditToggleSyntax for toggle syntax highlight

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-10-10 15:50:58 +00:00
Slava Zanko
46d9b9c800 Merge branch '1630_ico_files_support'
* 1630_ico_files_support:
  Ticket #1630: add ico files support
2009-10-09 13:42:00 +03:00
Denis Briand
91378afbfb Ticket #1630: add ico files support
This is a trivial patch to add *.ico files support into mc.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-09 13:34:20 +03:00
Yury V. Zaytsev
f0c69e9819 Fix typos in Belorussian & Russian team names in PO-files
Also, fixed team names and formatting of strings in other translations.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-09 13:20:48 +03:00
Slava Zanko
de72a6f98f Fresh all translations. Update Russian translate.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-09 09:56:42 +03:00
Slava Zanko
11ec996333 Merge branch '397_i18n_sort_indicator'
* 397_i18n_sort_indicator:
  Ticket #397: i18n for  sort indicator
2009-10-09 09:49:25 +03:00
Slava Zanko
0fdb3488e5 Ticket #397: i18n for sort indicator
Fixed translations of sort indicator. Now it separate string for better translate.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-09 09:48:38 +03:00
Ilia Maslakov
9bec191b25 Merge branch '256_widget_backward_kill_word_fix'
* 256_widget_backward_kill_word_fix:
  Some fixies for optimization.
  Ticket #256
2009-10-07 13:30:43 +00:00
Slava Zanko
19493b9518 Some fixies for optimization.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-07 11:57:19 +00:00
Egmont Koblinger
51771e0092 Ticket #256
fix: Alt+Backspace (kill word) behaviour in command line

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-10-07 11:57:18 +00:00
Slava Zanko
b009a7b5fa Merge branch '1681_add_cab_support'
* 1681_add_cab_support:
  Ticket #1681: extfs for .cab
2009-10-07 13:15:00 +03:00
Yuri Fil
c5fd4aef8e Ticket #1681: extfs for .cab
Added ability for work with Microsoft CAB archives.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-07 13:14:24 +03:00
Slava Zanko
fc3f810330 Merge branch '1680_exit_on_non_local_vfs'
* 1680_exit_on_non_local_vfs:
  Ticket #1680: Allow 'exit' command on non-local filesystems.
2009-10-07 12:24:55 +03:00
Jindrich Novy
7370136f2a Ticket #1680: Allow 'exit' command on non-local filesystems.
On non-local filesystems, mc won't allow execution of commandline arguments.
This makes sense, except for the `exit' command, which might be allowed even on
non-local filesystems.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-07 12:24:40 +03:00
Slava Zanko
705acef312 Merge branch '1617_ownership_of_user_home_files'
* 1617_ownership_of_user_home_files:
  Reorganize work with files. Fixed permissions of files in mc home dir. All file names now accumulated into src/fileloc.h
  Ticket #1617: ownership of files ~/.mc
2009-10-07 12:01:28 +03:00
Slava Zanko
14be06d050 Reorganize work with files. Fixed permissions of files in mc home dir. All file names now accumulated into src/fileloc.h
* Added common functions for work with backups of main config files.
 * Fixed permissions of ~/.mc/ini;
 * Fixed permissions of ~/.mc/filepos
 * Fixed permissions of ~/.mc/hotlist
 * Fixed permissions of ~/.mc/Tree
 * Fixed ownership for ~/.mc/hotlist file
 * Changed definitions of config files. Now used constants from src/fileloc.h

Also, added ability for change mc user home dir. Just type:
{{{
make CFLAGS='-DMC_USERCONF_DIR=\".mc2\"'
}}}

And you will have different config files (very usefull for testing or development).

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-07 12:01:05 +03:00
Slava Zanko
a931ff73cc Ticket #1617: ownership of files ~/.mc
Test case:

$ sudo bash
files in the directory ~/.mc overwritten and hence change of ownership at the root.
Later, when starting from a user, MC can not save history (the file ~/.mc/history),
because this file is not overwritten.

Fix issue: Now files will overwrite if exists (rather than remove and create new file).
 * Added backup of saved files.  If someone wrong in 'write config' stage, backup file still present.
 * Identation of code.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-07 12:01:05 +03:00
Slava Zanko
669ac422f5 Merge branch '1679_tar_colon_in_name'
* 1679_tar_colon_in_name:
  Ticket #1679: Fails to view .tar file with a colon in name
2009-10-07 11:34:13 +03:00
Andrey Rahmatullin
4c5edb4647 Ticket #1679: Fails to view .tar file with a colon in name
Fixed incorrent handle of .tar files with a colon in name

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-07 11:10:54 +03:00
Slava Zanko
3b0008690c Merge branch '1620_file_hightlighting_icase'
* 1620_file_hightlighting_icase:
  Ticket #1620: File hightlighting based on extension is case sensitive.
2009-10-07 10:42:51 +03:00
Slava Zanko
71642b9bdb Ticket #1620: File hightlighting based on extension is case sensitive.
Added parameter extensions_case.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-07 10:42:25 +03:00
Ilia Maslakov
93f8b96b32 Ticket #1664 (Viewer: incorrect tabs alignment)
fix tabs alignment. Variable option_tab_spacing instead hardcoded '8' are used.

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-10-07 07:25:26 +00:00
Ilia Maslakov
1c4f8b1a0e Ticket #1675 (hex editor regression)
Viewer: fixed command handling.

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

    add: binding for "esc", "escape"

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-10-07 07:15:04 +00:00
Andrew Borodin
9041b265fc Merge branch '1662_find_file_empty_content'
* 1662_find_file_empty_content:
  Ticket #1662: keep empty 'Content:' field in 'Find File' dialog.
2009-10-06 21:20:51 +04:00
Andrew Borodin
2d1eb7bea0 Ticket #1662: keep empty 'Content:' field in 'Find File' dialog.
Partially revert of 5fd7d65dca.
If 'Content:' field is empty, keep it and don't populate it
from history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 21:20:26 +04:00
Ilia Maslakov
e5abe33fc6 Ticket #1669 (autoindent not working)
* remove unused code;
    * autoindent fixed, mcedit distinguishes CK_Enter and CK_Return commands, but terminal not.

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-10-06 13:56:17 +00:00
Slava Zanko
77896d5de1 Merge branch '397_mouse_click_column_heading'
* 397_mouse_click_column_heading:
  Cleanup of code. Remove unused panel_field_t::use_in_gui variable
  Added indicators for current sort type and sort direction.
  Fixed segfault in 'Brief file list' listing mode
  Added reversing sort order ability if one keybind raised multiple times.
  Added keymaps for some sort types.
  Remove code for reverse search direction when toggle search types.
  Fixed behavior of  CK_PanelSelectSortOrder event.
  Remove unneded code
  Added handlers for panel sort keybind actions.
  Remove array of hardcoded format names from listmode.c
  Some changes for better toggle sort types of panel.
  Fixed length of panel header (current directory).
  Ticket #397: Mouse click on column heading sorts panel on that column
2009-10-06 10:19:23 +03:00
Slava Zanko
ba9ac667d2 Cleanup of code. Remove unused panel_field_t::use_in_gui variable
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:55 +03:00
Slava Zanko
08e6e1caf4 Added indicators for current sort type and sort direction.
Added parameters into skin-files for showing sort indicator.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:55 +03:00
Slava Zanko
9766359a1b Fixed segfault in 'Brief file list' listing mode
Segfault was been raised after clink on header of right column.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:55 +03:00
Slava Zanko
13220bfc6c Added reversing sort order ability if one keybind raised multiple times.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:55 +03:00
Slava Zanko
9fa3347fc1 Added keymaps for some sort types.
* PanelSortOrderByName
 * PanelSortOrderByExt
 * PanelSortOrderBySize
 * PanelSortOrderByMTime

Also added 'PanelReverseSort' keymap.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:54 +03:00
Slava Zanko
3def4aeb0e Remove code for reverse search direction when toggle search types.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:54 +03:00
Slava Zanko
fe73db4227 Fixed behavior of CK_PanelSelectSortOrder event.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:54 +03:00
Slava Zanko
c8857b3084 Remove unneded code
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:54 +03:00
Slava Zanko
7896ea84f6 Added handlers for panel sort keybind actions.
* PanelSelectSortOrder - show 'Sort order' dialog
 * PanelToggleSortOrderPrev - toggle next sort type (or reverse sort order)
 * PanelToggleSortOrderNext - toggle previous sort type (or cancel reverse)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:54 +03:00
Slava Zanko
b4f7ea071f Remove array of hardcoded format names from listmode.c
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:54 +03:00
Slava Zanko
82a384d8f4 Some changes for better toggle sort types of panel.
Now we have just one array for formats of panel and for sort types.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:53 +03:00
Andrew Borodin
3631f810cc Fixed length of panel header (current directory).
Minor optimization of panel buttons draw.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-06 10:18:53 +03:00
Slava Zanko
d1c686c9f0 Ticket #397: Mouse click on column heading sorts panel on that column
Attached patch that adds the following 2 enhancements:
1) Using the mouse to click on a panel column heading re-sorts
  the panel on that column. If already sorted on that column,
  the sort order is reversed.

2) added a button "." next to "v" that toggles the display
   of hidden files.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-06 10:18:53 +03:00
Stan. S. Krupoderov
35ededec26 Ticket #1390: Key binding ctrl+t and marking files
mc.keymap: remap select charset to M-e, and C-t to mark file
    editmenu.c, main.c: change menu items to be consistent

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-10-05 16:02:04 +04:00
Andrew Borodin
b667eb1152 Merge branch '1665_find_file_panelize'
* 1665_find_file_panelize:
  Ticket #1665: panelize doesn't work when Start at: is empty in Find file dialog.
2009-10-05 15:22:32 +04:00
Andrew Borodin
197e5f62f1 Ticket #1665: panelize doesn't work when Start at: is empty in Find file dialog.
The panelize of find file results doesn't work
if 'Start at:' input field is empty in 'Find file' dialog.

The empty 'Start at:' input is forced populated by "." value.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-05 15:17:36 +04:00
Andrew Borodin
b6e56024c0 Merge branch '54_dlg_mouse_handling'
* 54_dlg_mouse_handling:
  Ticket #54: fix of dialog mouse handling.
2009-10-05 15:13:52 +04:00
Andrew Borodin
57f9d0e042 Ticket #54: fix of dialog mouse handling.
Skip widgets that matches coords but does not have an action (usually
groupboxes), continuing search of widget with defined action.
Thanks to sfionov.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-05 15:13:36 +04:00
Andrew Borodin
520e141844 Merge branch '38_tree_info_save_dir'
* 38_tree_info_save_dir:
  Ticket #38: fixed saving other_dir path into panels.ini.
2009-10-05 13:09:56 +04:00
IMDagger
6a4124c8ea Ticket #38: fixed saving other_dir path into panels.ini.
Save Info, Tree and etc. panels state, and restore after.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-05 13:09:41 +04:00
Slava Zanko
fbd2154cb5 Merge branch '1655_call_raw_viewer'
* 1655_call_raw_viewer:
  Ticket #1655: Unable to call 'direct' viewer (by shift+f3) key.
2009-10-05 11:38:40 +03:00
Slava Zanko
d033eb6ea0 Ticket #1655: Unable to call 'direct' viewer (by shift+f3) key.
Test case:
Try to press shift+F3.
 * Old behavior: call viewer in raw mode.
 * New behavior: do nothing.

Fix issue:
For 'PanelViewSimple' event changed hotkey from 'shift-F3' to 'F13'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-03 00:45:04 +03:00