Commit Graph

10964 Commits

Author SHA1 Message Date
Slava Zanko
3def2733dd Use constant for describe color intensity
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-24 15:46:10 +02:00
Slava Zanko
26b0623e87 Ticket #2169: Colors fixups for backward compability
* Restored old behaviour of A_BLINK attribute (intensity of background color instead of blinking foreground color);
 * Added function tty_use_256colors() for determine terminals with 256colors support;
 * Fixed background highlighting in NCurses and S-Lang.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-24 15:45:58 +02:00
Slava Zanko
1b9957058a Merge branch '1851_xdg_config'
* 1851_xdg_config:
  menu file now searched also in mc_sysconfig_dir directory
  renamed cedit.menu to mcedit.menu
  Added environment variable MC_LOG_ENABLE for specify if logging is enabled (higher priority rather then parameter from config file). Also added environment variable MC_LOG_FILE for specify file name.
  Added new function mc_always_log() for logging on early bootstrap stages
  Updated docs (man pages and comments in source code)
  Renamed variables mc_home to mc_sysconfig_dir and mc_home_alt to mc_share_data_dir for more sence
  Ticket #1851: Home config directory [xdg-user-dirs]
2011-01-21 10:07:09 +02:00
Slava Zanko
8af4c9ca7f menu file now searched also in mc_sysconfig_dir directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:44:04 +02:00
Slava Zanko
71e70a017f renamed cedit.menu to mcedit.menu
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:44:04 +02:00
Slava Zanko
4dcb7c9337 Added environment variable MC_LOG_ENABLE for specify if logging is enabled
(higher priority rather then parameter from config file). Also added environment
variable MC_LOG_FILE for specify file name.

In additional, new section [Development] now handled. For specify if logging enabled, use

[Development]
 logging = true

instead of [Midnight Commander].development.enable_logging option (WARNING: handling of
this option was removed in this commit!)

For specify file name use

[Development]
 logfile = /path/to/file

If file name isn't specified, then default value will used (~/.cache/mc.log)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:38:27 +02:00
Slava Zanko
cf162ef810 Added new function mc_always_log() for logging on early bootstrap stages
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:38:27 +02:00
Slava Zanko
c8982e822c Updated docs (man pages and comments in source code)
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:38:27 +02:00
Slava Zanko
f31863a80a Renamed variables mc_home to mc_sysconfig_dir and mc_home_alt to mc_share_data_dir for more sence
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-20 17:38:27 +02:00
Slava Zanko
acbe048486 Ticket #1851: Home config directory [xdg-user-dirs]
Instead of hardcoded (via MC_USERCONF_DIR) path mc mc now used
dynamic directories specified by environment variables:
 * XDG_CONFIG_HOME - dir for config files . By default is ~/.config/mc
 * XDG_DATA_HOME - dir for some data, such as user defuned Syntax file, menu etc By default is ~/.local/share/mc
 * XDG_CACHE_HOME - dir for temp files, such as cooledit.clip etc. By default is ~/.cache/mc

This is mainstream standard already adopted by many projects.

Old settings will be migrated at first time from ~/.mc to these dirs.

See http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html for more info.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-20 17:38:27 +02:00
Andrew Borodin
d21eb43152 Merge branch '2390_panel_format_init'
* 2390_panel_format_init:
  Refactoring.
  Refactoring.
  Ticket #2390: file list format of panel is intialized incorrectly
2011-01-19 13:04:29 +03:00
Andrew Borodin
1f98ee6dc7 Refactoring.
(paint_panel): removed. Sending of WIDGET_DRAW message is used instead.
(update_dirty_panels): moved from panel.c to midnight.c.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-19 13:03:54 +03:00
Andrew Borodin
57cdd0a08a Refactoring.
(restore_into_right_dir_panel): made static.
(panel_update_cols): moved from panel.[ch] to layout.[ch].
(set_display_type): minor cleanup and type accuracy.
(panel_display_t): type accuracy

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-19 13:03:54 +03:00
Andrew Borodin
c7fdc8f95b Ticket #2390: file list format of panel is intialized incorrectly
...after switch panel back from quick view or info mode to file list one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-19 13:03:39 +03:00
Andrew Borodin
86d57f2569 Fixed description of --enable-vfs-smb option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-17 14:47:02 +03:00
Slava Zanko
4e02246c6f skin xoria256.ini: changed version requirements
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-13 11:28:36 +02:00
Alexander Glyzov
331a7c1711 Added 'Xoria256' skin.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-12 14:29:44 +02:00
Andrew Borodin
99b60cc2b3 Ticket #2466: main menu is not drawn correctly
...after change of it visibility and activity.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-12 13:00:36 +03:00
Andrew Borodin
90de8381e4 Added dark skin to the list of skins.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-11 14:25:49 +03:00
Andrew Borodin
338ad4a982 Merge branch '2368_swap_panels'
* 2368_swap_panels:
  Added option to change mode of panel swap.
  Forced update listing format after swap
  Resort swapped panels in according with its sort options.
  Ticket #2368: swap panels should respect sort options.
2011-01-08 16:30:26 +03:00
Andrew Borodin
16c13be47b Added option to change mode of panel swap.
New "Simple panels swap" checkbox in "Panel options" configuration
dialog window. Unchecked by default.

Documentation update.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-08 16:29:18 +03:00
Andrew Borodin
2c994461a6 Forced update listing format after swap
...because of possible changed sizes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-08 16:29:18 +03:00
Andrew Borodin
2a98492e77 Resort swapped panels in according with its sort options.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-08 16:29:18 +03:00
Andrew Borodin
2ebfd4e293 Ticket #2368: swap panels should respect sort options.
Initial step: refactoring: create new panel_sort_info_t structure
to store sort options of panel.
Type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-08 16:29:18 +03:00
Ilia Maslakov
728596871e added cedit.menu entry "Sort selection"
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-06 20:07:59 +00:00
Ilia Maslakov
842e27763b added 2 new user menu entries - "Upper case", "Lower case".
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-06 16:51:07 +00:00
Ilia Maslakov
78b2f10ff1 Merge branch '2463_dont_reset_selection_after_f11'
* 2463_dont_reset_selection_after_f11:
  do not set modify flag when user menu cancelled.
  Ticket #2463 (do not reset selection after execute user menu)
2011-01-06 16:02:06 +00:00
Ilia Maslakov
7bd3a17db7 do not set modify flag when user menu cancelled.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-06 16:01:52 +00:00
Ilia Maslakov
bf7675246f Ticket #2463 (do not reset selection after execute user menu)
do not reset selection after execute user menu

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-06 16:01:51 +00:00
Andrew Borodin
186b2ff3f7 Ticket #2464: find file: don't check content regexp
...if search for content is not used.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-06 18:49:48 +03:00
Slava Zanko
3a25fb1b51 Merge branch '2266_filtered_view'
* 2266_filtered_view:
  Ticket #2266: filtered view default text
2011-01-06 11:02:14 +02:00
Anton Novosyolov
a30cf7e980 Ticket #2266: filtered view default text
I suggest changing default text in filtered view (alt-!) command input line
instead current filename in panel to contents of cmdline.

It's easier to edit command line with commands like alt-tab,
alt-enter, etc., and then view the result in mcview.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2011-01-06 11:02:00 +02:00
Ilia Maslakov
38b3740d10 Merge branch '1634_bs_del_fix'
* 1634_bs_del_fix:
  Ticket #1634 (BS, Del incorrect works in CP866 locale)
2011-01-05 23:11:14 +00:00
Vladislav Grishenko
73eae56a99 Ticket #1634 (BS, Del incorrect works in CP866 locale)
fixed trouble with BS and Del in dialog input fields (in CP866 locale).

Signed-off-by: Vladislav Grishenko <themiron@mail.ru>
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-05 23:09:53 +00:00
Andrew Borodin
45306458ca Ticket #2458: fixed broken command autocompletion.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-05 15:22:40 +03:00
Andrew Borodin
41177e0c06 Ticket #2457: alt-backspace doesn't work.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-04 11:45:49 +03:00
Ilia Maslakov
ee7d6dd2ff Merge branch '27_group_undo'
* 27_group_undo:
  fixed mcedit.1.in
  Modified editor general options gialog
  Ticket #27 (group undo)
2011-01-01 21:20:33 +00:00
Ilia Maslakov
707654e8ec fixed mcedit.1.in
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-01 21:17:27 +00:00
Ilia Maslakov
ab46ad0749 Modified editor general options gialog
...added "Group undo" option.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2011-01-01 21:17:27 +00:00
Ilia Maslakov
b39033812b Ticket #27 (group undo)
added option editor_group_undo unset by default
    added group undo mechanism

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2011-01-01 21:17:19 +00:00
Ilia Maslakov
1c57748571 Merge branch '25_mcedit_redo'
* 25_mcedit_redo:
  updated default_editor_keymap, added default for CK_Redo
  binded EditRedo on alt-r
  added action EditRedo.
  Ticket #25 (mcedit: REDO)
2010-12-30 21:32:50 +00:00
Ilia Maslakov
d84fb5d0ce updated default_editor_keymap, added default for CK_Redo
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-30 21:23:43 +00:00
Ilia Maslakov
6832b8e7e9 binded EditRedo on alt-r
added entry Redo into editor menu

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-30 21:23:43 +00:00
Ilia Maslakov
03363eac71 added action EditRedo.
added functions:
        * edit_push_redo_action
        * edit_pop_redo_action
        * edit_do_redo

    removed not supported (not actual) code

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-30 21:23:42 +00:00
Ilia Maslakov
b5fc178027 Ticket #25 (mcedit: REDO)
little optimization, renamed:
        * variables stack* to undo_stack*
        * pop_action to edit_pop_undo_action
        * edit_push_action to edit_push_undo_action

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2010-12-30 21:23:42 +00:00
Andrew Borodin
8c1fba1ffa Optimization of old color look-up.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-29 13:58:42 +03:00
Andrew Borodin
da2c82e8d3 Ticket #2170: color of panel header cannot be set in the command line
...using --colors option.

Grammar in default skin description.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-29 13:58:28 +03:00
Slava Zanko
1ce4670852 Merge branch '2169_256colors'
* 2169_256colors:
  Added skin for demonstrate how to use 256 colors in mc
  Added Russian translation of 256 colors capability.
  Ticket #2169:  Add support for 256 colors terminals
2010-12-29 12:13:46 +02:00
Egmont Koblinger
6582b89c63 Added skin for demonstrate how to use 256 colors in mc
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-12-29 12:04:56 +02:00
Andrew Borodin
255c7abb2e Added Russian translation of 256 colors capability.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2010-12-29 11:59:34 +02:00