File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,5 @@ class Actions:
12
12
def cursorless_reformat (targets : dict , formatters : str ):
13
13
"""Reformat targets with formatter"""
14
14
texts = get_text (targets , show_decorations = False )
15
- updated_texts = list (
16
- map (lambda text : actions .user .reformat_text (text , formatters ), texts )
17
- )
15
+ updated_texts = [actions .user .reformat_text (text , formatters ) for text in texts ]
18
16
actions .user .cursorless_replace (targets , updated_texts )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def cursorless_open_instructions():
40
40
41
41
42
42
@ctx .action_class ("user" )
43
- class Actions :
43
+ class CursorlessActions :
44
44
def cursorless_cheat_sheet_show_html ():
45
45
"""Show cursorless html cheat sheet"""
46
46
# On Linux browsers installed using snap can't open files in a hidden directory
@@ -78,7 +78,7 @@ def cheatsheet_dir_linux() -> Path:
78
78
import platformdirs
79
79
80
80
return Path (platformdirs .user_documents_dir ())
81
- except :
81
+ except Exception :
82
82
# 2. Look for a documents directory in user home
83
83
user_documents_dir = Path .home () / "Documents"
84
84
if user_documents_dir .is_dir ():
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ def get_modifiers():
82
82
"type" : "modifier" ,
83
83
"variations" : [
84
84
{
85
- "spokenForm" : f "<scope>" ,
85
+ "spokenForm" : "<scope>" ,
86
86
"description" : "Containing instance of <scope>" ,
87
87
},
88
88
],
@@ -130,7 +130,7 @@ def get_modifiers():
130
130
"description" : "<number> instances of <scope> including target, going backwards" ,
131
131
},
132
132
{
133
- "spokenForm" : f "<number> <scope>s" ,
133
+ "spokenForm" : "<number> <scope>s" ,
134
134
"description" : "<number> instances of <scope> including target, going forwards" ,
135
135
},
136
136
{
@@ -144,7 +144,7 @@ def get_modifiers():
144
144
"type" : "modifier" ,
145
145
"variations" : [
146
146
{
147
- "spokenForm" : f "<ordinal> <scope>" ,
147
+ "spokenForm" : "<ordinal> <scope>" ,
148
148
"description" : "<ordinal> instance of <scope> in iteration scope" ,
149
149
},
150
150
{
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ def update_file(
231
231
"See release notes for more info: "
232
232
"https://github.com/cursorless-dev/cursorless/blob/main/CHANGELOG.md"
233
233
)
234
- app .notify (f "🎉🎉 New cursorless features; see log" )
234
+ app .notify ("🎉🎉 New cursorless features; see log" )
235
235
236
236
return current_values
237
237
You can’t perform that action at this time.
0 commit comments