Skip to content

Commit

Permalink
add fast scroller to file explorer
Browse files Browse the repository at this point in the history
add recent path list to file explorer
add share menu
fix can't write /etc/* files etc
fix some crash
refactor editor core (thanks: ace editor)
use first line as new file name
add smali syntax highlight
add copy path function
fix can't save file
  • Loading branch information
jecelyin committed Aug 23, 2017
2 parents 8be47dd + 808050a commit 125df6f
Show file tree
Hide file tree
Showing 1,872 changed files with 375,050 additions and 42,281 deletions.
4 changes: 2 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
## 920 Text Editor
**920 Text Editor is a Free, Open Source and no Ad software for android**

### [Donate 920 Text Editor](https://jecelyin.github.io/donate/?project=920%20Text%20Editor)


![Screenshot1](https://github.com/jecelyin/920-text-editor-v2/blob/master/ui/preview.png?raw=true)

### Features:
Expand Down Expand Up @@ -68,4 +66,7 @@

You can download from:
* [https://play.google.com/store/apps/details?id=com.jecelyin.editor.v2](https://play.google.com/store/apps/details?id=com.jecelyin.editor.v2)
* [https://github.com/jecelyin/920-text-editor-v2/releases](https://github.com/jecelyin/920-text-editor-v2/releases)
* [https://github.com/jecelyin/920-text-editor-v2/releases](https://github.com/jecelyin/920-text-editor-v2/releases)


### [Donate 920 Text Editor](https://jecelyin.github.io/donate/?project=920%20Text%20Editor)
87 changes: 49 additions & 38 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
复制路径功能
4.4关掉Tab后代码还在
清空剪贴板功能
-不换行时,向右拖会跳回
-add fast scroller to explorer

监控文件改变
-new file can't save
-勾选了“记住最后打开的文件”后,下次启动软件时,打开的不是最后打开的那个文件

check upgrade crash on 4.4
-add cancel exit button on exit app
-----
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 872622740 byte allocation with 16777216 free bytes and 505MB until OOM
-Caused by: java.lang.OutOfMemoryError: Failed to allocate a 872622740 byte allocation with 16777216 free bytes and 505MB until OOM
at com.jecelyin.editor.v2.io.CharArrayBuffer.(CharArrayBuffer.java:15)
at com.jecelyin.editor.v2.io.FileReader.read(FileReader.java:67)
-----
Expand All @@ -21,56 +18,70 @@ toolbar按钮调整
但是,使用“文件夹查找”功能时,查询结果条目较多时,似乎无法全部显示。比如我用PC
版的emeditor可以从某文件夹搜到10个结果,920却只显示3个结果,特别是正则表达式稍复杂时这一现象更明显。简单正则表达式则可以显示更多结果。

-另外,用“文件夹查找”多个文件时,从列表的查询结果点击某项目后,不能准确定位到查询结果的位置,总会错几十行。

-“文件夹查找”是,查找结果不能高亮显示。
------
正则表达式搜索暂时没有发现问题,但是在替换的时候发现,像/n,/r这类的替换是行不通的(比如想将zip替换成zip/n从而达到在zip后面加上换行符的目的)。想请教下,如果想在替换的结果中加入换行符该如何实现呢?

-dark theme 设置菜单颜色不一致
-正则表达式搜索暂时没有发现问题,但是在替换的时候发现,像/n,/r这类的替换是行不通的(比如想将zip替换成zip/n从而达到在zip后面加上换行符的目的)。想请教下,如果想在替换的结果中加入换行符该如何实现呢?

sl4a的打开选择920报错

-加上个关闭左右滑出菜单的选项,这样用户可以进行点击使用

bottom symbol bar visible on activity recreate

启动时转太久了
-启动时转太久了

using the tab button on hackers keyboard instead of doing the indent whitespace it changes between the menus in the app which leaves me forced to add spaces to a file that previously only had tabs.

-每次启动后,下面的工具条仍然存在,虽然是只读模式
-只读必须重启
-Unfortunately it doesn't appear to want to write to the / folder even though root is enabled.
-The file I tried to save was in /system/etc/

-没有全部替换功能

-支持autohotkey语法高亮
Sometimes I've noticed that if the save button isn't active, rotating from portrait to landscape or vice versa will make it active.

using the tab button on hackers keyboard instead of doing the indent whitespace it changes between the menus in the app which leaves me forced to add spaces to a file that previously only had tabs.
Replace feature does NOT work - you enter what to find and with what to replace, but it only finds the word - no way to replace

-When word wrap is disabled text will render on top of the line numbers.
-单文件中使用搜索功能时,查找结果同样不能自动出现,总是要把该页文字往上移两行才能看到高亮显示的查找结果
-查找框中输入的字符串不能保留,这在多次搜索同一字符串时很不方便,只能多次重复输入。

-It would be good to have something to mark unsaved files in the tab sidebar.
-make it possible to hide top menu bar and bottom special characters bar

-remove highlight on find CAB destroy

Unfortunately it doesn't appear to want to write to the / folder even though root is enabled.
The file I tried to save was in /system/etc/

Tag: JecLog
Msg: /system/etc/.920bak.media_profiles.xml: open failed: EROFS (Read-only file system)
Stacktrace:
java.io.FileNotFoundException: /system/etc/.920bak.media_profiles.xml: open failed: EROFS (Read-only file system)
at libcore.io.IoBridge.open(IoBridge.java:452)
at java.io.FileOutputStream.(FileOutputStream.java:87)
at com.jecelyin.common.utils.IOUtils.copyFile(IOUtils.java:160)
at com.jecelyin.editor.v2.io.FileWriter.doInBackground(FileWriter.java:76)
at com.jecelyin.editor.v2.io.FileWriter.doInBackground(FileWriter.java:37)
-使用查找功能后,怎么查找另外一个关键词时,上一个关键词还是高亮着

-首行自动确定为标题。现在每次都得输入需要保存的标题。

Sometimes I've noticed that if the save button isn't active, rotating from portrait to landscape or vice versa will make it active.
-分享到为知笔记,有道笔记...

Replace feature does NOT work - you enter what to find and with what to replace, but it only finds the word - no way to replace
-编辑文档过程中,软件切换到后台,等到再切换回来的时候,代码高亮没有了,是怎么回事儿?



I opened three files and I edit last one.After I save it,I will exit but app is error.The second file become blank and app ask me whether to save it
打开多个文件时,文件未进行任何修改,点两次返回键退出时提示保存文件,如果点 是 那么不崩溃,但是保存的那个文件内容会丢失,如果点否,那么软件就会崩溃,手机是华为荣耀畅玩6


java.lang.IndexOutOfBoundsException: Invalid index 2, size is 2
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
at java.util.ArrayList.get(ArrayList.java:308)
at com.jecelyin.android.file_explorer.adapter.PathButtonAdapter.getItem(PathButtonAdapter.java:43)
at com.jecelyin.android.file_explorer.FileListPagerFragment$3.onItemClick(FileListPagerFragment.java:123)
at com.jecelyin.android.file_explorer.adapter.PathButtonAdapter$1.onClick(PathButtonAdapter.java:68)


-能不能增加 分享到:功能,
-编辑好的文字想分享到其他程序里,没有分享按钮。


Hi! thank you for great app! it would be nice to have "Word wrap" and "Show line numbers" functions in right-side menu for quick access. thanks! I would like to help in developing additional functionality like: customizable right menu!


-文件管理器添加最近的路径列表


单文件中使用搜索功能时,查找结果同样不能自动出现,总是要把该页文字往上移两行才能看到高亮显示的查找结果
查找框中输入的字符串不能保留,这在多次搜索同一字符串时很不方便,只能多次重复输入。
-可修改查找的cab关键字

make it possible to hide top menu bar and bottom special characters bar
-有root权限
-启用了root设置
-打开 /data/data/appname下文件
-提示: 文件不存在
-java.lang.NullPointerException: Attempt to get length of null array
-at com.jecelyin.android.file_explorer.io.LocalFile.listFiles(LocalFile.java:151)
33 changes: 18 additions & 15 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.application'
//apply plugin: 'blockcanaryex'

Properties properties = new Properties()
properties.load(file('../../keystore/920-text-editor-v2.gradle.properties').newDataInputStream())
Expand All @@ -7,14 +8,14 @@ def KEYSTORE_PASSWORD = properties.getProperty('KEYSTORE_PASSWORD')
def GOOGLE_BILLING_KEY = properties.getProperty('GOOGLE_BILLING_KEY')

android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion

defaultConfig {
applicationId "com.jecelyin.editor.v2"
minSdkVersion 17
targetSdkVersion 23
versionCode 26
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 30
versionName "v2"
buildConfigField "String", "GOOGLE_BILLING_KEY", "\"" + GOOGLE_BILLING_KEY + "\""
}
Expand Down Expand Up @@ -66,13 +67,13 @@ android {
dataBinding {
enabled = true
}

dexOptions {
// preDexLibraries true
// javaMaxHeapSize "2g" // Use gig increments depending on needs
incremental true //增量编译,加快
jumboMode true
}
//
// dexOptions {
//// preDexLibraries true
//// javaMaxHeapSize "2g" // Use gig increments depending on needs
// incremental true //增量编译,加快
// jumboMode true
// }
changeApkName(applicationVariants, defaultConfig)
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
Expand Down Expand Up @@ -124,7 +125,6 @@ dependencies {
compile project(':styles')
//避免AS找不到相关文件(可以编译通过)
compile 'com.android.support:design:23.4.0'
compile 'com.github.afollestad.material-dialogs:commons:0.8.5.8'
compile 'com.rengwuxian.materialedittext:library:2.0.3'

compile 'me.zhanghai.android.materialprogressbar:library:1.1.4'
Expand All @@ -133,7 +133,10 @@ dependencies {
compile 'com.azeesoft.lib.colorpicker:colorpicker:1.0.8@aar'
// compile 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'

debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta2'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta2'
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1'
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
compile 'org.msgpack:msgpack-core:0.8.11'

// debugCompile 'com.letv.sarrsdesktop:BlockCanaryExJRT:0.9.5.2'
// releaseCompile 'com.letv.sarrsdesktop:BlockCanaryExJRTNoOp:0.9.5.2'
}
7 changes: 3 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
-->
<activity
android:name=".ui.MainActivity"
android:configChanges="orientation|keyboardHidden"
android:launchMode="singleTask" >
android:launchMode="singleTask"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|layoutDirection">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.MONKEY" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
Expand Down Expand Up @@ -101,7 +101,6 @@
<activity android:name=".ui.AboutActivity" />
<activity android:name=".ui.BrowserActivity" />
<activity android:name=".ui.FeedbackActivity" />
<activity android:name=".ui.SpeedActivity" />

</application>

Expand Down
Loading

0 comments on commit 125df6f

Please sign in to comment.