@@ -27,9 +27,9 @@ def get_actions():
2727 }
2828
2929 swap_connective = list (get_raw_list ("swap_connective" ).keys ())[0 ]
30- source_destination_connective = list (
31- get_raw_list ("source_destination_connective " ).keys ()
32- )[ 0 ]
30+ positional_connectives = {
31+ value : key for key , value in get_raw_list ("positional_connective " ).items ()
32+ }
3333
3434 make_dict_readable (
3535 simple_actions ,
@@ -39,10 +39,14 @@ def get_actions():
3939 )
4040 return {
4141 ** simple_actions ,
42- f"{ complex_actions ['replaceWithTarget' ]} <T1> { source_destination_connective } <T2>" : "Replace T2 with T1" ,
43- f"{ complex_actions ['replaceWithTarget' ]} <T>" : "Replace S with T" ,
44- f"{ complex_actions ['moveToTarget' ]} <T1> { source_destination_connective } <T2>" : "Move T1 to T2" ,
45- f"{ complex_actions ['moveToTarget' ]} <T>" : "Move T to S" ,
42+ f"{ complex_actions ['replaceWithTarget' ]} T1 { positional_connectives ['contentConnective' ]} T2" : "Replace T2 with T1" ,
43+ f"{ complex_actions ['replaceWithTarget' ]} T1 { positional_connectives ['afterConnective' ]} T2" : "Copy T2 after T1" ,
44+ f"{ complex_actions ['replaceWithTarget' ]} T1 { positional_connectives ['beforeConnective' ]} T2" : "Copy T2 before T1" ,
45+ f"{ complex_actions ['replaceWithTarget' ]} T" : "Replace S with T" ,
46+ f"{ complex_actions ['moveToTarget' ]} T1 { positional_connectives ['contentConnective' ]} T2" : "Move T1 to T2" ,
47+ f"{ complex_actions ['moveToTarget' ]} T1 { positional_connectives ['afterConnective' ]} T2" : "Move T1 after T2" ,
48+ f"{ complex_actions ['moveToTarget' ]} T1 { positional_connectives ['beforeConnective' ]} T2" : "Move T1 before T2" ,
49+ f"{ complex_actions ['moveToTarget' ]} T" : "Move T to S" ,
4650 f"{ complex_actions ['swapTargets' ]} <T1> { swap_connective } <T2>" : "Swap T1 with T2" ,
4751 f"{ complex_actions ['swapTargets' ]} { swap_connective } <T>" : "Swap S with T" ,
4852 f"{ complex_actions ['applyFormatter' ]} <F> at <T>" : "Reformat T as F" ,
0 commit comments