| File ChangeLog changed (mode: 100644) (index c4cfa74f9..cb07f8ec0) |
| 18 |
18 |
Changed :filter to :filt[er]. :filt and :filte are now guaranteed to |
Changed :filter to :filt[er]. :filt and :filte are now guaranteed to |
| 19 |
19 |
invoke :filter. Thanks to filterfalse. |
invoke :filter. Thanks to filterfalse. |
| 20 |
20 |
|
|
| 21 |
|
Changed :sp[lit] and :vs[plit] to expand macros in their parameter. |
|
| 22 |
|
Thanks to agguser. |
|
|
21 |
|
Changed :sp[lit] and :vs[plit] to expand macros and environment variables |
|
22 |
|
in their parameter. Thanks to agguser. |
| 23 |
23 |
|
|
| 24 |
24 |
Added <help> :*map argument that enables providing description for the |
Added <help> :*map argument that enables providing description for the |
| 25 |
25 |
mapping with the same curly braces syntax as used by :file[x]type. |
mapping with the same curly braces syntax as used by :file[x]type. |
| File data/man/vifm.1 changed (mode: 100644) (index 6cd8c59a9..c304e3602) |
| ... |
... |
toggle horizontal window splitting. |
| 3123 |
3123 |
.BI ":sp[lit] path" |
.BI ":sp[lit] path" |
| 3124 |
3124 |
splits the window horizontally to show both file directories. Also changes |
splits the window horizontally to show both file directories. Also changes |
| 3125 |
3125 |
other pane to path (absolute or relative to current directory of active pane). |
other pane to path (absolute or relative to current directory of active pane). |
| 3126 |
|
Macros are expanded. |
|
|
3126 |
|
Macros and environment variables are expanded. |
| 3127 |
3127 |
.TP |
.TP |
| 3128 |
3128 |
.BI ":sp[lit] -focus ..." |
.BI ":sp[lit] -focus ..." |
| 3129 |
3129 |
see "\-focus parameter" below. |
see "\-focus parameter" below. |
| |
| ... |
... |
toggle window vertical splitting. |
| 3365 |
3365 |
.BI ":vs[plit] path" |
.BI ":vs[plit] path" |
| 3366 |
3366 |
split the window vertically to show both file directories. And changes other |
split the window vertically to show both file directories. And changes other |
| 3367 |
3367 |
pane to path (absolute or relative to current directory of active pane). |
pane to path (absolute or relative to current directory of active pane). |
| 3368 |
|
Macros are expanded. |
|
|
3368 |
|
Macros and environment variables are expanded. |
| 3369 |
3369 |
.TP |
.TP |
| 3370 |
3370 |
.BI ":vs[plit] -focus ..." |
.BI ":vs[plit] -focus ..." |
| 3371 |
3371 |
see "\-focus parameter" below. |
see "\-focus parameter" below. |
| File data/vim/doc/app/vifm-app.txt changed (mode: 100644) (index 795c9a42b..55d275863) |
| ... |
... |
yet supported) and might be changed in future releases, or get an alias. |
| 2647 |
2647 |
:sp[lit] path |
:sp[lit] path |
| 2648 |
2648 |
split window horizontally to show both file directories. Also changes |
split window horizontally to show both file directories. Also changes |
| 2649 |
2649 |
other pane to the path (absolute or relative to current directory of |
other pane to the path (absolute or relative to current directory of |
| 2650 |
|
active pane). Macros are expanded. |
|
|
2650 |
|
active pane). Macros and environment variables are expanded. |
| 2651 |
2651 |
:sp[lit] -focus ... |
:sp[lit] -focus ... |
| 2652 |
2652 |
see |vifm-focus-param|. |
see |vifm-focus-param|. |
| 2653 |
2653 |
|
|
| |
| ... |
... |
yet supported) and might be changed in future releases, or get an alias. |
| 2825 |
2825 |
:vs[plit] path |
:vs[plit] path |
| 2826 |
2826 |
split the window vertically to show both file directories. Also changes |
split the window vertically to show both file directories. Also changes |
| 2827 |
2827 |
other pane to the path (absolute or relative to current directory of active |
other pane to the path (absolute or relative to current directory of active |
| 2828 |
|
pane). Macros are expanded. |
|
|
2828 |
|
pane). Macros and environment variables are expanded. |
| 2829 |
2829 |
:vs[plit] -focus ... |
:vs[plit] -focus ... |
| 2830 |
2830 |
see |vifm-focus-param|. |
see |vifm-focus-param|. |
| 2831 |
2831 |
|
|
| File src/cmd_handlers.c changed (mode: 100644) (index 18e0392a8..73f26bc17) |
| ... |
... |
const cmd_add_t cmds_list[] = { |
| 857 |
857 |
.handler = &source_cmd, .min_args = 1, .max_args = 1, }, |
.handler = &source_cmd, .min_args = 1, .max_args = 1, }, |
| 858 |
858 |
{ .name = "split", .abbr = "sp", .id = COM_SPLIT, |
{ .name = "split", .abbr = "sp", .id = COM_SPLIT, |
| 859 |
859 |
.descr = "horizontal split layout", |
.descr = "horizontal split layout", |
| 860 |
|
.flags = HAS_EMARK | HAS_COMMENT | HAS_MACROS_FOR_CMD, |
|
|
860 |
|
.flags = HAS_EMARK | HAS_COMMENT | HAS_MACROS_FOR_CMD | HAS_ENVVARS, |
| 861 |
861 |
.handler = &split_cmd, .min_args = 0, .max_args = NOT_DEF, }, |
.handler = &split_cmd, .min_args = 0, .max_args = NOT_DEF, }, |
| 862 |
862 |
{ .name = "stop", .abbr = "st", .id = -1, |
{ .name = "stop", .abbr = "st", .id = -1, |
| 863 |
863 |
.descr = "suspend the process (same as pressing Ctrl-Z)", |
.descr = "suspend the process (same as pressing Ctrl-Z)", |
| |
| ... |
... |
const cmd_add_t cmds_list[] = { |
| 961 |
961 |
#endif |
#endif |
| 962 |
962 |
{ .name = "vsplit", .abbr = "vs", .id = COM_VSPLIT, |
{ .name = "vsplit", .abbr = "vs", .id = COM_VSPLIT, |
| 963 |
963 |
.descr = "vertical split layout", |
.descr = "vertical split layout", |
| 964 |
|
.flags = HAS_EMARK | HAS_COMMENT | HAS_MACROS_FOR_CMD, |
|
|
964 |
|
.flags = HAS_EMARK | HAS_COMMENT | HAS_MACROS_FOR_CMD | HAS_ENVVARS, |
| 965 |
965 |
.handler = &vsplit_cmd, .min_args = 0, .max_args = NOT_DEF, }, |
.handler = &vsplit_cmd, .min_args = 0, .max_args = NOT_DEF, }, |
| 966 |
966 |
{ .name = "vunmap", .abbr = "vu", .id = -1, |
{ .name = "vunmap", .abbr = "vu", .id = -1, |
| 967 |
967 |
.descr = "unmap user keys in visual mode", |
.descr = "unmap user keys in visual mode", |
| File tests/commands/misc.c changed (mode: 100644) (index 748b2c7a9..07a60e706) |
| ... |
... |
TEST(split) |
| 786 |
786 |
assert_int_equal(2, curr_stats.number_of_windows); |
assert_int_equal(2, curr_stats.number_of_windows); |
| 787 |
787 |
assert_string_ends_with("/read", rwin.curr_dir); |
assert_string_ends_with("/read", rwin.curr_dir); |
| 788 |
788 |
|
|
|
789 |
|
/* environment variables */ |
|
790 |
|
|
|
791 |
|
assert_success(cmds_dispatch1("let $TEST = 'rename'", &lwin, CIT_COMMAND)); |
|
792 |
|
assert_success(cmds_dispatch1("split $TEST", &lwin, CIT_COMMAND)); |
|
793 |
|
assert_int_equal(HSPLIT, curr_stats.split); |
|
794 |
|
assert_int_equal(2, curr_stats.number_of_windows); |
|
795 |
|
assert_string_ends_with("/rename", rwin.curr_dir); |
|
796 |
|
|
|
797 |
|
assert_success(cmds_dispatch1("let $TEST = 'read'", &lwin, CIT_COMMAND)); |
|
798 |
|
assert_success(cmds_dispatch1("vsplit $TEST", &lwin, CIT_COMMAND)); |
|
799 |
|
assert_int_equal(VSPLIT, curr_stats.split); |
|
800 |
|
assert_int_equal(2, curr_stats.number_of_windows); |
|
801 |
|
assert_string_ends_with("/read", rwin.curr_dir); |
|
802 |
|
|
| 789 |
803 |
/* -focus */ |
/* -focus */ |
| 790 |
804 |
|
|
| 791 |
805 |
ui_sb_msg(""); |
ui_sb_msg(""); |