Min RK
6f354fea42
Reverse hscrollbar min-height hack on OS X
...
OS X has optional behavior to only draw scrollbars during scroll,
which causes problems for CodeMirror's scrollbars.
CodeMirror's solution is to set a minimum size for their
scrollbars, which is always present.
The trade is that the container overlays most of the last line,
swallowing click events when there is scrolling to do,
even when no scrollbar is visible.
This reverses the trade, recovering the click events at the expense of
never showing the horizontal scrollbar on OS X when this option is enabled.
11 years ago
Min RK
490248ea93
move auto_highlight to Cell
...
consolidates nearly-identical CodeCell.auto_highlight and TextCell.auto_highlight
11 years ago
Bussonnier Matthias
15ab64e884
make global css change on command/edit mode
11 years ago
Nicholas Bollweg (Nick)
68c4714338
using codemirror mode/meta for detection
11 years ago
Nicholas Bollweg (Nick)
83757b6a0e
moving typeset to utils, usage in cell and outputarea
11 years ago
Jonathan Frederic
b53386b37b
Ran function comment conversion tool
11 years ago
Min RK
88219df674
Preserve nbformat_minor from the future
...
warn on click of unrecognized elements, rather than on load.
11 years ago
Min RK
bb23105fdd
Handle unrecognized outputs and cells from the future
11 years ago
Jonathan Frederic
f2b6697098
Use a property instead of a setter method
11 years ago
Jonathan Frederic
bfdf9596fd
Fix bug where cell toolbars are not redrawn,
...
when cell metadata is changed.
11 years ago
Matthias Bussonnier
b24e69b058
cleanup whitespace
11 years ago
Matthias Bussonnier
c183aa5fe6
remove unused cm_loadmode
11 years ago
MinRK
8e863d951c
use require to load CodeMirror modes
...
CM's loadmode addon only works if you *don't* load CodeMirror itself with require.
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
Min RK
63a7969123
Merge pull request #6416 from Carreau/foobarcode
...
Unify Text/CodeCell code.
11 years ago
Matthias BUSSONNIER
9657a3f7cd
Generalise render/unrender to all cells type
...
Allow change of behavior in pure (custom) css.
11 years ago
Jessica B. Hamrick
10d500525a
Make cell be undeletable ONLY when metadata is explicitly false
11 years ago
Jessica B. Hamrick
990425f034
Handle 'deletable' cell metadata
11 years ago
Matthias Bussonnier
56d48e2892
codemirror rempo moved, update links in comments
12 years ago
MinRK
78fdc1ebb4
move mergeopt to utils
...
from Cell
12 years ago
Matthias BUSSONNIER
233ef2180d
remove unused variable
12 years ago
Matthias BUSSONNIER
d7cc8dcf8d
a few todo
12 years ago
jon
70ffd96eb9
Added some nice comments,
...
so devs can easily figure out what options to pass
into the objects they want to construct.
12 years ago
jon
d9ab2d203a
In person review with @ellisonbg
12 years ago
jon
1e098560b8
Revert "Google hangout review comments."
...
This reverts commit 4e120e76014b2630f957c01d17ba3926d4848872.
12 years ago
Jonathan Frederic
eb2b1ab4a4
Google hangout review comments.
12 years ago
Jonathan Frederic
2ba8945cab
Fix all the bugs!
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
Jonathan Frederic
152e23dc76
Progress...
12 years ago
Jonathan Frederic
8d511b2ff5
Finished moving code into final(?) resting modules
12 years ago
Jonathan Frederic
fb32b6561f
Start of work to make notebook.html requirejs friendly.
12 years ago
Matthias BUSSONNIER
c9f0d14c09
unify visual line handling
12 years ago
Paul Ivanov
997a9735f0
Merge pull request #5320 from jdfreder/focusbug_tt
...
Fix for Tooltip & completer click focus bug.
12 years ago
Paul Ivanov
0c366861c5
brief key event desription
12 years ago
Paul Ivanov
09866e0ee1
go to the beginning of the line when entering cell
12 years ago
Paul Ivanov
96848748de
restore master behavior
...
up arrow at the top line first goes to char 0, and only goes to the cell
above if already on char 0. Same with down arrow on the bottom line:
transition cursor to the end of the line, and only go down a cell if
already at the end of the last line.
this makes for an unhappy experience in code-mirror's vim mode for j
and k keys, but we'll fix that in the next commit
12 years ago
Paul Ivanov
61b47695e4
renamed 'use_shortcut' method to 'handles'
12 years ago
Paul Ivanov
d8287466d0
another doc fix
12 years ago
Paul Ivanov
67fd905421
minor fixes to docs to address PR feedback
12 years ago
Paul Ivanov
469c70fd10
more semicolons
12 years ago
Jonathan Frederic
65732920eb
Remove all should cancel blur logic.
12 years ago
Paul Ivanov
19c7189b15
no need to special-case Escape anymore
12 years ago
Paul Ivanov
6a2c4121f9
up and down keys no longer need special casing
12 years ago
Paul Ivanov
2c9ff376a2
added new use_shortcut method to shortcuts
...
this way, you can ask if a particular event will be handled by the
shortcuts system. This takes away the need to special-case many
different possible keys which should be ignored by codemirror by
ignoring them en masse.
12 years ago
Paul Ivanov
b9e448b160
DRY: refactor common keyboard handling to Cell
...
Our edit mode keyboard shortcuts don't distinguish between being in a
code cell or in a text cell, so it makes sense to handle both in one
place. This is a first step in that direction.
12 years ago
Paul Ivanov
15f4345ba3
typo, use keycodes object instead of magic numbers
12 years ago
Paul Ivanov
bf3ecdb35f
DRY: factor out common handle_keyevent method
...
This method was identical in both CodeCell and TextCell
12 years ago