Commit Graph

14983 Commits

Author SHA1 Message Date
Andrew Borodin
b05b4bb696 Merge branch '4120_tcsh_cant_change_directory'
* 4120_tcsh_cant_change_directory:
  Ticket #4120: tcsh error: "The Commander can't change to the directory".
2020-10-04 18:54:40 +03:00
Eric Roberts
631483ec52 Ticket #4120: tcsh error: "The Commander can't change to the directory".
How to reproduce:

Use tsch as your shell.
ctrl-o
ctrl-c
ctrl-o

mc gives the error:
The Commander can't change to the directory that the subshell claims you
are in. Perhaps you have deleted your working directory, or given
yourself extra permissions with the "su" command?

This commit is really simple workaround that makes the problem go away.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-10-04 18:51:31 +03:00
Andrew Borodin
c22387d433 Merge branch '4114_persistent_subshell_command_buffer'
* 4114_persistent_subshell_command_buffer:
  Ticket #4114: implement persistent command line buffer for subshell.
2020-09-27 19:48:47 +03:00
Eric Roberts
ff0fc17ae3 Ticket #4114: implement persistent command line buffer for subshell.
This commi allows the user to start typing a command in the MC's command
line, and then continue typing it in the subshell, or to start typing a
command in the subshell, and then finish typing it in the MC's command
line.

It also fixes #2269 and #2110, bugs in which mc can unexpectedly execute
commands without the user's permission.

The new feature works with bash4, zsh, and fish. The bugfix works on all
shells.

How to test the feature:
  Run mc
  Type any command in the command line, but don't hit enter.
  Press Ctrl-O.
  The command you typed will show up in the subshell.
  Type any command in the subshell, but don't hit enter.
  Press Ctrl-O.
  The command you typed will show up in the command line.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-09-27 19:46:12 +03:00
Andrew Borodin
f63be5af18 Merge branch '4107_bind_ctrl_i'
* 4107_bind_ctrl_i:
  Ticket #4107: bind ctrl-i to the ChangePanel action.
2020-08-15 11:46:58 +03:00
Andrew Borodin
e1c892a49f Ticket #4107: bind ctrl-i to the ChangePanel action.
After ef5f1fa3eb ctrl-i stopped working
on some terminals including native Linux console.

To fix this, add default binging ctrl-i shortcut to ChangePanel action.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-08-15 11:45:46 +03:00
Andrew Borodin
794f94cb23 lib/tty/tty-ncurses.c: indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-08-05 10:49:50 +03:00
Andrew Borodin
348011025d Merge branch '4101_copy_follow_links'
* 4101_copy_follow_links:
  Refactoring of directory size caclulation.
  Ticket #4101: wrong copy ETA displaing if "Follow links" is set.
2020-08-05 10:46:47 +03:00
Andrew Borodin
dd25f91dfd Refactoring of directory size caclulation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-08-05 10:43:29 +03:00
Andrew Borodin
5c89d3c2b7 Ticket #4101: wrong copy ETA displaing if "Follow links" is set.
* (do_compute_dir_size): fix directory size calculation.
  Use mc_lstat() if "Follow links" option is set, mc_stat() otherwise.
  * (single_dirsize_cmd): fix compute_dir_size() call.
  * (dirsize_cmd): likewise.
  * (panel_compute_totals): process symlink to directory as directory if
  follow_symlink is set.
  * (panel_operate_init_totals): process symlink to directory as
  directory if "Follow links" option is set.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-08-05 10:43:29 +03:00
Andrew Borodin
72740285da Merge branch '4102_shadows'
* 4102_shadows:
  Ticket #4120: draw shadows for dialog boxes and menus.
2020-08-02 16:16:15 +03:00
Andrew Borodin
8b4386df83 Ticket #4120: draw shadows for dialog boxes and menus.
Thanks Aleš Janda <ales.janda@kyblsoft.cz> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-08-02 16:13:26 +03:00
Andrew Borodin
da9966fb55 Merge branch '4104_chattr_mouse'
* 4104_chattr_mouse:
  Ticket #4104: chattr: mouse clicks on checkboxes have no effect.
2020-08-02 16:06:29 +03:00
Andrew Borodin
8e8b91310a Ticket #4104: chattr: mouse clicks on checkboxes have no effect.
(chattrboxes_mouse_callback): mouse events other than scroll ones are
unhandled.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-07-31 20:52:30 +03:00
Yury V. Zaytsev
171957980e Update doc/NEWS file
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2020-07-05 23:35:07 +04:00
Yury V. Zaytsev
f998d09a39 Update hints translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2020-07-05 23:30:46 +04:00
Yury V. Zaytsev
c1dddc1713 Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2020-07-05 21:57:58 +04:00
Andrew Borodin
bdeaed5b78 Merge branch '4099_tiocswinsz_solaris'
* 4099_tiocswinsz_solaris:
  Ticket #4099: In subshell on Solaris 11.4 SPARC terminal size is always 80x24.
2020-06-24 20:05:09 +03:00
Andrew Borodin
c7fc6c9718 Ticket #4099: In subshell on Solaris 11.4 SPARC terminal size is always 80x24.
In Solaris 11.4 SPARC, TIOCSWINSZ is defined in termios.h.

lib/tty/tty.c: add #include <termios.h>, because TIOCSWINSZ is used in
tty_resize().

Thanks Alexander <shurik005@gmail.com> for the fix.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-24 19:57:02 +03:00
Koji Builder
99061cc22d Ticket #4091: RPM VFS improvements.
Support weak dependency tags:

ENHANCES, SUGGESTS, RECOMMENDS, SUPPLEMENTS

See https://rpm.org/user_doc/dependencies.html#weak-dependencies
for detais.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-21 20:08:19 +03:00
Purdea Andrei
1f4b5ae396 Ticket #4098: syntax highlighting: support .ino files.
Add the .ino extension to the list of extensions recognized by the c++
syntax highlighter.

.ino is used by the Arduino IDE, and a number of other IDEs, and it's effectively
the same thing as a c++ source file, but with some added magic, such as auto-generated
function prototypes.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-21 19:58:56 +03:00
Andrew Borodin
65f27b6854 Merge branch '4063_slang_mouse'
* 4063_slang_mouse:
  Ticket #4063: fix mouse handling in old terminal emulatres
2020-06-21 19:52:56 +03:00
Egmont Koblinger
8877d218dd Ticket #4063: fix mouse handling in old terminal emulatres
...like KDE3 Konsole.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-16 21:58:25 +03:00
Andrew Borodin
d9da121b33 Merge branch '3954_ncurses_mouse'
* 3954_ncurses_mouse:
  Ticket #3954: fix mouse handling with newer terminfo entries.
2020-06-16 21:34:56 +03:00
Egmont Koblinger
b92c7f86b4 Ticket #3954: fix mouse handling with newer terminfo entries.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-07 18:37:41 +03:00
Artem S. Tashkinov
9bb351508a Ticket #4045: clean up in video.sh handler.
RealPlayer is a proprietary application which can't be installed in most
distros and has long been abandoned.

gtv hasn't been developed since 2003.

xanim barely plays anything.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 20:45:28 +03:00
Vadim Kalinnikov
40fe047be0 Ticket #4086: improve archive support.
Support more binaries to view archive content:
  * lha: jlha, lhasa
  * arj: 7za
  * cab: 7za
  * zip; 7z
  * zipx: 7za
  * iso: 7za

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 20:31:45 +03:00
Andrew Borodin
9311136158 Ticket #4054: broken syntax highlighting for shell scripts.
Revert "Ticket #3981: sh.syntax: allow for indented 'function' highlighting."

This reverts commit 91d6d55baf.

The syntax highlighting of shell scripts in mcedit misbehaves around
matches of "function blabla()" inside literal quotes. It applies syntax
highlighting as if it was function definition in normal conditions (out
of literal quotes), breaking the colouring of whatever follows.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 20:13:37 +03:00
Andrey Brozhko
91e4d8150f Ticket #4088: mcedit: add Kotlin syntax highlighting.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 20:06:04 +03:00
Andrew Borodin
8d40091344 Merge branch '4087_verilog_syntax_highlighting'
* 4087_verilog_syntax_highlighting:
  verilog syntax: clarify that also refers to systemverilog,
  verilog syntax: added some missing operators
  verilog syntax: reorganized and added missing compiler directives
  verilog syntax: reorganized and added missing system tasks and system functions
  verilog syntax: added IEEE1800-2009 and 2012 missing keywords
  verilog syntax: added IEEE1800-2005 missing keywords
  verilog syntax: added IEEE1364-2005 missing keywords
  verilog syntax: added IEEE1364-2001 missing keywords
  verilog syntax: added missing ieee1364-1995 keywords
  Ticket #4087: verilog syntax: removing keyboards attribute, endattribute, strength
2020-06-06 19:45:21 +03:00
Purdea Andrei
f32614ae7f verilog syntax: clarify that also refers to systemverilog,
...and make sure it also takes .sv files as well.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:44:02 +03:00
Purdea Andrei
06f2c6093e verilog syntax: added some missing operators
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:42:10 +03:00
Purdea Andrei
281ba2a35e verilog syntax: reorganized and added missing compiler directives
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:42:02 +03:00
Purdea Andrei
81122ffcae verilog syntax: reorganized and added missing system tasks and system functions
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:41:50 +03:00
Purdea Andrei
32878bdd3d verilog syntax: added IEEE1800-2009 and 2012 missing keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:41:19 +03:00
Purdea Andrei
6351c4bc49 verilog syntax: added IEEE1800-2005 missing keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:41:12 +03:00
Purdea Andrei
0cdb39d76f verilog syntax: added IEEE1364-2005 missing keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:40:56 +03:00
Purdea Andrei
b0927b0627 verilog syntax: added IEEE1364-2001 missing keywords
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:40:47 +03:00
Purdea Andrei
91fdf29635 verilog syntax: added missing ieee1364-1995 keywords
...and moved ieee1364-2001 keyword in separate section.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:40:25 +03:00
Purdea Andrei
2df64d7b9c Ticket #4087: verilog syntax: removing keyboards attribute, endattribute, strength
Keywords attribute, endattribute, strength are not a reserved keywords in any
verilog standard. I can find a few references to these saying that they
were reserved keywords in OVI LRM version 2.0 (a version of verilog
before it was standardized), but this LRM is not available. The OVI LRM
version 1.0 didn't include these keywords, and none of the IEEE standards
include these keywords. I also tried the syntax highlighter of two
commercial tools, and they don't show attribute/endattribute as keywords.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-06-06 19:38:46 +03:00
Andrew Borodin
e132d71777 Merge branch '4050_cleanup'
* 4050_cleanup: (42 commits)
  Update po/*.po files.
  Ticket #4085: mcedit: regex replace: assertion 'string != NULL' failed.
  (file_progress_show_total): use hline_set_textv().
  (hline_set_textv): new API.
  Refactoring: use label_set_textv() where reasonable.
  Rename macro MC_SKINS_SUBDIR to MC_SKINS_DIR.
  lib/mcconfig/paths.c: cosmetics.
  Clean up files unused by mcedit anymore.
  Rename macros with editor-related file locations.
  (edit_close_cmd): refactor to reduce number of type castings.
  lib/widget/dialog.h: remove unused typedef.
  lib/widget/background.c: fix comment.
  Highlight *.cpio as archives.
  (listbox_remove_current): remove extra type casting.
  (listbox_callback): reduce variable scope.
  Find file refactoring:
  Input complete: refactoring.
  input_complete.c: (query_callback): use widget_lookup_key().
  (dview_handle_key): refactoring.
  (help_handle_key): refactoring.
  ...
2020-05-17 18:51:33 +03:00
Andrew Borodin
0b098b2d86 Update po/*.po files.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:51:00 +03:00
Andrew Borodin
f5d667197b Ticket #4085: mcedit: regex replace: assertion 'string != NULL' failed.
(edit_replace_cmd): don't delete a NULL string.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:49:05 +03:00
Andrew Borodin
0d585eb08d (file_progress_show_total): use hline_set_textv().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
dffe01fab1 (hline_set_textv): new API.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
d35f0c68dc Refactoring: use label_set_textv() where reasonable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
562889ce1e Rename macro MC_SKINS_SUBDIR to MC_SKINS_DIR.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
246bdd63b4 lib/mcconfig/paths.c: cosmetics.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
b65a951ee4 Clean up files unused by mcedit anymore.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00
Andrew Borodin
81b1f47e01 Rename macros with editor-related file locations.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2020-05-17 18:48:19 +03:00