File tree 1 file changed +94
-0
lines changed
editors/kak/autoload/filetype
1 file changed +94
-0
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,100 @@ map global bqn '\' ':exec i\<ret>'
156
156
# Commands
157
157
# ‾‾‾‾‾‾‾‾
158
158
159
+ # insert BQN symbol by name
160
+ # map e.g. as follows : map buffer insert <c-j> '<esc>:insert-bqn<ret>'
161
+ define-command -hidden insert-bqn %{
162
+ prompt command: -menu -shell-script-candidates %{ cat<<EOF
163
+ × \\= Sign Multiply
164
+ ÷ <minus> Recipical Divide
165
+ ⋆ \\+ Exponential Power
166
+ √ \\_ Square root Root
167
+ ⌊ \\b Floor Minimum
168
+ ⌈ \\B Ceiling Maximum
169
+ ∧ \\t SortUp And
170
+ ∨ \\v SortDown Or
171
+ ¬ \\~ Not Span
172
+ | | AbsoluteValue Modulus
173
+ ≤ \\< LessOrEqual
174
+ < < Enclose LessThan
175
+ > > Merge GreaterThan
176
+ ≥ \\> GreaterOrEqual
177
+ = = Rank Equal
178
+ ≠ \\/ Length NotEqual
179
+ ≡ \\m Depth Match
180
+ ≢ \\M Shape NotMatch
181
+ ⊣ \\{ Identity Left
182
+ ⊢ \\} Identity Right
183
+ ⥊ \\z Deshape Reshape
184
+ ∾ \\, Join JoinTo
185
+ ≍ \\. Solo Couple
186
+ ⋈ \\Z Enclose Pair
187
+ ↑ \\r Prefixes Take
188
+ ↓ \\c Suffixes Drop
189
+ ↕ \\d Range Windows
190
+ « \\H ShiftBefore ReplaceEnd
191
+ » \\L ShiftAfter ReplaceStart
192
+ ⌽ \\q Reverse Rotate
193
+ ⍉ \\a Transpose ReorderAxis
194
+ ⍋ \\T GradeUp BinsUp
195
+ ⍒ \\V GradeDown BinsDown
196
+ ⊏ \\i FirstCell Select
197
+ ⊑ \\I First Pick
198
+ ⊐ \\o Classify IndexOf
199
+ ⊒ \\O VisitCount AdvanceIndexOf
200
+ ∊ \\e MarkFirst MemberOf
201
+ ⍷ \\E Deduplicate Find
202
+ ⊔ \\u GroupIndices Group
203
+ / / Indices Replicate
204
+ ! ! Assert AssertMsg
205
+ ˙ \\" _constant
206
+ ˜ \\\` _self _swap
207
+ ˘ \\1 _cells
208
+ ¨ \\2 _each
209
+ ⁼ \\3 _undo
210
+ ⌜ \\4 _table
211
+ ´ \\5 _fold
212
+ ˝ \\6 _insert
213
+ \` \` _scan
214
+ ∘ \\j _atop_
215
+ ○ \\k _over_
216
+ ⊸ \\h _bind_before_
217
+ ⟜ \\l _bind_after_
218
+ ⌾ \\K _under_
219
+ ⊘ \\% _valences_
220
+ ◶ \\$ _choose_
221
+ ⎊ \\^ _catch_
222
+ ⎉ \\! _rank_
223
+ ⚇ \\@ _depth_
224
+ ⍟ \\# _repeat_
225
+ ← \\[ DEFINE
226
+ ⇐ \\? EXPORT
227
+ ↩ ' CHANGE
228
+ ⋄ \\; SEPERATOR
229
+ ⟨ \\( BEGIN LIST
230
+ ⟩ \\) END LIST
231
+ ‿ <space> STRAND
232
+ · \\: NOTHING
233
+ • \\0 SYSTEM
234
+ 𝕨 \\w left argument
235
+ 𝕎 \\W left argument function
236
+ 𝕩 \\x right argument
237
+ 𝕏 \\X right argument function
238
+ 𝕗 \\f left operand
239
+ 𝔽 \\F left operand function
240
+ 𝕘 \\g right operand
241
+ 𝔾 \\G right operand function
242
+ 𝕤 \\s self
243
+ 𝕊 \\S self function
244
+ 𝕣 \\R self modifier
245
+ ¯ \\9 minus
246
+ π \\p constant pi
247
+ ∞ \\8 constant infinity
248
+ @ @ constant null character
249
+ # # COMMENT
250
+ EOF
251
+ } %{ exec %sh{ printf ' i%s' " $( printf %s " $kak_text " | cut -d ' ' -f 1) " } }}
252
+
159
253
define-command -hidden bqn-indent-on-new-line %`
160
254
evaluate-commands -draft -itersel %_
161
255
# preserve previous line indent
You can’t perform that action at this time.
0 commit comments