Skip to content

Add a command to automatically insert label contents#1131

Merged
r-stein merged 6 commits intoSublimeText:version4from
r-stein:auto_label
Jun 8, 2017
Merged

Add a command to automatically insert label contents#1131
r-stein merged 6 commits intoSublimeText:version4from
r-stein:auto_label

Conversation

@r-stein
Copy link
Copy Markdown
Member

@r-stein r-stein commented May 23, 2017

This creates a command to automatically create and insert labels in a smart way. It supports both single and multiple selections. The content of the label is auto-detected based on the line above the insertion point and the surrounding environment.

auto_label_example

TODO:

  • move meta information to settings
  • enable/disable via settings similar to fill-all helper

This creates a command to automatically create and insert label contents.
@r-stein r-stein added this to the v4.0 milestone May 23, 2017
@r-stein r-stein mentioned this pull request May 23, 2017
15 tasks
],


// ------------------------------------------------------------------
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good if someone could review these settings. Not sure if there is some standard for this. For example I have seen both "ssub" and "sss" for subsection.

r-stein added 3 commits May 24, 2017 15:15
# Conflicts:
#	Default (Linux).sublime-keymap
#	Default (OSX).sublime-keymap
#	Default (Windows).sublime-keymap
@r-stein r-stein merged commit 68d4619 into SublimeText:version4 Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant