Min RK
a9896e7404
handle zero-length match in v4 completions
...
use start=None instead of `-0` to indicate start == end
(which is already None indicating the same value).
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
MinRK
7aed2fbb55
fix this.editor reference
11 years ago
Matthias Bussonnier
dc912dbdbd
handle somehting selected and multiple cursors and 4 tabs show content in pager
11 years ago
Matthias Bussonnier
804d89351b
rework keyboard management to avoit completer and up/down bugs
11 years ago
Matthias BUSSONNIER
5b355936df
Update to codemirror 4
...
Update to codemirror 4.6 and update most notebook to work wiht it
this include keyevent that where triggerd twice and the re-writing of
ipython-gfm anf ipython mode to work with require.
11 years ago
Jessica B. Hamrick
37c2419c5e
Rename all status_event to kernel_event
11 years ago
Thomas Kluyver
4fc8af546b
Merge pull request #5859 from watercrossing/addPageUpDown
...
add page-up and page-down functionality to the autocomplete dropdown
12 years ago
Jonathan Frederic
0edfdbc703
Return dicts instead of classes,
...
this makes require.js more Python import like.
12 years ago
Jonathan Frederic
0e9e1dd5a3
MWE,
...
Fixed LOTS of bugs
12 years ago
Jonathan Frederic
516958ac07
Almost done!
...
Still need to check IPython uses in the widgets.
12 years ago
watercrossing
fe37c14bdf
add page-up and page-down functionality to the autocomplete dropdown
12 years ago
MinRK
336f47c126
update message spec adapter per review
...
- docs and comments
- adapt complete_reply with `end=null`, `start=-len(matched_text)`
- remove some incorrect `status` fields
- add `handle_reply_status_error` for handling `status=error` replies (no-op, currently)
12 years ago
MinRK
33d2176bc5
complete_reply has cursor_start and cursor_end, not matched_text
12 years ago
MinRK
a74c79ceab
update completion_ and objection_info_request
...
both requests take:
- code (up to full cell)
- cursor_pos (cursor offset in unicode characters)
and object_info_replies return a mime-bundle, instead of structured data
12 years ago
MinRK
4bc14c1154
never use `for (var i in array)`
...
because javascript is terrible
12 years ago
Paul Ivanov
c5054883e9
small fixes for #5320
12 years ago
Jonathan Frederic
aed8b7ba3c
Remove commented out lines (for tab evt)
12 years ago
Jonathan Frederic
cbab393e44
Shrink cleanup lines
12 years ago
Jonathan Frederic
ee7f5b8235
Move width auto into less
12 years ago
Jonathan Frederic
bca3fdc4b0
Remove commented line
12 years ago
Jonathan Frederic
bf65d5837f
Finish implementing codemirror events
12 years ago
Jonathan Frederic
a2071db309
More progress...
12 years ago
Jonathan Frederic
b2ec594c76
Getting a lot closer...
12 years ago
Jonathan Frederic
23494f4ddd
Set tabindex -1, use codemirror's events
12 years ago
Jonathan Frederic
dc6355ffb7
Prevent tab key from bubbling when the completer is open
12 years ago
Jonathan Frederic
d37ffe91b7
Fix status ind. icon bug
12 years ago
Jonathan Frederic
443083c1fd
Added some comments
12 years ago
Jonathan Frederic
95492b0f42
Add illusion that cell is in edit mode when complete is up,
...
even though it is not in focus so it is not in edit mode.
12 years ago
Jonathan Frederic
65732920eb
Remove all should cancel blur logic.
12 years ago
Jonathan Frederic
989ae4e1b3
Workaround for Tooltip & completer click focus bug.
12 years ago
Brian E. Granger
92967c0baf
Addressing things in completer.js.
12 years ago
Brian E. Granger
af7dd15181
Removing old keyboard handling from IPython.utils.
12 years ago
Jonathan Frederic
6f7c502157
Fixed lots of bugs
...
Half overhaul of notebook focus events...
12 years ago
MinRK
a1e263785c
band-aid for completion
...
Unlike @Carreau's attempt at using proper CodeMirror completion,
this is just a band-aid to get the existing completion back to working for 2.0.
This adds a keypress handler on the completer,
which then calls insert with the charCode of the key press event,
replacing the final `elif` branch of the keydown handler.
This cannot be done with keydown,
since keydown doesn't know what character is incoming,
only the hardware key that is struck.
12 years ago
Brian E. Granger
b865c98567
Removing KBN null mode and replacing with enable/disable.
12 years ago
Brian E. Granger
0000e688d6
Code comments and minor fixes.
12 years ago
Brian E. Granger
c1166ea98a
Lots of updates and changes.
...
* Cleaning up the code mirror event handlers.
* Adding logic to prevent calling Notebook.command_mode on cell
focusout.
* Fixing bugs.
12 years ago
Brian E. Granger
caffba142e
Adding keyboard manager logic.
...
This is currently very broken.
12 years ago
Susan Tan
088987adbe
Fixed various typos in docstrings.
12 years ago
MinRK
f7e6435256
only pass shell.reply callback to oinfo / complete
...
These should not have side effects, so no need to expose full callback structure.
Also, object_info method shouldn't have `_request` in its name.
12 years ago
MinRK
d99e25f245
refactor js callbacks
...
all callbacks get the whole message
12 years ago
Matthias BUSSONNIER
fa23fb9d6d
Partial fix to #3653 (from foo import <tab>)
...
Some configurability for Julia
(change the regexp because ! is a valid char in token from them)
12 years ago
Brian E. Granger
1963605e1f
Fixing minor comment.
12 years ago
Brian E. Granger
b41b519127
Removing inversion of the completion list.
12 years ago
Brian E. Granger
c3d128d38a
Adjust tab completion widget if too close to bottom of page.
12 years ago
Matthias BUSSONNIER
57c5d901dc
fix completion when shared start among completion item is null
13 years ago
Matthias BUSSONNIER
faa6d63176
complete on % for magic in notebook
...
fixes #3954
13 years ago
Matthias BUSSONNIER
1e75582e48
Fix duplicate completion in notebook
...
comparaison between kernel completion and context-completin were
returning duplicate entry in some cases, due to trailing space.
sripping trailing space in comparaison prevent this.
fixes #3563
example
import bar
from foo im<tab>
used to propose `import` twice (actually `import` and `import[space]` as$
`import` was a token on the first line) now just complete directly to$
`import[space]`.
13 years ago
MinRK
cf726d6a40
mv IPython.html.notebook -> IPython.html
13 years ago