Can't set external text editor
Brought to you by:
zc2
Android KitKat
GC 0.53b2 or 0.52.6
I tried to set TurboEditor as external editor both through
sharedcode.turboeditor.activity.SelectFileActivity
both
com.maskyn.fileeditorpro.HomeActivity
Anyway, GC always open file with its internal editor.
I don't think it's a problem of turbo editor, because also if I let External Editor field empty, GC doesn't prompt the editor to use, but open file with its built-in editor again.
Just tried, works fine.
Set the following in the GC setting:
com.maskyn.fileeditor.HomeActivity
On Apr 11, 2015 9:32 AM, "4javier" javiereg4@users.sf.net wrote:
Related
Bugs:
#36Your version of the activity didn't work, but at least gave an output of "Activity not found" in GC.
I looked into the application's manifest and found the last one I tried on my own
com.maskyn.fileeditorpro.HomeActivity
and the strange thing is that now it works. :-/
Since it works, I'm closing the ticket.
Sorry but I have to ask this bug to be re-opened. I reset my phone and now I'm stuck with the same problem. Which GM activity should I filter through logcat to debug the problem?
Last edit: 4javier 2015-04-21
Please note, an external text editor could be used only on the local file system. Even if your current folder shows items through MediaStore or SAF, the external text editor won't have access to the content.
Here's a brief instruction to find and and use an appropriate activity:
Open the applications list in Ghost Commander
Find your text editor. Tap it.
Tap the "Activities" folder
Pick an activity which is not marked as "private", tap it.
Make sure it accepts the android.intent.action.VIEW
Go back, tap on ".."
Tap and hold on the activity until the context menu pops up.
Pick the "Copy name to clipboard"
Go to Preferences(Settings)->Miscellaneous->Custom text editor
Tap and hold on the edit field, until "Paste" button appears. Tap on it.
Tap OK
Thanks for the reply.
I know how to set an activity in GC preference, I did exactly what I did last time. But gc ignore my setting. If I delete the activity for external editor (I leave a blank line, nor TurboEditor nor BuiltinEditor) GC doesn't prompt which editor to use, it just launch the built-in one
"GC doesn't prompt which editor to use, it just launch the built-in one"
That's by design. There is no a feature to prompt which editor to use. The built in one is in use either when an external activity can not be accessed or the file system you trying to load a file from is not local.
Is it local file system in your case?
Tried both with a file under /system/etc (system remounted as root, of course), both with a file under external sdcard.
Since you are trying to edit a system file, you are probably accessing it via the root: mode. Can you see the root: prefix in the panel's title? If that's so, SuperSU gave root access permission to the file manager, but it did not give that to the external text editor. So in root mode only internal editor can be used. Same thing for other not native modes.
So please make sure and confirm, that the mode we are speaking of is the native, i.e. in the file panel's title you see only the path, without any prefixes.
You're right.
Opening the file in sd-storage in local mode instead of root launch turboeditor. Can't you make gc launch an external editor asking for root permission?
In theory, I could copy the file to some temporary location, open it in the editor, and then replace the original file with modified version.
I've created an idea on the voting site, feel free to add your votes.
http://ghostcommander.uservoice.com/forums/161057-ghost-commander-feature-requests/suggestions/7724583-let-external-text-editor-be-used-on-not-the-native