MinRK
9552688a71
back to dev
12 years ago
MinRK
2adfb5254c
2.0.0-rc1
12 years ago
Paul Ivanov
f1573bd266
CodeMirror shortcuts in QuickHelp
...
Our users shouldn't need an internet connection to look at the code
mirror shortcuts. This PR places the CM keyboard shortcuts that are
currently documented on our website's rendered docs, and places them
inside the keyboard shortcuts quickhelp.
12 years ago
MinRK
2daf2fe293
update links in notebook help menu
12 years ago
Paul Ivanov
0240b20127
Merge pull request #5419 from minrk/responsive-prompts
...
move prompts from margin to main column on small screens
12 years ago
Min RK
a594a691c6
Merge pull request #5430 from jdfreder/elementappend
...
Make sure `element` is correct in the context of displayed JS
12 years ago
Min RK
34571232bb
Merge pull request #5396 from ivanov/fix-5363
...
prevent saving of partially loaded notebooks
12 years ago
Paul Ivanov
f41750ca6b
address PR feedback
12 years ago
Jonathan Frederic
1235c2f638
Make sure `element` is correct in the context of displayed JS
...
closes #5293
12 years ago
Jonathan Frederic
b4099518f8
Fix tooltip pager feature
...
Updates to tooltip.js for msg spec changes.
12 years ago
Min RK
b294bf7059
Merge pull request #5404 from jdfreder/accordion
...
Fix broken accordion widget
12 years ago
Jonathan Frederic
db2e16f2e1
Added a test
12 years ago
Jonathan Frederic
e1daedf95b
Fixed keyboard.js indent break
12 years ago
Jonathan Frederic
e235b47472
Make test name match actually file name
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
c5054883e9
small fixes for #5320
12 years ago
MinRK
f5ad1cc398
move prompts from margin to main column on small screens
...
This is mainly for nbviewer, but the relevant CSS lives in IPython.
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
b90358888b
Fab CSS
12 years ago
Jonathan Frederic
ee7f5b8235
Move width auto into less
12 years ago
Jonathan Frederic
ca422672d6
Re-added new lines at eof
12 years ago
Jonathan Frederic
5c8c8f218c
Revert accidental checkin of files from SlimerJS branch
12 years ago
Jonathan Frederic
bca3fdc4b0
Remove commented line
12 years ago
Jonathan Frederic
bf65d5837f
Finish implementing codemirror events
12 years ago
Jonathan Frederic
1f002cd456
Add displayed property.
...
and remove logs, commments, etc...
12 years ago
Jonathan Frederic
607b96b19a
Actually remove the trigger keydown method
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
f2c8de99ae
Fix broken accordion widget,
...
Also clean-up the code some while visiting this file.
12 years ago
Jonathan Frederic
744f057cab
get_text() before returning results
12 years ago
Jonathan Frederic
af03114ef6
s/set_cell_text/set_cells_text
12 years ago
Jonathan Frederic
42fa583172
Fix split shortcut
12 years ago
Jonathan Frederic
b80e11d3ce
Plus to minus shortcuts rebase fixes
12 years ago
Jonathan Frederic
9c6d904f71
Set cursor pos in edit mode before attempting to jump cells.
12 years ago
Jonathan Frederic
ca71afc5ea
Note to self
12 years ago
Jonathan Frederic
1754e3291a
Call trigger_keydown in merge_cells_api test
12 years ago
Jonathan Frederic
7c6c0b22b8
Pythonize me captin'
...
Made the method comments more pythonic by moving them
within the method definitions.
12 years ago
Jonathan Frederic
baa28a0b81
Final fixes?
12 years ago
Jonathan Frederic
ae2b0800cf
Partial fix of problems b/c keydown move
12 years ago
Jonathan Frederic
147f35d899
demsemicolons
12 years ago
Jonathan Frederic
a8783c45cb
Add comments
12 years ago
Jonathan Frederic
1b46a777fb
Removed trigger keydown from keyboard.js,
...
also added a bunch of missing semicolons (jshint)
12 years ago
Jonathan Frederic
1f4db77aec
Cleaned up test names and locations.
12 years ago
Jonathan Frederic
0262b724fc
Move validate notebook state into utils
12 years ago
Jonathan Frederic
b9872db82b
HUGE speed improvements to dual mode tests
12 years ago
Jonathan Frederic
a7dcdddd54
Fixed problem with split tests,
...
added new function that sets the codemirror instance cursor coords
12 years ago
Jonathan Frederic
daf40e9ec5
Moved util functions into util.js
12 years ago
Jonathan Frederic
c73bef017d
Added split merge tests
12 years ago
Jonathan Frederic
23ca387dd7
cutcopyandpaste
12 years ago
Jonathan Frederic
6efa0a4dae
Added get_cell_text
12 years ago
Jonathan Frederic
ddc2161817
Added ctrl+(j&k), a, and b tests
12 years ago
Jonathan Frederic
26e3d14f81
Fixed state type for new markdown cell
12 years ago
Jonathan Frederic
1094299934
Added up/down and markdown tests
12 years ago
Jonathan Frederic
13908b60a4
Fixed typo in dd test
12 years ago
Jonathan Frederic
e647e13162
Add dd tests
12 years ago
Jonathan Frederic
4f6884f985
Add test for cell type modifier keyboard shortcuts
12 years ago
Jonathan Frederic
55773dd95a
Made *+enter tests more complicated.
12 years ago
Jonathan Frederic
9bd0ac19bf
sep. fucntions to move to util.js
12 years ago
Jonathan Frederic
2b800d3360
Add '_only' to only cell methods
12 years ago
Jonathan Frederic
241b62a37a
Move code into is_cell_editor_focused
12 years ago
Jonathan Frederic
86fef90a8c
Make a few more methods public,
...
in preparation to move them into the base utils.js
12 years ago
Jonathan Frederic
c43044d514
s/_is_cell_on/is_cell_on
12 years ago
Jonathan Frederic
6a834223da
s/_is_cell_editor_focused/is_cell_editor_focused
12 years ago
Jonathan Frederic
45bbcc949e
s/key_press/trigger_keydown
12 years ago
Jonathan Frederic
0f5f3a27f5
Add dual mode JS tests
12 years ago
Jonathan Frederic
dc6355ffb7
Prevent tab key from bubbling when the completer is open
12 years ago
Min RK
0493027d7e
Merge pull request #5403 from minrk/alt-shortcut-bad
...
remove alt-- shortcut
12 years ago
Brian E. Granger
202966ba58
Merge pull request #5389 from minrk/log-files-redirect
...
better log message in deprecated files/ redirect
12 years ago
Brian E. Granger
c857f9f6fa
Merge pull request #5390 from minrk/finish-5333
...
finish PR #5333
12 years ago
MinRK
3e67d961c9
only check listdir on dirs
...
is_hidden is called with files, not just dirs
12 years ago
MinRK
c051e870e1
better log message in deprecated files/ redirect
12 years ago
Brian E. Granger
e51030ea5f
Merge pull request #5368 from jdfreder/specifity
...
Flexbox classes specificity fixes
12 years ago
MinRK
2041dc6563
widen modal dialogs on wide displays
...
needed for quick help layout with multiple meta keys
12 years ago
MinRK
840364ff71
use box-flex to layout quickhelp
12 years ago
MinRK
19c64f4b59
remove alt-- shortcut
...
replace with ctrl-shift--
alt is not safe for defaults
12 years ago
Brian E. Granger
9f1b26d860
Merge pull request #5331 from minrk/raw-input-css
...
fix raw_input CSS
12 years ago
Min RK
0ae0216b12
Merge pull request #5049 from ivanov/quickhelp-update
...
update quickhelp on adding and removing shortcuts
12 years ago
Paul Ivanov
35c861f583
fix MacOS specific shortcuts, thanks @minrk
12 years ago
Brian E. Granger
bfdbdd456c
Merge pull request #5391 from jdfreder/netscape-keyboard
...
Fix Gecko (Netscape) keyboard handling
12 years ago
Paul Ivanov
c28096f0c5
prevent saving of partially loaded notebooks
...
closes #5363
12 years ago
Paul Ivanov
54d9eb4358
really fix the '-' key shortcuts now
12 years ago
Paul Ivanov
77bf4a72dd
better handling of minus
12 years ago
Jonathan Frederic
a08fbff5d9
Fix Gecko (Netscape) keyboard handling
12 years ago
Paul Ivanov
21ebaf2e32
handle keyboard shortcuts ending with '-'
12 years ago
Paul Ivanov
4cf1717980
use - for shortcut separators
12 years ago
Thomas Kluyver
8e1146c6d1
Merge pull request #5357 from minrk/smb-fails
...
catch exception in copystat
12 years ago
Paul Ivanov
083f631cde
wider style for keyboard shortcuts
12 years ago
MinRK
62061f0294
only catch errors in copystat
12 years ago
Min RK
d88b2ccc4a
Merge pull request #5310 from ivanov/fix-5238
...
remove raw cell placeholder on focus, closes #5238
12 years ago
Min RK
5c5139b65d
Merge pull request #5332 from ivanov/semantic-icons
...
semantic names for indicator icons
12 years ago
Paul Ivanov
c54ced12e5
Merge pull request #5360 from minrk/monospace
...
remove some redundant font-family: monospace
12 years ago
Paul Ivanov
2e4036fd4f
raw cell placeholder text as one line
12 years ago
Paul Ivanov
37852baa6d
render on focus out, always pad raw cells
12 years ago
Paul Ivanov
8a623dbcc4
fab css
12 years ago
Paul Ivanov
955d239d07
rename css class names to be consistent with current style
12 years ago
Paul Ivanov
a0a17fa04a
capitalize keyboard shortcuts in the tour
12 years ago
Paul Ivanov
00603a11f6
remove stale modal dialog from the DOM
12 years ago
Fernando Perez
5f086fded2
Merge pull request #5372 from minrk/no-close-strings
...
Don't autoclose strings, because CodeMirror's behavior makes it confusing and awkward to type triple-quoted strings (and these are very common in Python).
An issue about this was filed in CodeMirror itself: https://github.com/marijnh/CodeMirror/issues/2385
12 years ago
MinRK
3c1fe84f52
Don't autoclose strings
...
CodeMirror doesn't do the right thing with triple-quoted strings,
so don't let it try.
12 years ago
Paul Ivanov
597a5cb741
don't color code in crimson
...
do alliterate, aforementioned color alternative alias is amaranth
12 years ago
Paul Ivanov
b9ef37ac26
semicolon fixes buttress half of my js commits
12 years ago
Min RK
e64c2cb5d8
Merge pull request #5296 from ivanov/more-shortcuts
...
unify keyboard shortcut and codemirror interaction
12 years ago
Paul Ivanov
0c366861c5
brief key event desription
12 years ago
Paul Ivanov
6d6e0fb007
fix up and down arrows in the top and bottom cells
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
8f17444c27
go to appropriate line when coming from another cell
...
Sets the cursor on the last line of the cell when moved up from the top
of the cell below, and sets the cursors to the first line when moving
down from the bottom of a last line.
Here, we retain the character that the cursor was on, so that users
wishing to have up-down functionality like one document can still use
this shortcut handler and simple adjust the at_top and at_bottom methods
12 years ago
Jonathan Frederic
2dd8757da7
Fab CSS
12 years ago
Jonathan Frederic
77904a044c
Re-added already existing base for less backwards compatability.
12 years ago
Jonathan Frederic
0020b9f896
Fix specifity of flex modifier classes
12 years ago
MinRK
8e5937e993
remove some redundant font-family: monospace
...
`pre`, `code` tags already set the font-family in these contexts.
Setting it again in the surrounding context is redundant,
and causes inconsistency when embedding notebooks in HTML
(e.g. nbviewer).
12 years ago
Jonathan Frederic
d37ffe91b7
Fix status ind. icon bug
12 years ago
MinRK
caee63f413
fallback on copy, copyfile if copy2 fails
...
in notebook manager
12 years ago
MinRK
89faa5f340
simplify raw_input css
...
for once, vertical-align: baseline is the right choice
12 years ago
MinRK
065a6eaa34
fix ambiguous raw_input classes
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
f68dcc3e57
it's only half true that I'm anal about semicolons
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
443083c1fd
Added some comments
12 years ago
Paul Ivanov
1dc113a9cb
closes #5336
12 years ago
cgohlke
74be15ec19
Fix filenbmanager.list_dirs fails for Windows user profile directory
12 years ago
Paul Ivanov
4142911ac7
better fix for starting with Command Mode icon
12 years ago
Paul Ivanov
12139b4d6e
ensure ipython-command-mode icon displayed on load
12 years ago
Paul Ivanov
f0ae836f5f
semantic names for kernel status indicator
12 years ago
Paul Ivanov
f5a02a02dd
semantic names for indicator icons
...
For all of the discussion that we had about what kind of icons should
and should not be used to indicate what mode the notebook is in, we
never went through to make it possible to override it.
With this change, it is now possible to override what icons are
displayed for Command and Edit Modes.
For example, @minrk liked the fighter-jet icon for Command Mode, so he
can put this in his custom.css
.ipython-command-mode:before {
content: "\f0fb";
}
12 years ago
MinRK
084aba793f
fix raw_input CSS
...
I had to express padding in px, not em for consistent appearance.
I'm not sure why.
12 years ago
Paul Ivanov
4dd009f198
DRY: style in one place, removed code duplication
12 years ago
Jonathan Frederic
7762cb0ab3
Fixed a small bug/typo
12 years ago
Jonathan Frederic
e61b6aef47
Add logic to close tt when cell is unselected
12 years ago
MinRK
f9758dd453
add NotebookNotary to NotebookApp's class list
...
adds it to help output and config files
12 years ago
Brian E. Granger
3eb654bd86
Merge pull request #5295 from minrk/no-append-prototype
...
OutputArea.append_type functions are not prototype methods
12 years ago
Paul Ivanov
b08665563d
fix capitalization of mode-switching keys
12 years ago
MinRK
a24595d16b
call append_text from append_map
12 years ago
Paul Ivanov
01c9be84d0
prettify combo keyboard shortcuts
12 years ago
Paul Ivanov
1c213bc615
first pass at capitalizing keyboard shortcuts
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
MinRK
abe2dce926
back to dev
12 years ago
Paul Ivanov
1c23dee141
remove recreation of QuickHelp
12 years ago
Paul Ivanov
8bf4ffa2ca
rebuild.QuickHelp event sets the dirty bit
...
QuickHelp is rebuilt on show if the dirty bit was set.
12 years ago
Paul Ivanov
cdb7967cc2
removing keyboard shortcuts should also update help
12 years ago
Paul Ivanov
4a287569fc
update notebook quickhelp on new shortcuts
12 years ago
Paul Ivanov
cd38181438
remove raw cell placeholder on focus, closes #5238
12 years ago
MinRK
4d1f9b21c4
append functions are not prototype methods
12 years ago
Paul Ivanov
54409a196d
dem semicolons
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
Paul Ivanov
71d4c427c9
refactor to improve cell switching in edit mode
...
This code was repeated in both CodeCell and TextCell, both of which are
extensions of Cell, so this just unifies the logic in Cell.
TextCell had logic here to check if the cell was rendered or not, but I
don't believe it is possible to end up triggering such a code path.
(Should that be required, I can always just add back these methods to
TextCell, performing the .rendered==True check, and calling the Cell
prior to this, code mirror at_top would only return true on if the
cursor was at the first character of the top line. Now, pressing up
arrow on any character on the top line will take you to the cell above.
The same applies for the bottom line. Pressing down arrow would only go
to the next cell if the cursor was at a location *after* the last
character (something that is only possible to achieve in vim mode if the
last line is empty, for example). Now, down arrow on any character of
the last line will go to the next cell.
12 years ago
Paul Ivanov
8889a7581c
start better keyboard handling
12 years ago
MinRK
3face719e8
setup jsversion
12 years ago
Brian E. Granger
30c500bfa9
Merge pull request #5292 from jdfreder/shift-enter-scroll
...
focus next cell on shift+enter
12 years ago
Jonathan Frederic
da334e782e
focus next cell on shift+enter
12 years ago
Min RK
0a37d7bfc5
Merge pull request #5232 from jdfreder/nbc_incono
...
Make nbconvert html full output like notebook's html.
12 years ago
Brian E. Granger
05e6fbade4
Merge pull request #5288 from minrk/start-idle
...
Correct initial state of kernel status indicator
12 years ago
Thomas Kluyver
80af3b4cfb
Merge pull request #4802 from ivanov/ui-docs
...
Tour of the notebook UI (was UI elements inline with highlighting)
12 years ago
MinRK
e901c9be33
Correct initial state of kernel status indicator
...
- start as busy, since we don't know
- send a kernel_info request once connections are established
- set idle on reply to the to the kernel_info request
12 years ago
Brian E. Granger
f62ce75a62
Lots of CSS tweaks to get nbconvert output looking right.
12 years ago
Jonathan Frederic
9c5bca99e2
addClass instead of adding extra_class arg everywhere
12 years ago
Jonathan Frederic
6169acfc6d
Fixed rebase issues
12 years ago
Jonathan Frederic
8b3c356c8d
Add extra_class arg to the rest of the append methods,
...
use new extra_arg to add output_pyout class
12 years ago
Jonathan Frederic
b92ede2800
Added output_pyerr to python error output
12 years ago
Brian E. Granger
1407b4347e
Merge pull request #5268 from ellisonbg/cmd-mode
...
Refactoring Notebook.command_mode
12 years ago
Paul Ivanov
610e66615e
added a note to what's new
12 years ago
Paul Ivanov
7974e32150
oops, <tt> went the way of the dodo, using <code>
12 years ago
Paul Ivanov
06e5858ee2
lower case names for keys
12 years ago
Min RK
aaedd1a311
Merge pull request #5283 from takluyver/widget-del
...
Remove Widget.closed attribute
12 years ago
Thomas Kluyver
95dc697e3b
Remove Widget.closed attribute
...
Closes gh-5282
12 years ago
MinRK
7d87978a66
fix a typo introduced by a rebased PR
...
caused heading cells to appear in both rendered and unrendered state
12 years ago
Jonathan Frederic
de9b5b907e
Fab CSS
12 years ago
juhasch
72864cc83c
append Firefox overflow-x fix
12 years ago
Paul Ivanov
fdca0762a4
tidy up capitalization
12 years ago
Paul Ivanov
0ba3d22501
proper styling for the tour
12 years ago
Paul Ivanov
e10afab397
rewording according to feedback in #4802
12 years ago
Paul Ivanov
490e4d1e42
horizontally center menubar popup
12 years ago
Paul Ivanov
4371ebf625
fix vertical position of command mode tooltip
12 years ago
MinRK
3588fe40a9
Merge Security Pull Request: google-caja
...
Adds HTML sanitization.
The basics:
- untrusted HTML is always sanitized, with no warning
(there is console logging for changes made)
- markdown is always treated as untrusted
- no warnings for simply excluded output (e.g. Javascript)
- CSS tags and attributes are always stripped from untrusted HTML
- never check whether HTML is "safe," only sanitize
- add 'Trust notebook' to File menu
12 years ago
MinRK
54e1558c16
make trust notebook dialog a single paragraph
12 years ago
MinRK
8cd744db85
mention that Trust triggers reload
12 years ago
MinRK
9396619f9d
security.js docstrings
12 years ago
Brian E. Granger
4e0a2ee476
Make sure we are in command mode before we select a new cell.
12 years ago
Brian E. Granger
8d38e042df
Merge pull request #5158 from ivanov/fix-5157
...
log refusal to serve hidden directories
12 years ago
MinRK
d8f2e320f2
trust method docstrings
12 years ago
MinRK
d5b0026cf1
trust via mark cells and save, rather than trust API request
12 years ago
MinRK
e7f3c05d28
remove unused get_attr_names
12 years ago
MinRK
6792d38215
log excluded untrusted output
12 years ago
MinRK
aaefc5f296
remove warning for stripped output
12 years ago
MinRK
b5c8a51331
disable trust notebook menu item on trusted notebooks
12 years ago
MinRK
c9c23cd71c
cleanup test_nbmanager
...
use class setUp / teardown instead of the same context manager in every test
12 years ago
MinRK
1ae689f30c
Add Trust Notebook to File menu
12 years ago
MinRK
46665483ed
remove struct-returning sanitize
...
only keep str-str sanitization
12 years ago
MinRK
d4780c2cfc
remove security.is_safe
12 years ago