satyagraha / gfm_viewer

An Eclipse plugin providing an accurate view of GitHub Flavored Markdown (.md) files
95 stars 27 forks source link

[feature] Drag&Drop from Project Explorer into View to see file #5

Closed paulvi closed 11 years ago

paulvi commented 11 years ago

Feature request: Drag&Drop from Project Explorer into View to see file (without need to open Editor)

It is very useful (and should be quicker) when just exploring docs, for example Node.js node_modules folder.

satyagraha commented 11 years ago

Should be possible, will do if feasible.

satyagraha commented 11 years ago

I have spent quite a bit of time on this, and have run into a major difficulty that when the browser component has a document displayed, then it seizes control of the DnD mechanism; so only one file can ever be dropped. I have left the experimental code in, but commented out, and will return to it if time permits.

As a useful alternative, in v1.1.0 I have implemented a file tree context menu entry entitled Show in GFM view which provides comparable functionality, in the sense that you don't need the markdown editor open.

paulvi commented 11 years ago

I see. If the context menu is only shown for .md (or .textile or other supported files), then it is perfect.

satyagraha commented 11 years ago

Yes, broadly speaking. The precise rules are defined in the viewer plugin.xml, extensions tab org.eclipse.ui.menus entry, expand popup: tree.

satyagraha commented 11 years ago

Closing on the grounds that the new context menu adequately addresses this issue.

paulvi commented 11 years ago

once again, this is a bit different. But let's say you want to keep your issue list clean.