@@ -51,18 +51,9 @@ let open_docs_if_autocomplete_is_open_command = (cm) => {
5151 return false
5252}
5353
54- /** @param {EditorView } cm */
55- let complete_and_also_type = ( cm ) => {
56- // Possibly autocomplete
57- acceptCompletion ( cm )
58- // And then do nothing, in the hopes that codemirror will add whatever we typed
59- return false
60- }
61-
6254const pluto_autocomplete_keymap = [
6355 { key : "Tab" , run : tab_completion_command } ,
6456 { key : "?" , run : open_docs_if_autocomplete_is_open_command } ,
65- { key : "." , run : complete_and_also_type } ,
6657]
6758
6859/**
@@ -151,12 +142,7 @@ const section_operators = {
151142const field_rank_heuristic = ( text , is_exported ) => is_exported * 3 + ( / ^ \p{ Ll} / u. test ( text ) ? 2 : / ^ \p{ Lu} / u. test ( text ) ? 1 : 0 )
152143
153144const julia_commit_characters = ( /** @type {autocomplete.CompletionContext } */ ctx ) => {
154- // const output = [".", "[", "{"]
155-
156- // if (ctx.matchBefore(/\(.*/)) output.push(",")
157-
158- // only the dot ".", which is handled by complete_and_also_type
159- return undefined
145+ return [ "." ]
160146}
161147const endswith_keyword_regex =
162148 / ^ ( .* \s ) ? ( b a r e m o d u l e | b e g i n | b r e a k | c a t c h | c o n s t | c o n t i n u e | d o | e l s e | e l s e i f | e n d | e x p o r t | f a l s e | f i n a l l y | f o r | f u n c t i o n | g l o b a l | i f | i m p o r t | l e t | l o c a l | m a c r o | m o d u l e | q u o t e | r e t u r n | s t r u c t | t r u e | t r y | u s i n g | w h i l e ) $ /
@@ -245,6 +231,7 @@ const julia_code_completions_to_cm =
245231 boost :
246232 completion_type === "keyword_argument" ? 7 : is_field_expression ? field_rank_heuristic ( text_to_apply , is_exported ) : undefined ,
247233 // boost: 50 - i / results.length,
234+ commitCharacters : completion_type === "keyword_argument" || value_type === "Macro" ? [ ] : undefined ,
248235 }
249236 } ) ,
250237 // This is a small thing that I really want:
0 commit comments