Andrew Borodin
f98cda9ff3
doc: add substitution for %pkglibexecdir% and %pkgdatadir% in man pages.
...
%prefix% isn't used anymore, remove it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-12-03 13:05:15 +03:00
Andrew Borodin
ebb011a047
Merge branch '3121_empty_subshell_prompt'
...
* 3121_empty_subshell_prompt:
Ticket #3121 : empty subshell/command line prompt.
2022-12-03 13:04:56 +03:00
Andrew Borodin
1ac5c22517
Ticket #3121 : empty subshell/command line prompt.
...
If subshell is initializing more than 1 second - we have no subshell.
(feed_subshell): change timeout to 10 secons. I belive that is more than
enough time to run subshell.
Thanks Alexandr Zamaraev (aka Tonal) <tonal.promsoft@gmail.com> and
antonio_so <sozonnik@gmail.com> for finding out the cause of the
problem.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-11-26 14:21:55 +03:00
Alexander Fadeev
87bfef7317
Ticket #4412 : add TOML (Tom's Obvious Minimal Language) syntax highlighting.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-11-26 09:44:24 +03:00
Andrew Borodin
9507ceda20
Merge branch '3220_compare_panelized'
...
* 3220_compare_panelized:
Ticket #3220 : fix directory comparision in panelized panel.
2022-11-26 09:39:40 +03:00
Andrew Borodin
a72ede698e
Ticket #3220 : fix directory comparision in panelized panel.
...
Directory comparision expects only file names in both panels.
In panelized panel, files named can contain paths:
| boxes.c | 43220|| 1/boxes.c | 43220|
| boxes.h | 1429 || 1/boxes.h | 1429|
| | || boxes.c | 43220|
| | || boxes.h | 1429|
Even if boxes.c and 1/boxes.c files are the same, they are marked as
different because strings "boxes.c" and "1/boxes.c" are different.
The solution: for panelized panel, ignore path and use file name only
(like output of basename(3)) for comparision.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-11-14 20:59:05 +03:00
Andrew Borodin
3250536c15
Merge branch '4409_copy_continue'
...
* 4409_copy_continue:
Update po/*.po files.
Ticket 4409: continue copy after interrupt.
2022-10-23 20:25:09 +03:00
Andrew Borodin
4eac28b3b5
Update po/*.po files.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-23 20:24:43 +03:00
Andrew Borodin
30f9309b8a
Ticket 4409: continue copy after interrupt.
...
(copy_file_file): add button "Continue copy" to query dialog "Incomplete
file was retrieved".
(file_ui_op_dlg_callback): callback for copy/move progess dialog.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-15 21:14:35 +03:00
Andrew Borodin
38bd3ece9e
Merge branch '4357_cleanup'
...
* 4357_cleanup: (27 commits)
Update po/*.po files.
(mc_search__cond_struct_new_regex_ci_str): fix out of boundary access in string.
(mc_search__normal_translate_to_regex): modify string in-place.
(mc_search_prepare): fix coding style, reduce variable scope.
(mc_search__cond_struct_new): take GString.
(mc_search__tolower_case_str, mc_search__tolower_case_str): take GString.
(mc_search__cond_struct_new_regex_hex_add): take GString.
(mc_search__recode_str): return GString.
(mc_search_regex__process_append_str): free string at end of loop.
(mc_search__change_case_str): refactoring.
mc_search: refactoring.
mc_search: refactoring.
Revert "(extfs_open_archive): fix NULL dereferences."
filehighlight.ini: add TypeScript tsx files to sources.
filehighlight.ini: add Markdown mkd files to documents.
Ticket #4400 : fix --enable-configure-args description.
(fish_dir_load): move `ls -l` output parser to separate function.
FTP fixes.
Cosmetics: add spaces around slash in statistics messages.
Enlarge subshell PTY buffer.
...
2022-10-15 12:38:40 +03:00
Andrew Borodin
e57ad085b3
Update po/*.po files.
2022-10-15 12:37:48 +03:00
Andrew Borodin
f8c0a21904
(mc_search__cond_struct_new_regex_ci_str): fix out of boundary access in string.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
cc6af7a654
(mc_search__normal_translate_to_regex): modify string in-place.
...
Get rid of extra memory allocation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
761b7952cb
(mc_search_prepare): fix coding style, reduce variable scope.
2022-10-10 21:07:40 +03:00
Andrew Borodin
837ecc9aeb
(mc_search__cond_struct_new): take GString.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
955e88f0d0
(mc_search__tolower_case_str, mc_search__tolower_case_str): take GString.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
76835c05af
(mc_search__cond_struct_new_regex_hex_add): take GString.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
1da094ae4a
(mc_search__recode_str): return GString.
...
(mc_search__get_one_symbol): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
7a65d5200b
(mc_search_regex__process_append_str): free string at end of loop.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
32c2ec9a91
(mc_search__change_case_str): refactoring.
...
Rename variables.
Allocate destination buffer instead of string duplicate.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
e3421df1dd
mc_search: refactoring.
...
Bodies of mc_search__tolower_case_str() and mc_search__toupper_case_str()
are almost same excluding the case conversion function call:
mc_search__tolower_case_str() calls str_tolower() and
mc_search__toupper_case_str() calls str_toupper.
Move this common body to separate function and call case conversion
function via pointer.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
47b116b773
mc_search: refactoring.
...
(mc_search_t): use GString to keep original search string. Join search string
and charset to structure.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
f778c86e4d
Revert "(extfs_open_archive): fix NULL dereferences."
...
This reverts commit 0df10f488b
.
g_strconcat() accepts NULL after non-NULL arguments.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
2d7616e3c6
filehighlight.ini: add TypeScript tsx files to sources.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
d60e3d5311
filehighlight.ini: add Markdown mkd files to documents.
2022-10-10 21:07:40 +03:00
Sergei Trofimovich
8318e3172d
Ticket #4400 : fix --enable-configure-args description.
...
Before the change the description said:
Handle all compiler warnings as errors
Looks like a leftover from --enable-werror copy.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
116b6a616a
(fish_dir_load): move ls -l
output parser to separate function.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Ovsyannikov Sergey E
3e7424a95a
FTP fixes.
...
* (parse_ls_line): fix get of file GID.
* (ftpfs_parse_long_list_MLSD): likewise.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Ovsyannikov Sergey E
21c45e8a7a
Cosmetics: add spaces around slash in statistics messages.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
bb3ace13f1
Enlarge subshell PTY buffer.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
a7833b5b2e
(real_warn_same_file): truncate file names if required.
...
If file name is too long, message window is wider than screen.
Truncate file name to fit it in the screen.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
facf199f65
(fish_free_archive): check socket before close.
...
Find by Coverity.
Coverity id #313668 .
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andreas Mohr
1431d8b692
(ins_from_clip): fix maybe-uninitialized warning.
...
../../../lib/widget/input.c:573:8: error: 'event_data.ret' may be used uninitialized [-Werror=maybe-uninitialized]
573 | if (event_data.ret)
| ^
../../../lib/widget/input.c:566:35: note: 'event_data.ret' was declared here
566 | ev_clipboard_text_from_file_t event_data;
Found by gcc-11.
Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
c441250beb
mcviewer: move.c: fix coding style.
2022-10-10 21:07:40 +03:00
Andrew Borodin
fba3d47408
mcviewer: internal.h: fix coding style.
2022-10-10 21:07:40 +03:00
Andrew Borodin
5db6715a5f
VFS: don't use vfs_s_inode::data_offset for file name normalization.
...
Use new member vfs_s_entry::leading_spaces for that.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
52fd6215b0
Ticket #4357 : code clean up before 4.8.29 release.
...
(vfs_s_open): minor optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-10 21:07:40 +03:00
Andrew Borodin
e48cd98ac1
Merge branch '4404_zip_magic'
...
* 4404_zip_magic:
Fix detection of zip-compressed file.
Ticket #4404 : wrong decompressot for zip files.
2022-10-09 14:08:59 +03:00
Andrew Borodin
b42e58dfbc
Fix detection of zip-compressed file.
...
(compression_type): add COMPRESSION_ZIP value.
(decompress_extension): support COMPRESSION_ZIP.
(get_compression_type): fix zip-file detection.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-09 14:06:25 +03:00
Andrew Borodin
395569c685
Ticket #4404 : wrong decompressot for zip files.
...
In quick view panel mode, gzip is used for view zip-files.
Initial commit:
(get_compression_type): use hex values instead of octal ones.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-09 14:06:25 +03:00
Andrew Borodin
7bbaa13644
Merge branch '4364_fish_remove_nonempty_dir'
...
* 4364_fish_remove_nonempty_dir:
(check_dir_is_empty): clarify description.
Ticket #4364 : FISH VFS: cannot remove non-empty directory.
2022-10-09 14:03:09 +03:00
Andrew Borodin
72f5211327
(check_dir_is_empty): clarify description.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-09 14:02:19 +03:00
Andrew Borodin
d4d6cec52d
Ticket #4364 : FISH VFS: cannot remove non-empty directory.
...
Revert "(check_dir_is_empty): minor optimization."
This reverts commit 25e419ba08
.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-10-02 11:13:17 +03:00
Andrew Borodin
3a3811c528
Merge branch '4141_mc.ext.ini'
...
* 4141_mc.ext.ini:
Update po/*.po files.
Port mc.ext to INI format.
(regex_command_for): move load of extension file to separate function.
(mc_config_has_param): use g_key_file_get_value()...
Ticket #4141 : allow compound (AND) conditions in mc.ext
2022-09-25 14:57:17 +03:00
Andrew Borodin
91c8daad9a
Update po/*.po files.
2022-09-25 14:56:07 +03:00
Andrew Borodin
d9eeec9a5a
Port mc.ext to INI format.
...
Ticket #2773 : 'include' keyword (for command class def) have no effect
if it was defined before 'Include' keyword (for command def).
Ticket #3742 : update comment in mc.ext.ini.
doc: remove mc.ext.ini format description from manual page.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-09-25 14:55:00 +03:00
Andrew Borodin
1cb66b82bd
(regex_command_for): move load of extension file to separate function.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-08-28 11:10:39 +03:00
Andrew Borodin
cf660c7f9d
(mc_config_has_param): use g_key_file_get_value()...
...
to check if a parameter exists.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-08-28 11:10:39 +03:00
Andrew Borodin
67ec86b570
Ticket #4141 : allow compound (AND) conditions in mc.ext
...
...to disambiguate overloaded extensions
Initial commit:
* rename macro for mc.ext file: MC_FILEBIND_FILE -> MC_EXT_FILE.
* (ext_cmd): fix errorous usage of MC_LIB_EXT macro. Use MC_EXT_FILE
instead.
* (regex_command_for): likewise. Use already existing variable
extension_file, remove variable filebind_filename.
* MC_LIB_EXT: remove macro.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2022-08-28 11:10:39 +03:00
Andrew Borodin
1294c7bad1
Merge branch '4401_viewer_segfault'
...
* 4401_viewer_segfault:
Ticket #4401 : Segmentation fault in mcviewer.
2022-08-21 20:53:31 +03:00