Andrew Borodin
9764511b08
Move extfs tester from tests/src/extfs-helpers-listcmd into tests/src/vfs/extfs/helpers-list.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-19 09:39:15 +03:00
Mooffie
96313b16bc
extfs: lslR: add tests.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-16 10:14:41 +03:00
Mooffie
f2c8479a50
extfs: lslR: make it testable.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-16 10:14:41 +03:00
Mooffie
eded16b0e9
extfs: urar: add tests.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-16 10:14:41 +03:00
Mooffie
c88517b055
extfs: urar: make it testable.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-16 10:14:41 +03:00
Mooffie
5f4387cafb
extfs: uzip: add tests.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-16 10:14:41 +03:00
Mooffie
88f3aeef24
extfs: uzip: make it testable.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-16 10:14:41 +03:00
Mooffie
849d3e8f9d
extfs: uzoo: add tests.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-14 13:15:58 +03:00
Mooffie
66b43a6670
extfs: uzoo: make it testable.
...
Note how easy it is to make the helpers testable. MC_TEST_EXTFS_LIST_CMD is
explained in README.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-14 13:15:58 +03:00
Mooffie
a45c997696
extfs: documentation for the tester.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-14 13:15:58 +03:00
Mooffie
7a3891eb90
extfs: introduce a tester.
...
This tester tests that helpers implement the "list" command correctly.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-14 13:15:58 +03:00
Mooffie
13a805bd79
Ticket #3730 : extfs: introduce a command-line tool for parsing file lists.
...
We introduce 'mc_parse_ls_l', a tool for parsing file-listings in format
similar to that of 'ls -l'. This format is used by the various extfs helpers.
We'll use this tool, in the next commit, to build a tester.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-14 13:15:29 +03:00
Andrew Borodin
4b28a7e76e
Merge branch '3696_uzoo_datetime_format'
...
* 3696_uzoo_datetime_format:
extfs: fix documentation of allowed date formats.
Ticket #3693 : fix listing of zoo archive entries.
2016-12-13 13:18:43 +03:00
Mooffie
12812968c0
extfs: fix documentation of allowed date formats.
...
We also improve the documentation of vfs_parse_filedate(), which does the
actual work.
Note that in the user-facing documentation (extfs/helpers/README) there are
two things we prefer *not* to mention about vfs_parse_filedate's ability:
* Accepting the format "MM-DD-YY hh:mm[:ss]", as this two-digit year is
more likely to confuse readers of such dates.
* Accepting '/', instead of '-', as the separator in MM-DD-YYYY. (Considering
that some scripts do use '/', maybe we should mention it?)
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-13 13:14:43 +03:00
Andrey Tataranovich
752a7e4454
Ticket #3693 : fix listing of zoo archive entries.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-13 13:14:43 +03:00
Andrew Borodin
f2051b2e99
Merge branch '3589_hex_search_binary_data'
...
* 3589_hex_search_binary_data:
Ticket #3589 : make hex search work for binary data.
2016-12-10 18:41:12 +03:00
Mooffie
1d9cd68ac3
Ticket #3589 : make hex search work for binary data.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-10 18:40:02 +03:00
Andrew Borodin
8834429989
Merge branch '3731_msg_changed_focus'
...
* 3731_msg_changed_focus:
Ticket #3731 : add new MSG_CHANGED_FOCUS message.
2016-12-10 18:31:50 +03:00
Andrew Borodin
8550044635
Ticket #3731 : add new MSG_CHANGED_FOCUS message.
...
This message is sent to widgets'owner when widget's focus state is
changed.
Find file dialog: fix initial draw of ignore directories input line.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-10 18:31:03 +03:00
Andrew Borodin
87cc7baead
Merge branch '3736_mc_tmpdir'
...
* 3736_mc_tmpdir:
Ticker #3736 : mc_tmpdir() use a buffer of only 64 characters.
2016-12-07 09:50:25 +03:00
Sorin Sbarnea
0cf8e8f6e0
Ticker #3736 : mc_tmpdir() use a buffer of only 64 characters.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-07 09:47:55 +03:00
Mooffie
54a0ccecaa
Ticket #3293 : YAML syntax fixes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-06 11:19:16 +03:00
Roman Belda
055a8c6a4f
Ticket #3293 : add YAML syntax highlighting.
2016-12-04 17:56:27 +03:00
Andrew Borodin
76849655ba
Revert "Ticket #3724 : add true color skins: "Four seasons"."
...
This reverts commit 7b9d78d28c
.
2016-12-04 13:02:19 +03:00
Egmont Koblinger
7b9d78d28c
Ticket #3724 : add true color skins: "Four seasons".
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 10:41:56 +03:00
Andrew Borodin
74cf8f4bee
Merge branch '3735_mcedit_search_error_messages'
...
* 3735_mcedit_search_error_messages:
Ticket #3735 : mcedit: show backwards-search error messages.
2016-12-04 10:18:40 +03:00
Mooffie
5f73bd0ff3
Ticket #3735 : mcedit: show backwards-search error messages.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 10:14:37 +03:00
Andrew Borodin
7bb0b519f4
Merge branch '3710_parse_window_state_char'
...
* 3710_parse_window_state_char:
Ticket #3710 : don't parse "window-state-char" and "window-close-char" as colors.
2016-12-04 10:02:12 +03:00
Andrew Borodin
0701bca6e3
Ticket #3710 : don't parse "window-state-char" and "window-close-char" as colors.
...
The bug: in skin files, the "[editor]" section's "window-state-char" and
"window-close-char" (whose values, as the name implies, are single
characters) are parsed as color fg+bg+attr, and an ncurses/slang
colorpair is allocated for each.
The bug fix: move "window-state-char" and "window-close-char" keys from
"[editor]" section to "[widget-editor]" one.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 10:01:57 +03:00
Andrew Borodin
92b7acf7bf
Merge branch '3694_hex_pattern_parsing'
...
* 3694_hex_pattern_parsing:
(mc_search__hex_translate_to_regex): remove explicit handling of 0x prefixes.
(mc_search__hex_translate_to_regex): rename variables.
(mc_search__hex_translate_to_regex): avoid string duplication.
(mc_search__hex_translate_to_regex): clean up handling of 0x prefixes.
Fix quotes handling.
Handle invalid characters.
Fix trailing whitespace problem.
Report errors to the user.
Ticket #3694 : fix hex pattern parsing.
2016-12-04 09:56:20 +03:00
Mooffie
eff4d74743
(mc_search__hex_translate_to_regex): remove explicit handling of 0x prefixes.
...
scanf("%x") knows to eat up this prefix[1][2], so we don't need to do this
ourselves.
[1] K&R's "The C Programming Language" documents "%x" as "hexadecimal
integer (with or without leading 0x or 0X)"
[2] http://pubs.opengroup.org/onlinepubs/9699919799/functions/scanf.html
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:55:27 +03:00
Mooffie
f96b11cf66
(mc_search__hex_translate_to_regex): rename variables.
...
Now that the string isn't duplicated there's nothing "temporary" about it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:55:27 +03:00
Mooffie
b2cbddb534
(mc_search__hex_translate_to_regex): avoid string duplication.
...
We can read from the source string directly, as we no longer modify it.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:55:27 +03:00
Mooffie
78994224ce
(mc_search__hex_translate_to_regex): clean up handling of 0x prefixes.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:55:27 +03:00
Mooffie
7be9334e45
Fix quotes handling.
...
Note: considering that this feature hasn't worked, we may consider removing it
entirely or partially (e.g., escaping) in order to simplify the code, as nobody
has grown used to it. It seems, based on the "hex mode" mentioned in the manual
page, that in the past there was no "normal" search in hex mode, and quoted
strings were the only easy way to look for text. This is no longer the case
nowadays.
Note: the characters in the quoted string are copied out as-is to the regexp.
No regexp-quoting is currently done. We may want to revisit this issue when we
work on ticket #3695 .
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:55:27 +03:00
Mooffie
64e6ccef7f
Handle invalid characters.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:55:27 +03:00
Mooffie
cc8fcdcfc0
Fix trailing whitespace problem.
...
sscanf() returns EOF when it reaches the end of the string. Our code
erroneously interprets this as if a number was read. The fix: we test for an
explicit '1'.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:55:27 +03:00
Mooffie
b25af93874
Report errors to the user.
...
Instead of silently accepting invalid patterns, we notify the user of errors.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:55:26 +03:00
Mooffie
3332d1ebe4
Ticket #3694 : fix hex pattern parsing.
...
Add test for mc_search__hex_translate_to_regex().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:54:43 +03:00
Andrew Borodin
4095a04a92
Merge branch '3687_hotlist_in_data_dir'
...
* 3687_hotlist_in_data_dir:
Ticket #3687 : store the 'hotlist' file in data dir, not config dir.
2016-12-04 09:48:52 +03:00
Mooffie
306b30ed30
Ticket #3687 : store the 'hotlist' file in data dir, not config dir.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:48:02 +03:00
Andrew Borodin
61c681de94
Merge branch '3684_mc_profile_root'
...
* 3684_mc_profile_root:
(mc_config_init_config_paths): minor optimization.
Rename mc_config_get_profile_root() to mc_get_profile_root()
Fix manual pages.
Ticket #3684 : replace $MC_HOME with $MC_PROFILE_ROOT, a better "profile" mechanism.
2016-12-04 09:41:23 +03:00
Andrew Borodin
8002e52293
(mc_config_init_config_paths): minor optimization.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:37:50 +03:00
Andrew Borodin
496abc0e1f
Rename mc_config_get_profile_root() to mc_get_profile_root()
...
...and move it out from lib/mcconfig.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-12-04 09:37:50 +03:00
Andrew Borodin
d1ad225177
Fix manual pages.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-29 11:19:05 +03:00
Mooffie
239a8d0117
Ticket #3684 : replace $MC_HOME with $MC_PROFILE_ROOT, a better "profile" mechanism.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-29 11:10:19 +03:00
Andrew Borodin
84433f43c2
Merge branch '3716_checkbox_response'
...
* 3716_checkbox_response:
Ticket #3716 : various checkboxes not responding.
2016-11-24 10:30:15 +03:00
Mooffie
b4d5ed514d
Ticket #3716 : various checkboxes not responding.
...
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-24 10:23:53 +03:00
Andrew Borodin
3c8e9b389d
Merge branch '3718_radio_notify'
...
* 3718_radio_notify:
Ticket #3718 : Options/Layout/Equal split gets reverted.
2016-11-24 09:59:23 +03:00
Mooffie
e68f105e0e
Ticket #3718 : Options/Layout/Equal split gets reverted.
...
WRadio sends MSG_NOTIFY with MSG_KEY as parameter to it's owner
when selected item is changed.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2016-11-24 09:41:07 +03:00