Skip to content

Figure out how to store data #6

Description

@cheshire137

Data we want to store:

  • Access and refresh token from Github for performing authenticated actions on behalf of the user (part of OAuth flow)
  • IDs of Gists created by the user
  • User Github name
  • Paths to files that have Gists, e.g., /Users/sarah/code/lexladiescode/myfile.txt
  • Line numbers in a file that have a Gist, e.g., line 1-4 are in a Gist
  • Which Gist is associated with which range of lines in which file

We could start out storing data in a JSON file. Need to determine a structure for this file to store all the data we need. Could use a SQLite database later if our data gets unwieldy in a simple JSON file.

Need to figure out where to save this file, where a Sublime Text plugin has access to read/write on a user's machine. Will differ between OS X and Windows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions