Commit Graph

8932 Commits

Author SHA1 Message Date
Slava Zanko
bf74086506 Added mc.keymap into spec file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-29 17:42:34 +00:00
Ilia Maslakov
8830338411 little cosmetic refactoring
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 17:42:34 +00:00
Slava Zanko
07777d282f 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 17:42:34 +00:00
Ilia Maslakov
5a397a6b9a * 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 17:42:34 +00:00
Ilia Maslakov
606dce4e8b add redefine keys support in viewer
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 17:42:33 +00:00
Ilia Maslakov
da303d73ac * removed edit/usermap.c edit/usermap.h
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 17:42:33 +00:00
Ilia Maslakov
27545f1745 rework screen.c keymapping
Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-29 17:42:33 +00:00
Ilia Maslakov
71b1a8bf99 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 17:42:32 +00:00
Andrew Borodin
c9f368d449 Merge branch '1560_editor_search_dlg_button_locations'
* 1560_editor_search_dlg_button_locations:
  Ticket #1560: fixed button locations in editor search dialog.
2009-09-29 20:40:38 +04:00
Andrew Borodin
a437ed5d52 Ticket #1560: fixed button locations in editor search dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-29 20:40:09 +04: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
Slava Zanko
91411df3e0 Ticket #1377: pacman PKGBUILD syntax file
Added syntax coloring for PKGBUILD and .install files

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-23 22:18:24 +03:00
Slava Zanko
1a4b2af99e Merge branch '1486_editor_completion'
* 1486_editor_completion:
  Added description of editor_wordcompletion_collect_entire_file option into man-files
  Editor: Autocomplete all words (not just English words)
  Added option for switch beetween 'collect completions before cursor'
  Ticket #1486: Editor completion is confusing
2009-09-23 16:14:03 +03:00
Slava Zanko
07dc27901d Added description of editor_wordcompletion_collect_entire_file option into man-files
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-23 16:13:36 +03:00
Slava Zanko
a1e3999abf Editor: Autocomplete all words (not just English words)
Also fix charset conversation for autocompleted text.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-23 16:13:36 +03:00
Slava Zanko
d5381e862e Added option for switch beetween 'collect completions before cursor'
and 'collect completions in entire file'

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-23 16:13:36 +03:00
dborca
fdbd5b8a86 Ticket #1486: Editor completion is confusing
Editor completion became really confusing in 4.7.0-pre1:

1. The list is populated with words from the entire file. This is arguably
better than the old style, which scanned only up to the cursor. But the number
of suggestions are limited, and if you have a bigger file, some words won't
make it in the list. Besides, I somehow liked the old way.

2. Suggestions do not end on a word boundary. This may or may be not useful; but
it just increases the list of suggestions, which slows the user. In the end, it
beats the purpose of completions.

3. It completes the word I am currently editing. That's smart. :)

4. The suggestions are displayed in the order in which they were found from the
beginning of the file. This is my main gripe, because when using the editor for
coding, it is better to have suggestions based on the distance to the cursor.
Closer means higher. When writing a function, I am mainly interested in the
variable names I recently used.

5. Sometimes, it does not work at all, but I haven't investigated the bug. :(

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-23 16:13:36 +03:00
Andrew Borodin
5d7a816fd3 Merge branch '1451_chahset_dlg_place_panel_long_list'
* 1451_chahset_dlg_place_panel_long_list:
  Ticket #1451: Incorrect charset menu location for 'Long file list' lising mode.
2009-09-23 16:57:59 +04:00
Andrew Borodin
b04d568620 Ticket #1451: Incorrect charset menu location for 'Long file list' lising mode.
In 'Long file list' the panel width is equal to the screen
width. In this case, choose charset menu is placed in the
center of the screen.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-23 16:57:34 +04:00
Ilia Maslakov
cd27ee24df Ticket #1595 (exceeding newline)
fix: exceeding newline on '\r\n' eol

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-23 12:18:10 +00:00
Ilia Maslakov
37383d65d5 Ticket #1598 (vertical selection: Meta+PgDn)
fix: vertical selection with Meta+PgDn

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-23 12:10:28 +00:00
Ilia Maslakov
559f161ebc Ticket #1599 (navigation with Ctrl+arrows besides EOL)
fix: navigation with Ctrl+arrows besides EOL
    fix: kill word left/right when cursor besides EOL

Signed-off-by: Ilia Maslakov <il.smind@google.com>
2009-09-23 12:04:25 +00:00
Andrew Borodin
7134bd49d2 Merge branch '1564_menu_mouse_drag'
* 1564_menu_mouse_drag:
  Ticket #1564: fiix segfault in menu at GPM_DRAG mouse event.
2009-09-23 09:39:22 +04:00
Andrew Borodin
95d53b08cf Ticket #1564: fiix segfault in menu at GPM_DRAG mouse event.
Ignore GPM_DRAG mouse event above or below dropped down menu.
Also fixed handling of click events.

Minor optimization.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-23 09:38:50 +04:00
Slava Zanko
dec8a5d26e Merge branch '380_bw_colors_and_frames'
* 380_bw_colors_and_frames:
  misc/skins/Makefile.am: Add skin files into EXTRA_DIST list.
  Trinvial refactoring: changed order of color definitions.
  Modified color of dialog hotkeys.
  Fixed menu colors for BW mode.
  Ticket #380: fix of menu colors in BW mode and pseudo-graphics symbols.
2009-09-22 16:28:10 +03:00
Slava Zanko
21d339c5be misc/skins/Makefile.am: Add skin files into EXTRA_DIST list.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-09-22 16:27:39 +03:00
Andrew Borodin
d2e6ca7b6e Trinvial refactoring: changed order of color definitions.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-22 16:27:38 +03:00
Andrew Borodin
e46e414f2a Modified color of dialog hotkeys.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-22 16:27:38 +03:00
Andrew Borodin
3f4b0ee311 Fixed menu colors for BW mode.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-22 16:27:38 +03:00
Andrew Borodin
3bacc1cc64 Ticket #380: fix of menu colors in BW mode and pseudo-graphics symbols.
Initial step: fixed name of skin sections and items.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-09-22 16:27:38 +03:00
Slava Zanko
ef5434f391 Merge branch '1420_configure_issue_glib'
* 1420_configure_issue_glib:
  Ticket #1420: ./configure issue: Glib
2009-09-22 12:02:53 +03:00