acme: scroll a directory window when navigating if:
- the cursor is on the last line
- the navigation would put the cursor over the tag of the following text
R=rsc
CC=smckean83
https://codereview.appspot.com/15280045
This commit is contained in:
parent
075c3bdc54
commit
5a69e405fc
3 changed files with 29 additions and 4 deletions
13
plumb/basic
13
plumb/basic
|
|
@ -59,9 +59,18 @@ arg isfile $0
|
|||
plumb to openoffice
|
||||
plumb start openoffice $file
|
||||
|
||||
# existing files tagged by line number:columnumber or linenumber.columnumber, go to editor
|
||||
# existing files tagged by line number:columnumber or linenumber.columnumber, twice, go to editor
|
||||
type is text
|
||||
data matches '([.a-zA-Z¡-0-9_/\-]*[a-zA-Z¡-0-9_/\-])'$twocolonaddr'
|
||||
data matches '([.a-zA-Z¡-0-9_/\-]*[a-zA-Z¡-0-9_/\-])':$twocolonaddr,$twocolonaddr
|
||||
arg isfile $1
|
||||
data set $file
|
||||
attr add addr=$2-#1+#$3,$4-#1+#$5
|
||||
plumb to edit
|
||||
plumb client $editor
|
||||
|
||||
# existing files tagged by line number:columnumber or linenumber.columnumber, twice, go to editor
|
||||
type is text
|
||||
data matches '([.a-zA-Z¡-0-9_/\-]*[a-zA-Z¡-0-9_/\-])':$twocolonaddr
|
||||
arg isfile $1
|
||||
data set $file
|
||||
attr add addr=$2-#1+#$3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue