php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #51449 No option to add folder/file in editor UI.
Submitted: 2010-03-31 20:00 UTC Modified: 2010-04-11 22:12 UTC
From: markskilbeck@php.net Assigned: yannick (profile)
Status: Closed Package: Online Doc Editor problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: markskilbeck@php.net
New email:
PHP Version: OS:

 

 [2010-03-31 20:00 UTC] markskilbeck@php.net
Description:
------------
Unfortunately there is no way (that I can see) of to add directories and files to 
en/ tree. It would be hugely helpful if we had this feature.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-31 22:50 UTC] yannick@php.net
After discuss this functionality on IRC, here is what we thinks about :

* Right-click on a folder into "All files" module will display the contextmenu. In this menu, we will see 2 new entries : "Add folder" & "Add new file"

=> A click on "Add folder" will display a basic window allow him to put the name of this new folder. A button "valid" will add it locally & in pendingCommit.
On next commit, it will be added to the repository. We could delete it via the pendingCommit module, with the standard "Remove this change" entry.

=> A click on "Add new file" will display a complex window. In it, we could specify the name of the file and the default content for it. We could propose some default content, taken from /doc-base/RFC/skeletons folders for php project (the folder to search for skeletons will be an entry into the project config file to allow others projects to specify one). On "valid", a new file will be created locally, and an editor will be open with the default content chosen. If the user decide to close the window without save the file, the file will be remove locally. If the user decide to save the file, a new entry will be added into pendingCommit module and we can decide to remove it via the default option as suggested below.

Ok. This is what we have thinking about. Please, feel free to modify it, as I haven't start this development ! ;)
 [2010-03-31 23:01 UTC] philip@php.net
Sounds good. 

And the context window may want to ask for a few basic bits of information like 
"Function Name" because OE can then insert it where it's needed (it's used in 
several places, like for ids).

And somewhere we could mention scripts/docgen because it offers customization, 
and is especially useful when documenting an entire extension. People should be 
well aware of that, instead of adding every single file through OE.
 [2010-03-31 23:26 UTC] yannick@php.net
-Assigned To: +Assigned To: yannick
 [2010-04-07 21:43 UTC] yannick@php.net
Automatic comment from SVN on behalf of yannick
Revision: http://svn.php.net/viewvc/?view=revision&revision=297637
Log: Fix part of new functionality for bug #51449 : Add new folder
 [2010-04-11 22:10 UTC] yannick@php.net
Automatic comment from SVN on behalf of yannick
Revision: http://svn.php.net/viewvc/?view=revision&revision=297844
Log: Fix second part of bug #51449 : Add a new file ; Fix some bug introduice with the first part too. ; Fix locale for all this new functionality
 [2010-04-11 22:12 UTC] yannick@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 07:01:28 2024 UTC