mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-27 03:15:50 +03:00
[GH-ISSUE #183] Document type detection #127
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nk932714 on GitHub (May 30, 2019).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/183
It would be awesome if file manager automatically recognize the document type.

Example :- if we are editing
phpfile then document type should automatically pick php template. But it is picking only JavaScript. we have to manually change this to php.However is there any way to set default language to php from javaScript. because I'm working only on Php files. So every time after i click save i have to choose php template. its annoying.
@prasathmani commented on GitHub (May 30, 2019):
e.g.
editor.getSession().setMode( {path:"ace/mode/php", inline:true} );note : dropdown selection will not change
@nk932714 commented on GitHub (May 31, 2019):
Thanks buddy for your quick reply. It helps.
But the problem is that now I'm unable to switch to JavaScript. Anyways i don't need JavaScript.
eg: I'm editing
http://xxxx.xxx/tinyfilemanager.php?p=&edit=tinyfilemanager.phphere editing edit=tinyfilemanager.php then it should choose mode automatically. i.e php in this case. and if i'm editinghttp://xxxx.xxx/tinyfilemanager.php?p=&edit=translation.jsonthen it should choose mode to Json.I believe a simple this code would be ok for this
@prasathmani commented on GitHub (May 31, 2019):
In next release I will add this feature
@nk932714 commented on GitHub (Jun 3, 2019):
Thanks @prasathmani
@prasathmani commented on GitHub (Jul 23, 2019):
@nk932714 , your suggestion added.
@nk932714 commented on GitHub (Jul 24, 2019):
Thanks a lot @prasathmani