mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
Only attempt completion after a dot operator
The other operators are more language specific
This commit is contained in:
parent
22208aeadd
commit
784f7291d5
1 changed files with 5 additions and 1 deletions
|
@ -1119,7 +1119,11 @@ is actually sent to the kernel."
|
|||
;; No completion in finalized cells
|
||||
(not (get-text-property (point) 'read-only))
|
||||
(if (or (looking-at "\\_>")
|
||||
(looking-back "\\.\\|->\\|::" 2))
|
||||
;; TODO: What about other operators like :: and ->, this
|
||||
;; most likely will depend on the kernel in use.
|
||||
;; `jupyter-repl-lang-mode' can be used here with some alist
|
||||
;; mapping modes to operators.
|
||||
(looking-back "\\." 2))
|
||||
(buffer-substring
|
||||
(save-excursion
|
||||
(skip-syntax-backward "w_.")
|
||||
|
|
Loading…
Add table
Reference in a new issue