Adding features to a "view" package


#1

I have a package that shows a specialized view of certain type of data (https://atom.io/packages/dicom-dump, if anyone is interested to look). The views I create are currently based on ScrollView.

I now would like to add:

  • clipboard support (it doesn’t look like I can select and copy selection to the clipboard in ScrollView)
  • text search
  • folding of text sections

Can someone give me some hints how to get started? Do I need to switch to TextEditorView (can I keep it read-only?) ? What are the similar packages I can look at?


#2

You could have a look at my package menu-manager, which has both right-click to copy and collapsible sections.