Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
File links in Codesnippets Plugin using File Browser
mariocup:
Hi CB team,
I am using codesnippets plugin and the file browser of (cbiplugin). As it is to easy navigate within the filesystem with the file explorer it would be time saving to add file links to the codesnippets plugin in the following manner.
1. Select a file in the file explorer or text within the cb editor an hold the left mouse button
2. Drag the file or text to a folder/subcategory of the codesnippets view
3. Generate an add snippet and pop up the properties dialog containing already the file link or text.
What do you think about that?
Bye,
Mario
dmoore:
For right click on file/folders it would be easy for Pecan to add a context menu item to add the link.
For drag and drop I will need to do some more work on my end...
Pecan:
--- Quote from: mariocup on July 05, 2007, 11:16:07 pm ---Hi CB team,
I am using codesnippets plugin and the file browser of (cbiplugin). As it is to easy navigate within the filesystem with the file explorer it would be time saving to add file links to the codesnippets plugin in the following manner.
1. Select a file in the file explorer or text within the cb editor an hold the left mouse button
2. Drag the file or text to a folder/subcategory of the codesnippets view
3. Generate an add snippet and pop up the properties dialog containing already the file link or text.
What do you think about that?
Bye,
Mario
--- End quote ---
CodeSnippets already accepts dragged text or file lists when dragged on top of a category. It creates a new text snippet or fileLink by the name "new snippet".
Right click for the properties context menu and change the name, or left click and hold to edit the label.
dmoore:
Pecan: Any interest in implementing the file explorer integration? it sounds like a reasonable thing to me (file explorer accepts multiple file/directory selections and passes a string containing the list of selections to each plugin's BuildModuleMenu). I could also add support for the drag and drop messaging...
Pecan:
--- Quote from: dmoore on July 06, 2007, 05:31:48 am ---Pecan: Any interest in implementing the file explorer integration? it sounds like a reasonable thing to me (file explorer accepts multiple file/directory selections and passes a string containing the list of selections to each plugin's BuildModuleMenu). I could also add support for the drag and drop messaging...
--- End quote ---
I'm sorry. I don't understand.
Why would CodeSnippets want to present a list of files in it's context menus?
Navigation
[0] Message Index
[#] Next page
Go to full version