Skip to content

Automatically tag code files #34

@lrasmus

Description

@lrasmus

Provide a feature to allow StatTag to attempt to automatically tag a code file. This could be invoked from the "Tags" dialog.

General idea:

  1. User attaches a code file to the document
  2. User opens Tag Manager dialog
  3. User clicks "Auto Tag Code File(s)"
  4. StatTag explains what it will do, and allow the user to confirm they want to continue or to stop
  5. StatTag identifies regions that it thinks represents codes. A simple heuristic (at first) is that a code is a single command or display/print statement on a line. Any line of code like this will be considered as a candidate tag.
  6. StatTag begins executing the code file. When it executes the candidate tag code, it tries to determine the type of output (image, table, value). If it can't determine, it can fall back to setting it as a Verbatim tag
  7. The tags are added into the code file, with the determined tag type from step 6.
  8. The Tag Manager dialog is refreshed, showing the user the newly added tags.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions