Coder Social home page Coder Social logo

a's People

Contributors

as avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

a's Issues

a: too many "New" functions

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 {

a: tag: files are not identified in a deterministic manner

These cases should be handled without ambiguity

  • The tag name
  • full path (relative and absolute) path
  • window name with a non-existent file
  • trailing slash file
  • mixed separator file
  • uri/http/upspin
  • anywhere where the intended CWD is different than the starting CWD of the process

a: frame: elastic tabstops

Elastic tabstops look great on text, however, they will make problems for binary data. The options:

Implementation

  • Do nothing
  • Add Elastic, Keep Fixed
  • Add Elastic, Remove Fixed

Runtime

  • Scan files and file extensions, use elastic on source code
  • Button in tag to pick Tab or Elastic

Constant overflows int

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

a: Dump & Load

Dump: Save state of the editor to a file
Load: Load the state of the editor from a file

a: Edit: remove "MustCompile" call and replace with proper error handling

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:])

a: win: scroll+sweep is O(2n)

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.