bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
456 stars 92 forks source link

Create issue/s from selected text #64

Open mgaitan opened 10 years ago

mgaitan commented 10 years ago

I would like to have this feature very much. I imagine two flavors:

1) any selected text will be the body of a new issue and asks for a title via an input dialog. Optionally asks if the body should be interpretext as code (and automatically set the proper highlight, if so) and if a link to the file/line[s] ad the current HEAD should be added.

2) Convert a "item list" into multiples issues. For example

Paste selected text as new issue body
    any selected text will be the body of a new issue
Asks the user if the it's code
  if so, wrap it and set the proper highlight

will turns into 2 new issues, where "Paste selected ... " and "Asks the user..." are the titles and the other lines the bodies. The format in this example is a valid restructuredtext's definition list but maybe we could be more flexible.

The first case is very useful to avoid TODOs in code, which sometime are there forever (an issue could be there open forever, but at least don't bother all the time :satisfied:). The latter would be a dream to dump new project's ideas and TODO lists into tasks.