Commit Graph

9100 Commits

Author SHA1 Message Date
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
David Martin
dee47b9b2b Spanish translations to git 1/10 (aka. the "never ending story")
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-02 10:24:53 +03:00
Slava Zanko
872f32c70c Merge branch '1649_cleanup'
* 1649_cleanup:
  Ticket #1649: Prepare for prerelease mc-4.7.0-pre3 (code cleanup)
2009-10-01 16:15:52 +03:00
Ilia Maslakov
a910b45e57 Ticket #1649: Prepare for prerelease mc-4.7.0-pre3 (code cleanup)
* removed unused edit/editcmddef.h, edit/usermap.c, edit/usermap.h
 * some cleanup

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

 * Remove unneded constant definition from src/Makefile.am

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-01 16:14:32 +03:00
Ilia Maslakov
e68cc4b0b0 Ticket #212
add keybind for SelectCodepage into [editor] section

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-10-01 07:39:08 +00:00
Ilia Maslakov
cbe8993b90 Update Russian translation.
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-10-01 06:59:28 +00:00
Andrew Borodin
62f4f4d0ad Fixed plural forms in Hungarian translation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-10-01 10:16:42 +04:00
Slava Zanko
aa0961e754 Update translations into master for statictic.
See http://www.midnight-commander.org/translations/

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-01 02:50:39 +03:00
Gergely Szabo
8e873f741f Hungarian translation updated, not tested yet.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-10-01 02:42:35 +03:00
Ilia Maslakov
1936a8e266 fix: Russian translation.
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-30 13:57:27 +00:00
Slava Zanko
b0521566bb Merge branch '1649_code_cleanup'
* 1649_code_cleanup:
  Fix Makefile.am for correct run 'make dist' command
  Fix conflict of hotkeys in main menu.
  Ticket #1649: Prepare for prerelease mc-4.7.0-pre3 (code cleanup)
2009-09-30 16:44:05 +03:00
Slava Zanko
294a5ed6a1 Fix Makefile.am for correct run 'make dist' command
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 16:42:23 +03:00
Slava Zanko
7a137b6d18 Fix conflict of hotkeys in main menu.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 16:42:22 +03:00
Slava Zanko
dd94068a62 Ticket #1649: Prepare for prerelease mc-4.7.0-pre3 (code cleanup)
Try to compile with
{{{
make CFLAGS="-Wall -Werror -Wno-long-long -Wwrite-strings"
}}}

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 16:42:11 +03:00
Ilia Maslakov
4c64340111 Ticket #1650
fix: UNDO behavior when cursor besides EOL

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-30 12:09:10 +00:00
Ilia Maslakov
53b0f8546d Ticket #212
fixed completion in command line
    add: EditToggleTabTWS,EditFindDefinition, EditLoadPrevFile, EditLoadNextFile actions into bindings list
    add string bindings for f21..f24

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-30 12:04:17 +00:00
Slava Zanko
5128c729b0 Fix invalid translate string.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 12:45:33 +03:00
Slava Zanko
e5548a0b66 Fix some Russian translates
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 12:24:12 +03:00
Slava Zanko
088e3883a3 Fix format string in translate
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 11:40:18 +03:00
Slava Zanko
ac3239a422 Update Russian translate.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 11:35:06 +03:00
Slava Zanko
5445a2db95 Update all translates.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 11:17:48 +03:00
David Martin
070199259d Last minute update to git 30/9
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 11:17:18 +03:00
Andrew Borodin
d72b1deeca Merge branch '1643_mouse_hidden_menu'
* 1643_mouse_hidden_menu:
  Ticket #1643: menu events handling in file panel in case of invisible menu.
2009-09-30 08:46:10 +04:00
Andrew Borodin
c422f67bd3 Ticket #1643: menu events handling in file panel in case of invisible menu.
Fixed: when main menu is invisible, pressing mouse button
on the first line makes the menu display, even on panel
widgets as "<" ".v>".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-30 08:44:53 +04:00
David Martin
1a64b2a8ff Small fixes for English help
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 02:32:47 +03:00
David Martin
9a87c9cedf Spanish man/help updated for 4.7.0pre3. Includes highlighting and skins stuff.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-30 02:27:46 +03:00
Ilia Maslakov
cc979394d3 Merge branch '212_redefine_hotkeys'
* 212_redefine_hotkeys: (26 commits)
  remove unused struct.
  fix: main.c keys handler
  fix: default_input_keymap, remove incorrect entry
  add alt+arrows action and descriptions into mc.keymap
  fix: movement in Lynx navigation mode
  Fix hotkey parser for handle shift+<letter> hotkeys.
  Fixed parsing of hotkeys. Now will read:
  Fix memory leak in function lookup_key()
  Added new WIDGET_COMMAND message.
  Some minor optimization.
  Add some default hotkeys
  Add some forgotten hotkeys.
  Add more event handlers for actions
  Rename widget_* functions and variables into input_* functions and variables.
  Rename Widget* events into Input* events.
  Show hotkeys as 'alt-s' instread of 'alt s'.
  add more commands into mc.keymap
  refactoring editor keybindings
  Added mc.keymap into spec file
  little cosmetic refactoring
  ...
2009-09-29 17:46:05 +00:00