GithubHelp home page GithubHelp logo

tigerninjas / editor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from billthefarmer/editor

0.0 0.0 0.0 2.46 MB

Android simple text editor

Home Page: https://billthefarmer.github.io/editor

License: GNU General Public License v3.0

Java 100.00%

editor's Introduction

Logo Editor Build Status Release Available on F-Droid

Android simple generic text editor. The app is available from F-Droid and here

Editor Editor

Editor

Editor

This is a fairly simple generic text editor which may be used standalone or to show or edit any sort of text file from another app. If you select a text file in a file manager or similar app you will be offered the option of using this editor along with whatever other apps you have installed that can show or edit a text file. Files will initially be opened read only, long touch on the display or touch the edit item in the toolbar to enable editing.

There are five toolbar items which may appear:

  • Edit – Edit the current read only file
  • View – View the current file read only
  • Save – Save the current file if modified
  • New – Start a new empty file
  • Open – Open a text file using a chooser

And on the menu:

  • Open recent – Pop up a list of recent files
    • Clear list – Clear list of recent files
  • Search – Interactive search of text using a regular expression
  • Find all – Find all recent files containing search text
  • Save as – Save the current file with a new name
  • View markdown – View markdown in browser or html viewer
  • View files – Open files read only for viewing
  • Auto save – Save the current file on app pause
  • Word wrap – Limit text width to screen width and word wrap
  • Suggestions – Text input and spelling suggestions
  • Highlight syntax – Highlight programming language syntax
  • Theme – Choose theme
    • Light
    • Dark
    • Retro
  • Text size – Choose text size
    • Small
    • Medium
    • Large
  • Typeface – Choose typeface
    • Monospace
    • Proportional
  • About – Show version, copyright and licence

Edit

Edit the current read only text.

View

View the current file read only.

Save

Save the current file if modified.

New

Start a new empty file. Use the Save as item to save the new file.

Open

Choose a file to open from the chooser dialog that pops up. The parent folder will be the first in the list. See File Chooser. The file will initially be read-only. Touch the Edit toolbar item to enable editing.

Open recent

Choose a file from the list that pops up. As above the file will initially be read only. The last entry, Clear list, will clear the list.

Save as

Enter a new file name in the dialog that pops up. Absolute names starting with a slash '/' will be saved in that exact path if possible. Names without a starting slash will be saved relative to the main public folder, /sdcard/, or /storage/emulated/0/.

Search

Enter search text in the field that pops up in the toolbar. The first matching item will be highlighted. Use the search button in the keyboard for find next. The exact regular expression syntax used is in the android documentation for Pattern.

Find all

You may find all recent files that contain the current search text. This menu item will only appear while the search widget is active. A dialog will pop up with a list of matching files. Touch an entry to open that file. You may repeat this or refine the search text to find the desired file.

View markdown

You will be prompted to choose a viewer for an html file containing the encoded markdown from the current open file. If the text contains no markdown the result will be the same text.

Highlight syntax

If the current open file is a C, C++, Objective C, Go, Java, Javascript, Python, Shell script, Swift, CSS, HTML or Markdown file, the keywords, classes comments, strings, etc will be highlighted. See Syntax Highlighting.

Mode line

If a line of text is found within the first or last two or three lines of the file which matches the mode line pattern, the mode of the editor will be changed after the file is loaded. See Mode line.

# ed: [[no]vw] [[no]ww] [[no]sg] [[no]hs] [th:l|d|r] [ts:l|m|s] [tf:m|p]

Extended selection

If the file being edited is not a plain text file, selections created by double tapping or long touching on the text will be extended to enclosing delimiters (brackets, quotes) on the same text line.

Unsaved file

If you touch the new, back or open button, and the current file has been modified, you will be prompted whether you want to save it, else the editor will just exit or open a file chooser. The current file may be saved on app pause using the menu option. The scroll position and name will be remembered for the last 10 files opened.

Changed file

If a file has changed in storage while it was open in the editor, if you attempt to save it, or the app is resumed, you will be prompted whether to overwrite or reload the file.

Default file

If there is no open file any text entered will by default be saved in Documents/Editor.txt. This file will be loaded on start if it exists. Use the Save as menu item to save it elsewhere.

Shared file

Text files opened or shared by another app may be viewed and edited. Some apps may share files or text using a content URI that is not resolvable to a path to a file in storage. In that case the editor will read the file into the default file. The default file in storage will not be overwritten unless the file is saved. Use the Save as menu item to save the file elsewhere.

editor's People

Contributors

billthefarmer avatar yasarciv avatar ludoux avatar tacothedank avatar milouse avatar evo16 avatar foxneo avatar nikoss avatar jameswestman avatar vistaus avatar cges30901 avatar bboa avatar kenneth-q avatar markus00000 avatar nicqrocks avatar

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.