Commit Graph

8952 Commits

Author SHA1 Message Date
Slava Zanko
1d4318a2be Renamed global variable mc_home into mc_main_sysconf_dir
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 15:02:54 +03:00
Slava Zanko
62e4ab5d92 Renamed global variable mc_home_alt into mc_main_sharedata_dir
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 15:02:54 +03:00
Slava Zanko
0046dbc336 Renamed global variable use_subshell into mc_args__use_subshell.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 15:02:54 +03:00
Slava Zanko
f4b5ebabaf Initial add new widgets system.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 15:02:53 +03:00
Ilia Maslakov
382795b697 remove unused struct.
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:03:36 +00:00
Ilia Maslakov
7c7e988285 fix: main.c keys handler
add more keys into mc.keymap
    fix: CK_SingleDirsizeCmd event
    add default keys (alt-'.', alt-'+') mc.keymap

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

    Added alt-shift-h hotkey
    Add some documentation about keymap file.
    Replace some symbols into names '.' to 'dot', '?' to question, etc.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:05 +00:00
Ilia Maslakov
d8946f90f8 fix: default_input_keymap, remove incorrect entry
fix: parsing keymap string with "backslash"

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:02:05 +00:00
Ilia Maslakov
dbb779fb82 add alt+arrows action and descriptions into mc.keymap
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-09-29 10:02:04 +00:00
Ilia Maslakov
40c46f2d31 fix: movement in Lynx navigation mode
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-09-29 10:02:04 +00:00
Slava Zanko
e89b31b841 Fix hotkey parser for handle shift+<letter> hotkeys.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:04 +00:00
Slava Zanko
b3ab1d1ff2 Fixed parsing of hotkeys. Now will read:
alt+p
and
alt-p

as same hotkey.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:04 +00:00
Slava Zanko
b84208d3ed Fix memory leak in function lookup_key()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:04 +00:00
Andrew Borodin
deab384aa2 Added new WIDGET_COMMAND message.
Handle WIDGET_COMMAND message in WInput widget.
Use this message to show the command line history.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-29 10:02:03 +00:00
Andrew Borodin
d6144b4d98 Some minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-29 10:02:03 +00:00
Slava Zanko
b8df09ab64 Add some default hotkeys
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:03 +00:00
Slava Zanko
4b5dca1210 Add some forgotten hotkeys.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:03 +00:00
Slava Zanko
0729ca062e Add more event handlers for actions
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:03 +00:00
Slava Zanko
b657fc0f42 Rename widget_* functions and variables into input_* functions and variables.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:02 +00:00
Slava Zanko
1d3fc0ddf7 Rename Widget* events into Input* events.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:02 +00:00
Slava Zanko
119421d70e Show hotkeys as 'alt-s' instread of 'alt s'.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:02 +00:00
Ilia Maslakov
1c7e225d39 add more commands into mc.keymap
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:02:02 +00:00
Ilia Maslakov
877346f2a6 refactoring editor keybindings
add more keys into mc.keymap
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-09-29 10:02:02 +00:00
Slava Zanko
7b7c652738 Added mc.keymap into spec file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:01 +00:00
Ilia Maslakov
36039631ed little cosmetic refactoring
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:02:01 +00:00
Slava Zanko
b1d784cf4d Added --keymap command line option
Also, anned more pathes for found standart keymap file.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 10:02:01 +00:00
Ilia Maslakov
7c4d7dbe6a * add new commands into cmddef.h
* add user keybind in widgets
    * add widget keybindings

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:02:01 +00:00
Ilia Maslakov
0cedfae4bf add redefine keys support in viewer
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:00:49 +00:00
Ilia Maslakov
d57452c10c * removed edit/usermap.c edit/usermap.h
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:00:48 +00:00
Ilia Maslakov
e6ca2f2fbb rework screen.c keymapping
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:00:48 +00:00
Ilia Maslakov
10fd8660c1 Ticket #212 (User defined hotkeys)
created structs:
    struct name_key_map_t
    struct key_config_t
    global_key_map_t
    add lookup_action
    replace editor key map struct to global_key_map_t
    add main_map screen_map
    replace command CK_* to src/cmddef.h
    add mc.keymap
    fix misc/Makefile.am
    add x_keymap
    add more commands

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 10:00:48 +00:00
Slava Zanko
13dd762089 Update translates.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 12:39:15 +03:00
Slava Zanko
751bb69637 Merge branch '380_default_skin'
* 380_default_skin:
  Ticket #380: About colors schemes (reopened ticket)
2009-09-28 20:55:49 +03:00
Slava Zanko
197d5efa28 Ticket #380: About colors schemes (reopened ticket)
Original message:

If invalid skin name is set via command line (or config file, or environment variable),
then mc starts silently like -b -a mode. Two proposals, if required skin cannot be found:
 *. Show error message "Cannot find skin"
 *. Load the default.ini skin instead of set -a -c mode.

Fix issue:
Mc now more verbose if skin not found:
{{{
_("Unable to load '%s' skin.\nDefault skin has been loaded")
}}}
or if skin not parse:
{{{
_("Unable to parse '%s' skin.\nDefault skin has been loaded")
}}}
Translators: please, update your translates.

Also, mc will try to load 'default' skin before switch to 'b&w' scheme.

This commit adds ability to usage GError - glib error handling.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-28 20:54:20 +03:00
Slava Zanko
4ea55c0b93 Merge branch '1635_lang_c_no_lines'
* 1635_lang_c_no_lines:
  Ticket #1635: No drawing lines with LANG=C
2009-09-28 15:47:12 +03:00
Slava Zanko
be2424c960 Ticket #1635: No drawing lines with LANG=C
Fixed drawing of ordinary lines in POSIX codepage.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-28 15:46:02 +03:00
Stan. S. Krupoderov
4048893034 Ticket #1594: hotlist: should be improved
hotlist.c: add path completion in hotlist add entry dialog
    cmd.c: expand environment variables and ~ and ~user exprs in hotlist
    widget.c: focus on listbox item N by '0'..'9' keys

    add capability to focus on N-th item by 0..9 key to
    WListbox widget

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-26 19:16:49 +04:00
Stan. S. Krupoderov
8cbc12fbb9 Ticket #1419: ./configure issue: GPM-related
configure.ac: terminate with error if gpm not found and
    --with-gpm-mouse option used

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-26 17:21:18 +04:00
Slava Zanko
ea631fa018 Merge branch '1619_preserve_attributes_timestamp'
* 1619_preserve_attributes_timestamp:
  Ticket #1619: Problem with "preserve attributes", file times and ntfs/vfat partitions
2009-09-26 01:01:27 +03:00
Slava Zanko
13e1c9b3b1 Ticket #1619: Problem with "preserve attributes", file times and ntfs/vfat partitions
In changeset 78f01a3a9a there was added detection of
filesystem and defaulting to turning off "preserve attributes" on certain FS
(ntfs, vfat and some others).

Reason of bug: was removed call of  mc_utime() function.

Fix issue:
Restored call of mc_utime() function.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-26 01:00:52 +03:00
Slava Zanko
d450e8eb05 Merge branch '1621_segfault_search_f7'
* 1621_segfault_search_f7:
  Fixed segfault in search in editor and viewer.
  Ticket #1621: fix segfault of search in editor and viewer.
2009-09-26 00:28:04 +03:00
Andrew Borodin
9c0a8e7d3f Fixed segfault in search in editor and viewer.
Modified API of search engine: return the number of search types.
This avoids the calculation of the search type count when need.
Sync editor search, editor replace and viewer searc dialogs with
new search API.
Fixed memory leak in editcmd_dialog_search_show().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-26 00:27:45 +03:00
Andrew Borodin
6592eabc8d Ticket #1621: fix segfault of search in editor and viewer.
Initial step: fix i18n of quick_radio widget: create copy of radio
items to avoid memory leaks.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-26 00:27:45 +03:00
Andrew Borodin
40db3cfdfd Merge branch '1631_findfile_inputs_first_run'
* 1631_findfile_inputs_first_run:
  Ticket #1631: 'Find File': use history for input fields at first run.
2009-09-24 21:29:05 +04:00
Andrew Borodin
5fd7d65dca Ticket #1631: 'Find File': use history for input fields at first run.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-24 21:28:40 +04:00
Slava Zanko
bc4067888c Merge branch '44_more_functionally_u7z'
* 44_more_functionally_u7z:
  Ticket #44: More functionally u7z.
2009-09-24 14:15:15 +03:00
Slava Zanko
ff6cd52e53 Ticket #44: More functionally u7z.
* automatically search of 7z or 7za utility
* fixed calculate of EXFNAME file name.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-24 14:14:46 +03:00
Slava Zanko
cc62497780 Merge branch '1611_autoconf_enable_charset'
* 1611_autoconf_enable_charset:
  Ticket #1611: --enable-charset by default
2009-09-23 22:20:34 +03:00
Stan. S. Krupoderov
7cf0a3aa2b Ticket #1611: --enable-charset by default
configure.ac: change defaults for enable_charset

Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-09-23 22:20:12 +03:00
Slava Zanko
b71c3ccce5 Merge branch '1377_pacman_syntax_file'
* 1377_pacman_syntax_file:
  Change color of some keywords from brightblue to brightcyan
  Ticket #1377: pacman PKGBUILD syntax file
2009-09-23 22:18:44 +03:00
Slava Zanko
df936b55d4 Change color of some keywords from brightblue to brightcyan
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-23 22:18:24 +03:00