Commit Graph

12834 Commits

Author SHA1 Message Date
Andrew Borodin
4addae7f12 Merge branch '3247_status_msg_update_rate'
* 3247_status_msg_update_rate:
  (status_msg_init): repaint screen forced to remove previous finished dialog.
  Reduce update rate in the "Directory scanning" dialog.
  status_msg_t: reimplement delay usage.
  (mc_time_elapsed): add new function to detect elapsed time intervals.
  Ticket #3247: refactoring of status_msg engine.
2014-10-03 13:21:31 +04:00
Andrew Borodin
720f214482 (status_msg_init): repaint screen forced to remove previous finished dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:26 +04:00
Andrew Borodin
c31e413b2a Reduce update rate in the "Directory scanning" dialog.
As a result, directory scannig is faster than before.

The author of idea and initial patch is Egmont Koblinger.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:25 +04:00
Andrew Borodin
81201b3022 status_msg_t: reimplement delay usage.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:25 +04:00
Andrew Borodin
89621050e3 (mc_time_elapsed): add new function to detect elapsed time intervals.
The author of initial patch is Egmont Koblinger.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:25 +04:00
Andrew Borodin
be938c611b Ticket #3247: refactoring of status_msg engine.
Initial commit: create global timer.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-03 13:19:25 +04:00
Andrew Borodin
99dd2ef709 Merge branch '3267_musl_libc'
* 3267_musl_libc:
  Ticket #3267: mc fails to build against musl libc.
2014-10-01 15:20:08 +04:00
Paul Barker
e78b636eba Ticket #3267: mc fails to build against musl libc.
mc fails to build when using musl as the libc provider. This is due to
the CTRL() macro not being defined in <termios.h>. We could include
<sys/ttydefaults.h> explicitly but it's easier just to ensure CTRL is
defined.

This patch taken from the Sabotage Linux distro which fixes this. This
patch has also been tested and works with the OpenEmbedded build
system.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-10-01 15:19:54 +04:00
Marco Ciampa
9b7fcb8b24 Updated italian translation. 2014-09-27 19:17:32 +02:00
Andrew Borodin
fe8a0a410f Merge branch '2966_view_broken_manpage'
* 2966_view_broken_manpage:
  Update po/*.po files.
  mcviewer: use mc_pipe_t to show command output.
  Ticket #2966: fix view of broken manpages.
2014-09-27 20:24:34 +04:00
Andrew Borodin
208b7a92f9 Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-27 20:24:12 +04:00
Andrew Borodin
b69b8947d9 mcviewer: use mc_pipe_t to show command output.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-27 20:24:12 +04:00
Andrew Borodin
a31b78003e Ticket #2966: fix view of broken manpages.
Initial commit: create MC pipe class to capture stdout and stderr of
spawn processes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-27 20:24:12 +04:00
Ilia Maslakov
5bcc246ac2 Merge branch '3228_select_files_by_extension'
* 3228_select_files_by_extension:
  Ticket #3228 (select/unselect files with the same extension as the current file)
2014-09-25 15:09:21 +04:00
Ilia Maslakov
94a1c98aea Ticket #3228 (select/unselect files with the same extension as the current file)
Add Action 'SelectExt' for select/unselect files with the same extension as the current file.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2014-09-25 15:07:55 +04:00
Slava Zanko
1f7a807eea Updated doc/NEWS file
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-04 16:48:39 +03:00
Slava Zanko
144ebb48c2 Updated the hints translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-04 16:45:04 +03:00
Slava Zanko
6563044f64 Updated translations from Transifex
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-04 16:44:21 +03:00
Slava Zanko
52621ba3dc Merge branch '3243_usmenu_view_man'
* 3243_usmenu_view_man:
  Fix for viewving man pages in colour mode.
  Ticket #3243: "User menu -> View manual page" doesn't do coloring
2014-09-04 16:32:12 +03:00
Egmont Koblinger
b11dd89087 Fix for viewving man pages in colour mode.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-04 16:31:49 +03:00
Slava Zanko
d3e80d0c46 Ticket #3243: "User menu -> View manual page" doesn't do coloring
Rename menu.mc and menu.mc.sr for substitute variables from configure.ac file

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-04 13:01:40 +03:00
Andrew Borodin
3949e55975 Merge branch '3245_viwer_goto_line'
* 3245_viwer_goto_line:
  mcviewer: remove "(decimal)" from "Line number (decimal)" label.
  Ticket #3245: mcviewer: make goto line 1-based instead of 0-based.
2014-09-03 13:26:09 +04:00
Egmont Koblinger
0ba80af8c3 mcviewer: remove "(decimal)" from "Line number (decimal)" label.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-03 13:25:23 +04:00
Egmont Koblinger
ecc4f84788 Ticket #3245: mcviewer: make goto line 1-based instead of 0-based.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-03 13:25:22 +04:00
Andrew Borodin
409d4b4eae Merge branch '3241_colon_in_prompt'
* 3241_colon_in_prompt:
  Ticket #3241: colon was not recognized inside escape seq in prompt.
2014-09-03 11:33:13 +04:00
Egmont Koblinger
a3d75ae300 Ticket #3241: colon was not recognized inside escape seq in prompt.
export PS1=$'\[\e[38:5:214m\]orange$\[\e[0m\]'
mc

Expected: "orange$" prompt shows up in black under the panels.
Actual: some additional garbage.

The 256-color and true-color escape sequences should allow either ';' or
':' inside as separator, actually, ':' is the more correct according to
ECMA-48. Some terminal emulators (e.g. xterm, gnome-terminal) support
this.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-03 11:31:14 +04:00
Andrew Borodin
d6004701cc Fix indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:57:56 +04:00
Slava Zanko
903c5c926d Merge branch '1539_utf8_man'
* 1539_utf8_man:
  Ticket #1539: Dealing with utf-8 man pages in view/open
2014-09-02 14:34:51 +03:00
Egmont Koblinger
d77999a6db Ticket #1539: Dealing with utf-8 man pages in view/open
Weird characters are displayed when viewing/opening man page files.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2014-09-02 14:33:51 +03:00
Andrew Borodin
5ce01a4a58 Merge branch '3189_cleanup'
* 3189_cleanup:
  Ticket #3258: fix incorrect percentage in mcview hex mode.
  Ticket #3244: add viewbold and viewselected missing from some skins.
  Ticket #3242: mcviewer: remove an unused variables and needless loops.
  Ticket #3240: fix recognition of UnRAR version.
  Ticket #3239: fix incorrect enconding name for manual pages.
  A few typofixes.
  Massive use of MC_PTR_FREE macro.
  Add declaration of g_error_new_valist().
  Don't use 'register' keyword.
  (sftpfs_open_socket): remove useless condition.
  (panel_operate_generate_prompt): ret rid of extra argument.
  Ticket #3189: code cleanup before 4.8.13 release.
2014-09-02 15:33:03 +04:00
Egmont Koblinger
584673c260 Ticket #3258: fix incorrect percentage in mcview hex mode.
The percent in the upper right corner normally corresponds to the
cursor. Except when the bottom of the file is displayed, then it's
100%.

If the file is taller than the window, you can walk downwards to its
end and the percent is always correct. Then walk back a screenful and
it stays at 100%, and suddenly jumps back by a lot when the file starts
scrolling.

If the file is shorter than the window, it's always at 100%.

mcview_calc_percent() is supposed to calculate the percentage at offset
p, yet it executes a special branch when "dpy_end == filesize".

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Egmont Koblinger
1aa16a0972 Ticket #3244: add viewbold and viewselected missing from some skins.
Change "black" and "white" to "rgb000" and "rgb555" when it's rendered
in bold, because the legacy 16 colors change their actual color in
addition to going bold in most of the terminals which is undesired.
Second, there was some unintended difference between the two gray skins
in the file type colors.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Egmont Koblinger
6235636c47 Ticket #3242: mcviewer: remove an unused variables and needless loops.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Dariusz Jaszkowski
6baff7c150 Ticket #3240: fix recognition of UnRAR version.
Add -cfg- option to the command used to detect UnRAR version. This
option prevents UnRAR from reading configuration from .rarrc file.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Marco Atzeri
b9a2ac39e8 Ticket #3239: fix incorrect enconding name for manual pages.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Veres Lajos
8d4d8d275f A few typofixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Andrew Borodin
6d82155270 Massive use of MC_PTR_FREE macro.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Andrew Borodin
de026dd1fc Add declaration of g_error_new_valist().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Andrew Borodin
fc8a65b8f2 Don't use 'register' keyword.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:36 +04:00
Andrew Borodin
9949fa74b6 (sftpfs_open_socket): remove useless condition.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:35 +04:00
Andrew Borodin
87fb484c21 (panel_operate_generate_prompt): ret rid of extra argument.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:35 +04:00
Andrew Borodin
256e5930e7 Ticket #3189: code cleanup before 4.8.13 release.
Rename: src/vfs/sftpfs/config_parcer.c -> src/vfs/sftpfs/config_parser.c

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 15:32:35 +04:00
Andrew Borodin
a938aff353 Merge branch '3251_quickview_grab_focus'
* 3251_quickview_grab_focus:
  Ticket #3251: mcviewer: grab focus on mouse click in QuickView mode.
2014-09-02 13:35:15 +04:00
Andrew Borodin
f5c04331e1 Ticket #3251: mcviewer: grab focus on mouse click in QuickView mode.
(mcview_t): add new member 'active' to recognize current state in QuickView mode.
(mcview_callback): toggle mcview_t::active in MGS_FOCUS and MSG_UNFOCUS
event handlers.
(do_mcview_event): use mcview_t::active to grab focus.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-09-02 13:34:10 +04:00
Andrew Borodin
d794397536 Merge branch '3237_fish_pwd'
* 3237_fish_pwd:
  Ticket #3237: fish subshell pwd passing is broken.
2014-08-13 09:22:06 +04:00
Chris Owen
cd737f8956 Ticket #3237: fish subshell pwd passing is broken.
Use $PWD variable instead of of calling pwd (which can be a function)
since it is read-only and not manipulated.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-08-13 09:18:58 +04:00
Andrew Borodin
4513bd649c Merge branch '3225_input_bs_del_after_mouse_click'
* 3225_input_bs_del_after_mouse_click:
  (input_event): fix handling of first mouse click.
  Ticket #3225: first Backspace/Delete ignored after mouse click in an input widget.
2014-08-12 21:19:22 +04:00
Andrew Borodin
4c27f7900c (input_event): fix handling of first mouse click. 2014-08-12 20:48:47 +04:00
Andrew Borodin
ddd336ad4d Ticket #3225: first Backspace/Delete ignored after mouse click in an input widget.
Initial commit: WInput: refactoring of text marking.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2014-08-03 14:54:16 +04:00
Marco Ciampa
aa6ad4804b Updated italian translation - small fix 2014-07-30 13:38:00 +02:00