Commit Graph

14248 Commits

Author SHA1 Message Date
Andrew Borodin
953b7e9f23 Ticket #3924: Find file: remember state (empty or not) of Content field.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-09-04 10:20:44 +03:00
Andrew Borodin
388dad9899 Merge branch '1983_btrfs_clone'
* 1983_btrfs_clone:
  Check linux/fs.h file.
  (vfs_clone_file): clarify errno in case of bad file descriptors.
  Ticket #1983: support BTRFS's file clone operation.
2018-09-03 09:45:41 +03:00
Andrew Borodin
2e5cd866f9 Check linux/fs.h file.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-09-03 09:44:42 +03:00
Andrew Borodin
23a2056a18 (vfs_clone_file): clarify errno in case of bad file descriptors.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-09-03 09:33:32 +03:00
gray_-_wolf
0493a5e90e Ticket #1983: support BTRFS's file clone operation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-09-03 09:33:32 +03:00
Andrew Borodin
5f80acde87 Merge branch '3929_office_formats_ext'
* 3929_office_formats_ext:
  mcext/doc: improve open of documents in MS Office formats.
  Ticket #3929: mc.ext: improve recognition of MS Office formats.
2018-08-28 10:49:10 +03:00
Andrew Borodin
5f04962685 mcext/doc: improve open of documents in MS Office formats.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-08-19 17:20:28 +03:00
Andrew Borodin
feab399109 Ticket #3929: mc.ext: improve recognition of MS Office formats.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-08-19 17:00:55 +03:00
Andrew Borodin
4059d3ab6e Merge branch '3930_apple_stat_members'
* 3930_apple_stat_members:
  Ticket #3930: clarify name of struct stat members for Apple compilation.
2018-08-19 11:39:08 +03:00
Samuel Bingner
d352220604 Ticket #3930: clarify name of struct stat members for Apple compilation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-08-19 11:37:20 +03:00
Andrew Borodin
5656ff5e84 Merge branch '3908_confirm_move_dir'
* 3908_confirm_move_dir:
  Ticket: 3908: quiet single file overwrite.
2018-08-05 19:00:10 +03:00
Andrew Borodin
7ac669c654 Ticket: 3908: quiet single file overwrite.
If target file exists, MC overwrites that file without confirmation.

The bug has not been fixed comletely in
7d73ce1cbe.

Yet another test case:

1. Create files:

    mkdir -p test1/1 test2/1
    echo "1" > test1/1/file
    echo "2" > test2/1/file

2. Run `mc test1 test2`.
3. Select directory "1" and press F6.

Result: "file" file is overwritten w/o confirmation.

Expected result: since the "file" file exists the confirmation dialog
must be shown.

The problem is: confirmation dialog requires context UI which was not
created in case of single directory move/rename operation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-07-28 17:21:24 +03:00
Andrew Borodin
0bb1db9030 Merge branch '3926_view_doc'
* 3926_view_doc:
  Ticket #3926: clarify hadling of MS Word and Excel documents view.
2018-07-26 16:51:03 +03:00
Andrew Borodin
1d19729690 Ticket #3926: clarify hadling of MS Word and Excel documents view.
Don't show error message for each not-installed program when view
documents in MS Word and Excel formats.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-07-21 18:06:38 +03:00
Andrew Borodin
6cdd3b7ad6 Merge branch '3923_escape_fileop_filename'
* 3923_escape_fileop_filename:
  (operate_one_file): remove unescape of source and destination filenames.
  Ticket #3923: fix of file name escaping in file operations.
2018-07-15 20:50:15 +03:00
Andrew Borodin
f75430d68c (operate_one_file): remove unescape of source and destination filenames.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-07-01 20:00:36 +03:00
Andrew Borodin
aea06fbc7a Ticket #3923: fix of file name escaping in file operations.
Revert "(operate_single_file): make src and dest file name unescaping"

This reverts commit ef5d346dd9.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-06-30 11:33:49 +03:00
Artem S. Tashkinov
0075f36b69 Ticket #3919: use MPV as a fallback for mplayer -identify
mplayer is not currently actively developed and some people have long
switched to MPV - use it as a fallback for "mplayer -identify" command.

Also, give the user a hint about mplayer/mpv in case none of them is
installed.

Signed-off-by: Yury V. Zaytsev <yury.zaytsev@moneymeets.com>
2018-06-12 21:16:27 +02:00
Terra
c9fb0c33e3 Ticket #3920: php.syntax - highlight keyword 'null'
Signed-off-by: Yury V. Zaytsev <yury.zaytsev@moneymeets.com>
2018-06-12 21:04:53 +02:00
Andrew Borodin
941ceb1bcd Merge branch '3917_sftps_atime_mtime'
* 3917_sftps_atime_mtime:
  Ticket #3917: preserve atime/mtime over sftpfs.
2018-06-03 20:35:39 +03:00
moko
5f603638de Ticket #3917: preserve atime/mtime over sftpfs.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-06-03 14:54:01 +03:00
Jaroslav Škarvada
0ee04e1948 Ticket #3918: mcedit.1: undocument a long time ago removed feature.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-06-03 14:24:10 +03:00
Marco Ciampa
3726db29a2 Updated Italian translation 2018-05-30 09:39:46 +02:00
Yury V. Zaytsev
e20376f3ed Update doc/NEWS file
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 22:21:03 +02:00
Yury V. Zaytsev
73d9ee8c95 Update hints translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 22:15:04 +02:00
Yury V. Zaytsev
37bf2fba8a Update translations from Transifex
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 22:07:00 +02:00
Andrey Shcheglov
f161d19038 mc.ext: allow Java class files to be viewed even if JAD isn't on PATH
Closes MidnightCommander/mc#134:

  * `file -b` prints class file version, which `javap` doesn't by default
  * `javap`'s stderr should be suppressed as it may print `_JAVA_OPTIONS`
     if this variable is set

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 16:47:38 +02:00
Dan Dascalescu
2eb7ef9e04 filehighlight: add JavaScript module support (closes MidnightCommander/mc#132)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 16:21:01 +02:00
Maxim Akristiniy
907ac30b49 mc.ext: add Excel xlsx file format (closes MidnightCommander/mc#135)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 16:14:09 +02:00
Yury V. Zaytsev
b44bfee6bf Ticket #3789: remove faulty test in rpm helper to detect CONFLICTS tag
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 15:17:31 +02:00
Yury V. Zaytsev
b692136645 maint: fix test fixtures for extfs rpm helper (broken in 8d0c1c3)
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
2018-05-27 15:00:38 +02:00
Sergey Naumov
729f6eef9c Ticket #3893: fix markdown.syntax that doesn't work well for complex files
* Asterisk and underscore contexts don't play well with lists or
  words containing underscores. And given that markdown files
  could contain not only ASCII text, it is better to be conservative
  in detecting contexts.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-05-09 18:12:42 +03:00
Andrew Borodin
bfa94e280f Merge branch '3914_usermenu_view'
* 3914_usermenu_view:
  Ticket #3914: %view not piping command output to internal viewer in user menu.
2018-05-09 18:03:40 +03:00
Andrew Borodin
8f7d44ef7f Ticket #3914: %view not piping command output to internal viewer in user menu.
Revert "(execute_menu_command): fix mcview_viewer() call."
This reverts commit 2043ef74a9.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-05-07 09:07:37 +03:00
Andrew Borodin
35d21b6ea2 Merge branch '3913_safe_overwrite'
* 3913_safe_overwrite:
  Update po/*.po files.
  Ticket #3913: implement safe file overwrite.
2018-04-30 12:54:38 +03:00
Andrew Borodin
3098e248a7 Update po/*.po files. 2018-04-25 11:42:23 +03:00
Andrew Borodin
34712ec05b Ticket #3913: implement safe file overwrite.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-04-25 11:36:10 +03:00
Andrew Borodin
a66ee73305 Merge branch '3908_confirm_overwrite'
* 3908_confirm_overwrite:
  Ticket: 3908: quiet single file overwrite.
2018-04-15 11:35:56 +03:00
Andrew Borodin
7d73ce1cbe Ticket: 3908: quiet single file overwrite.
If target file exists, MC overwrites that file without confirmation.
The bug was introduced in #3149.

How to reproduce:
1. Create two files: `touch a aa`.
2. Stay on "aa".
3. Make sure that Options/Confirmation.../Overwrite option is checked on.
4. Press Shift-F6
5. Edit the "to:" value to "a" ("a" file exists) and press Enter.

Actual result:
The "a" file is overwritten w/o confirmation.

Expected result:
Since the "a" file exists the confirmation dialog must be shown.

The problem is: confirmation dialog requires context UI which was not
created in case of single file rename operation.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-04-07 13:13:53 +03:00
Andrew Borodin
b7ead57e0b Merge branch '3906_zstd'
* 3906_zstd:
  Ticket #3906: ZSTD support.
2018-03-27 08:07:27 +03:00
Adam Borowski
5eb9bd605e Ticket #3906: ZSTD support.
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-03-19 15:00:23 +03:00
Marco Ciampa
e574c3b51a Updated Italian translation 2018-02-24 12:38:07 +01:00
Andrew Borodin
cf8e1028e9 Merge branch '1620_file_highlight_icase'
* 1620_file_highlight_icase:
  Ticket #1620: change file highlighting defaults.
2018-02-19 21:06:35 +03:00
Andrew Borodin
566992da32 Ticket #1620: change file highlighting defaults.
Now file highlighting by extension is case insensitive by
default.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-02-18 12:05:05 +03:00
Andrew Borodin
e41af67762 Merge branch '3898_mcedit_save_files'
* 3898_mcedit_save_files:
  Ticket #3898: mcedit doesn't save all opened files.
2018-02-12 21:12:02 +03:00
Andrew Borodin
a2a63aa8c1 Ticket #3898: mcedit doesn't save all opened files.
(edit_quit): do not call widget_select() while direct iterating editor
windows because it changes the window position in Z order. Collect
modified files in separate list.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-02-12 21:11:56 +03:00
Andrew Borodin
bd0cbbd710 Merge branch '3897_mcedit_extended_mode'
* 3897_mcedit_extended_mode:
  Ticket #3897: mcedit: broken extended key mode.
2018-02-12 21:11:23 +03:00
Andrew Borodin
c139ba72ae Ticket #3897: mcedit: broken extended key mode.
(edit_dialog_callback): do not reset the extended mode if command
was not handled.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2018-02-12 21:10:43 +03:00
Andrew Borodin
c9ca0cc01b Merge branch '3876_cleanup'
* 3876_cleanup: (47 commits)
  (mc_deserialize_str): trivial optimization.
  (edit_do_search): use gboolean. Remove unused computations.
  (str_8bit_encodings[], str_utf8_encodings[]): make const.
  (etags_set_definition_hash): make buf stack variable.
  (convert_from_8bit_to_utf_c2): use convert_from_8bit_to_utf_c().
  str_convert_to_input() never returns NULL.
  (edit_collect_completions): str_convert_to_display() never returns NULL.
  lib/charsets.c: fix coding style, trivial optimizations.
  (mc_search__recode_str): minor optimization.
  (mc_search__get_one_symbol): cosmetics.
  strutil: character test functions return gboolean instead of int.
  Use str_move() where possible.
  Use gboolean instead of int in file/dir sort related functions.
  (get_codepage_index): minor optimizations.
  (ftpfs_command): minor optimization.
  FTP: fix some calls of ftpfs_command().
  FISH: optimize creation of FISH commands.
  src/vfs/fish/fish.c: allocate buffer for command dynamically.
  (vfs_url_split): Fix 2 memory leaks found by valgrind.
  smbfs: code cleanup
  ...
2018-02-04 11:31:00 +03:00
Andrew V. Samoilov
af8b0ce339 (mc_deserialize_str): trivial optimization.
Signed-off-by: Andrew V. Samoilov <a.samoilov@gmail.com>
2018-02-04 11:30:23 +03:00