Skip to content

Add a command to change the surrounding environment - #103

Open
r-stein wants to merge 5 commits into
msiniscalchi:masterfrom
r-stein:change_env
Open

Add a command to change the surrounding environment#103
r-stein wants to merge 5 commits into
msiniscalchi:masterfrom
r-stein:change_env

Conversation

@r-stein

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

Copy link
Copy Markdown

This resolves #102 similar to the ST PR SublimeText/LaTeXTools#585.

This adds the command C-l, C-S-n to change the surrounding environment. It supports:

  • nested environments
  • multiple cursors
  • exclude definitions in comments and verbatim (easily expandable scope selector/descriptor list)

demo:

atom_change_env

Comment thread keymaps/latextools.cson
'ctrl-l n': 'latextools:insert-environment'
'ctrl-l ctrl-c': 'latextools:wrap-in-command'
'ctrl-l ctrl-n': 'latextools:wrap-in-environment'
'ctrl-l ctrl-shift-n': 'latextools:change-environment'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should also add:

'cmd-l cmd-shift-n': 'latextools:change-environment'

to the block below to support OS X.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Oh I missed that.

@cortner

cortner commented Jul 21, 2017

Copy link
Copy Markdown

I am keen to have this, any chance to merge it?

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.

Suggestion: Hot-key for change environment

3 participants