Giter VIP home page Giter VIP logo

text-app's Introduction

Text Chrome App

Just a text editor for Chrome OS and Chrome. Install via the Chrome Web Store: stable version or canary version.

Getting the code

You can download the whole source code as one archive, or get it from the repository using git:

git clone --recursive git://github.com/GoogleChromeLabs/text-app.git

Prebuild CodeMirror

Do this before running the development version or building the package. You'll need Node.js.

cd third_party/codemirror.next
npm install
npm run rebuild

If you make changes to bundle.ts or the dependencies in package.json in third_party/codemirror.next/, you must rebuild CodeMirror: npm run rebuild.

Running the development version

  • Check Developer Mode in chrome://extensions
  • Click "Load unpacked extension..." in chrome://extensions and select the text-app directory.

Building the package

You do not have to build the app to install it in Chrome. Building will just extract all the required files and minify the JS code.

Building script requires Python3 and will use online Closure Compiler. Just run

python3 build.py

and the package will be written to text-app/build/ directory in zipped and unzipped formats (canary version). To build the stable version run the build script with the flag -s.

text-app's People

Contributors

adanilo avatar beaufortfrancois avatar bugsnash avatar callistusystan avatar dandalton1 avatar eterevsky avatar igorminar avatar ivonunes avatar joemarini avatar jpalmer avatar jyaif avatar larkinzero avatar maks avatar mangini avatar marcinwyszynski avatar matthewp avatar mlcui-corp avatar mystael avatar processnotproduct avatar rottina avatar sheepmaster avatar tim-loh avatar vapier avatar vojtajina avatar zainafzal08 avatar zufengw 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  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

text-app's Issues

Text wrap on by default

  1. Open Manifest file in TextDrive 0.1.20.
  2. The text does not wrap by default.

I know we're adding the knob to control text wrap in Settings, but can we switch the default setting to text wrap = on this for v1?

Add keyboard shortcuts.

  • CTRL+TAB = rotate through open docs
  • CTRL+N = new file
  • CTRL+O = open dialog
  • CTRL+S = save
  • CTRL+SHIFT+S = save as
  • CTRL+F = open search
  • CTRL+Z = undo
  • CTRL+Y = redo
  • CTRL+C = copy
  • CTRL+X = cut
  • CTRL+V = paste
  • CTRL+A = select all
  • CTRL+space = open/ close sidebar
  • CTRL++ = increase font size
  • CTRL+- = decrease font size

Correct behavior when closing search bar.

When a Search is active and the user presses Esc it should dismiss the search (with text selection set to the highlighted matched text)

Also when Search is active clicking in the body of the doc (or tabbing to it) should dismiss the search.

Add an X to clear the search bar.

Expand window, see vertical line

  1. Install 0.1.20.
  2. Drag window right to enlarge it.
  3. A vertical line is drawn where the right edge of the window boundary used to be - see attached.
    Screen Shot 2012-12-10 at 10 51 25 PM

Save session upon closing the editor window

Save the editing state of all the opened files, so that when Text.app is reopened, all the previous tabs are loaded, with the same cursor position and the unsaved changes.

Create an ace theme with all the CSS tweaks.

From Ken:

  • tweaks to the line number gutter:
    • remove padding-left and padding-right from .ace_gutter-cell
    • remove padding-right from .ace_folding-enabled > .ace_gutter-cell
    • add text-align: center to .ace_gutter-cell
    • change .ace-tm .ace-gutter color to #999
  • tweaks to the active line:
    • change background-color to #e0e0e0 in .ace-tm .ace_gutter-active-line
    • change background to rgba(0,0,0,0.03) in .ace-tm .ace_marker-layer .ace_active-line

Hook Text Drive up to chrome.fileBrowserHandler

This will provide integration with files.app.

Documentation: http://developer.chrome.com/extensions/fileBrowserHandler.html

We should probably select the same file formats (at a minimum) that Code Viewer is using:

"file_filters": [
"filesystem:.asp",
"filesystem:
.aspx",
"filesystem:.abc",
"filesystem:
.acgi",
"filesystem:.aip",
"filesystem:
.asm",
"filesystem:.c",
"filesystem:
.c++",
"filesystem:.cc",
"filesystem:
.clj",
"filesystem:.com",
"filesystem:
.coffee",
"filesystem:.conf",
"filesystem:
.cpp",
"filesystem:.cs",
"filesystem:
.csh",
"filesystem:.css",
"filesystem:
.csv",
"filesystem:.cxx",
"filesystem:
.def",
"filesystem:.diff",
"filesystem:
.el",
"filesystem:.ejs",
"filesystem:
.etx",
"filesystem:.f",
"filesystem:
.f77",
"filesystem:.f90",
"filesystem:
.flx",
"filesystem:.for",
"filesystem:
.g",
"filesystem:.gemspec",
"filesystem:
.go",
"filesystem:.groovy",
"filesystem:
.h",
"filesystem:.hh",
"filesystem:
.hlb",
"filesystem:.hpp",
"filesystem:
.hs",
"filesystem:.htc",
"filesystem:
.htm",
"filesystem:.html",
"filesystem:
.htmls",
"filesystem:.htt",
"filesystem:
.htx",
"filesystem:.ics",
"filesystem:
.idc",
"filesystem:.ifb",
"filesystem:
.jav",
"filesystem:.java",
"filesystem:
.js",
"filesystem:.json",
"filesystem:
.jsp",
"filesystem:.ksh",
"filesystem:
.list",
"filesystem:.log",
"filesystem:
.lsp",
"filesystem:.lst",
"filesystem:
.lsx",
"filesystem:.lua",
"filesystem:
.m",
"filesystem:.man",
"filesystem:
.manifest",
"filesystem:.mar",
"filesystem:
.mcf",
"filesystem:.mdoc",
"filesystem:
.me",
"filesystem:.ms",
"filesystem:
.p",
"filesystem:.pas",
"filesystem:
.patch",
"filesystem:.pl",
"filesystem:
.pm",
"filesystem:.pod",
"filesystem:
.py",
"filesystem:.rake",
"filesystem:
.rb",
"filesystem:.rexx",
"filesystem:
.roff",
"filesystem:.rst",
"filesystem:
.rt",
"filesystem:.rtf",
"filesystem:
.rtx",
"filesystem:.ru",
"filesystem:
.s",
"filesystem:.scm",
"filesystem:
.sdml",
"filesystem:.sgm",
"filesystem:
.sgml",
"filesystem:.sh",
"filesystem:
.shtml",
"filesystem:.spc",
"filesystem:
.ssi",
"filesystem:.st",
"filesystem:
.t",
"filesystem:.talk",
"filesystem:
.tcl",
"filesystem:.tcsh",
"filesystem:
.text",
"filesystem:.tr",
"filesystem:
.tsv",
"filesystem:.txt",
"filesystem:
.uil",
"filesystem:.uni",
"filesystem:
.unis",
"filesystem:.uri",
"filesystem:
.uris",
"filesystem:.uu",
"filesystem:
.uue",
"filesystem:.vcf",
"filesystem:
.vcs",
"filesystem:.wml",
"filesystem:
.wmls",
"filesystem:.wsc",
"filesystem:
.xml",
"filesystem:.yaml",
"filesystem:
.yml",
"filesystem:*.zsh"
]

On Linux, when drag over menu items, cursor should not change

Right now even though there is

#sidebar *:active {
  cursor: default;
}

rule in CSS, the cursor changes to text when dragging over all the text elements in sidebar. On ChromeOS the cursor is default.

Investigate the problem and probably file a bug to Chromium.

Properly minify the JS code.

Currently Ace and jQuery are used pre-minified, and the app code is minified by Closure Compiler only in simple mode. What we want is to compile all the JS code together with all the optimizations. (Evidently, it's not that straightforward.)

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.