as / a Goto Github PK
View Code? Open in Web Editor NEWA graphical text editor
License: BSD 3-Clause "New" or "Revised" License
A graphical text editor
License: BSD 3-Clause "New" or "Revised" License
github.com\as\a\col.go:23,24: func NewCol(src screen.Screen, wind screen.Window, ft *font.Font, sp, size image.Point, files ...string) *Col {
github.com\as\a\col.go:57,58: func NewCol2(g *Grid, filenames ...string) (w Plane) {
github.com\as\a\col.go:77,78: func New(co *Col, filename string) (w Plane) {
github.com\as\a\grid.go:15,16: func NewGrid(src screen.Screen, wind screen.Window, ft *font.Font, sp, size image.Point, files ...string) *Grid {
These cases should be handled without ambiguity
Elastic tabstops look great on text, however, they will make problems for binary data. The options:
Implementation
Runtime
origin miscalculation leads to negative slice index
This will have to be fixed in as/cursor
Not sure this is an issue, but I get the following:
> go get -u -t github.com/as/a
# github.com/as/edit
c:\devenv\projects\_go\src\github.com\as\edit\lex.go:33:21: constant 9223372036854775807 overflows int
Reproduction
Edit ,a,bbbb\n,
Edit ,a,cccc\n,
Edit ,a,dddd,
Edit 2d
No Reproduction
Edit ,a,bbbb\n,
Edit ,a,cccc\n,
Edit ,a,dddd\n,
Edit 2d
insane resolution crashes linux clients
Should they be?
Dump: Save state of the editor to a file
Load: Load the state of the editor from a file
Specifically the unix shortcuts that delete a run of characters.
precondition: depends on #7 resolution
main.go:142,143: act.SendFirst(edit.MustCompile(sc.Text()))
main.go:289,290: prog := edit.MustCompile(addr)
main.go:296,297: prog := edit.MustCompile(addr)
main.go:312,313: prog := edit.MustCompile(addr)
main.go:356,357: actTag.Handle(actTag.Body, edit.MustCompile(e.Addr))
main.go:470,471: prog := edit.MustCompile(s[5:])
investigating
Delcol does nothing, or just crashes the process
Edit x,^,i,#,
The traditional method for scroll+sweep is to transpose the background and foreground colors during insertion of new text. This is because the new text is being selected, so there is no need to highlight it again (just insert it with the right color in the first place). Currently, the logic in frame/win doesn't account for that. Text is inserted with the regular text color, and then repainted (which essentially means redrawn). A trivial performance improvement can be ascertained by fixing this.
[123] = mouse buttons
+ -> press
- -> release
Reproduction sequence
1+2+-3+-1-+-
win -> win
tag -> win
col -> ∀ tag ∈ col
grid -> ∀ col ∈ grid
The terminal emulator (i.e., the win
program) is currently not implemented.
1: standard
2: red
3: green
bad clamp value clamps to global buffer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.