File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,14 @@ export async function buildMappingHelpPages(
1717) : Promise < Page [ ] > {
1818 // Collect mappings
1919 const mappings = await mapping . list ( denops , "" , { mode : "c" } ) ;
20- const pattern = / ^ < P l u g > \( f a l l - ( [ ^ ) ] + ) \) $ / ;
20+ const pattern1 = / ^ < P l u g > \( f a l l - ( [ ^ ) ] + ) \) $ / ;
21+ const pattern2 = / ^ < C m d > c a l l \s + f a l l # a c t i o n \( [ ' " ] ( .* ) [ ' " ] \) < C R > $ / ;
2122 const records = mappings
22- . filter ( ( m ) => pattern . test ( m . rhs ) )
23+ . filter ( ( m ) => pattern1 . test ( m . rhs ) || pattern2 . test ( m . rhs ) )
24+ . filter ( ( m ) => ! pattern1 . test ( m . lhs ) )
2325 . map ( ( m ) => ( {
2426 lhs : m . lhs ,
25- rhs : m . rhs . replace ( pattern , "$1" ) ,
27+ rhs : m . rhs . replace ( pattern1 , "$1" ) . replace ( pattern2 , "action($1) ") ,
2628 } ) ) ;
2729 return formatMappingHelpPage ( width , height , records ) ;
2830}
You can’t perform that action at this time.
0 commit comments