Commit Graph

31 Commits

Author SHA1 Message Date
Eli Barzilay
af6be85ff5 Fix lots of indentation mistakes.
(Found by my ayatollah script...)
2013-03-14 10:55:47 -04:00
Robby Findler
635efe78a0 added a keybinding to center a line within its cell in a table 2013-03-11 18:53:40 -05:00
Robby Findler
814b9e490c add a keystroke to widen a rectangle 2013-02-23 20:12:56 -06:00
Robby Findler
2c35a98ad8 Adjust keybinding code to fall back from
get-active-canvas to get-canvas

Unclear if this is a bug in get-active-canvas or not

closes PR 13507
2013-02-09 14:58:21 -06:00
Robby Findler
6c93cfea56 move dir-chars.rkt to unstable/2d to unbreak dependencies 2013-02-07 10:16:10 -06:00
Robby Findler
a0f910c3dc more adjustments to the c:x;r;a keystroke
The goal is to better handle situations like this one:

╔═══╗
║ - ║
╚═══╝

where the hyphen should not change.
2013-01-21 20:25:40 -06:00
Robby Findler
fce4cbad3a loosen slightly the requirements for changing existing chars
in the c:x;r;a keystroke
2013-01-17 15:39:35 -06:00
Burke Fetscher
2f61d04073 ASCII art box - don't search past extra +x space 2013-01-15 21:43:33 -06:00
Burke Fetscher
8562310f38 ACII art boxes keybinding - look a little harder for the box 2013-01-15 16:53:41 -06:00
Robby Findler
1edec6a33e move the ╬ char and friends into a separate file
do not merge to 5.3.2
2013-01-15 09:08:02 -06:00
Robby Findler
6a69da76e2 adjust ascii-box => unicode-box algorithm so that
it only looks left and right at hyphens and only
up and down at pipes, etc. This better handles the
case where you have something like this:

  +--------------+
  | (<= a-x b-y) |
  +--------------+

Before this commit, it would have adjusted the hypens
inside the identifiers
2012-12-24 13:49:32 -06:00
Robby Findler
5a9c5f681b clean up ascii art => unicode a little
adjust the way it changes characters so it
doesn't change them when they are already the right
thing (this means set-modified is not always called
and also improves performance in the case that little
changes in a big diagram)
2012-12-24 12:29:57 -06:00
Robby Findler
042bbbefe7 add an ASCII art rectangle => unicode rectangle keybinding to drracket 2012-12-24 11:38:54 -06:00
Robby Findler
6fff8a3030 make right-clicking on non-text offer copy and cut in the
popup menu

Extends append-editor-operation-menu-items so that when you
pass an editor and a position, it checks to see if that spot
has a non-string% snip and, if so, copies that one position
(or cuts it, depending).

Then, use that extension in DrRacket

closes PR 12791
2012-11-22 17:33:34 -06:00
Eli Barzilay
672910f27b Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".
2012-11-07 11:22:20 -05:00
Robby Findler
0377bda947 make popup menus respond to mouse-up events, not mouse-down ones 2012-11-02 20:32:55 -05:00
Eli Barzilay
f7c67b49a4 Big newline at EOF scan. 2012-02-29 00:28:11 -05:00
Robby Findler
95ac3c86f7 fixed bug in the way aug:keymap extracts the names
now it should return only the canonical names of the keybindings
(instead of potentially returning both the canonical and
non-canonicalized names)
2012-01-08 07:07:56 -06:00
Robby Findler
1c2f9cd721 adjust the handling of the scheme mode keymap so that it can go
before the plain text-mode keymap.

Add a doubleleftclick binding to the scheme mode keymap so that
we can have sexp-sensitive double clicking in the drracket editor
2011-11-29 13:46:23 -06:00
Robby Findler
b726209dc5 fix the interaction between the automatic insertion of matching parens
and the magic fixup of opening parentheses.

This commit moves the automatic insertion of matching parens to the
scheme mode keymap, so it will now take affect in Racket mode editing,
only. Also, Rackety.
2011-11-16 19:36:18 -06:00
Robby Findler
eba9c56d8c adjust the control-s keybinding so that it behaves like the menu shortcut
keep the old keybinding on esc;% (only under linux)
2011-07-25 13:40:15 -04:00
Matthew Flatt
5e0d6e0dee fix void result to match contract
Merge to 5.1.2 if Robby agrees
2011-07-16 14:30:08 -06:00
John Clements
b14ac37d99 added automatic parens preference 2011-07-12 12:23:08 -07:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Robby Findler
1b838cf85a add c:x;t as a keybinding for the latex shortcuts
closes PR 11871
2011-05-10 15:34:47 -05:00
Robby Findler
e6633d2af1 use the new extend-position functionality to adjust the shift-based key bindings implemented in the framework
closes PR 11768
  closes PR 11806
2011-03-25 15:19:55 -05:00
Matthew Flatt
33db7b1229 fix s:home keybinding
Merge to 5.1
2011-02-09 12:43:18 -07:00
Robby Findler
d2cb96bcb3 setup hooks so that the behavior of the home / c:a keybinings delegates to a method to find where to go
then, use that to change how it works for the scheme mode (and also another variation for the REPL to
cope with the prompt)

I spent a while trying to make this work at the keymap% level (ie putting different keybindings for "home"
and "c:a" into different keymaps) but this just turned out to be far too confusing and fragile, so went
with this alternative (one keybinding, but that delegates to an overridable method)

closes PR 11446
2011-01-09 16:22:28 -06:00
Robby Findler
ac8fd51bc4 adjust meta-backspace and meta-delete so that they both delete whole words, with backspace getting rid of the one before the insertion point and delete getting rid of the one after the insertion point 2010-12-10 11:47:05 -06:00
Casey Klein
bd0ebc7511 Adds auto-completion to LaTeX and TeX inspired keybindings 2010-11-02 22:34:05 -05:00
Matthew Flatt
28b4043077 rename all files .ss -> .rkt 2010-04-27 16:50:15 -06:00