aki77 / atom-expand-region

expanding selection
https://atom.io/packages/expand-region
MIT License
89 stars 9 forks source link

Select all inside HTML tags #4

Closed ivancuric closed 7 years ago

ivancuric commented 9 years ago

Example:

<ul>
  <li class="listbox-option"><a href="">Link1</a></li>
  <li class="listbox-option"><a href="">Link2</a></li>
</ul>

Is it possible to configure the plugin to act in the following way?:

Expand region

The reason is that i often need to add another container for some elements, and I can do this easily in ST3's Expand Region in combination with emmet.

PavelA85 commented 9 years ago

Yes, that would be very nice to have!

krasnovpro commented 9 years ago

Please add another stop for html attribute (rel="stylesheet"): <link rel="stylesheet" type="text/css" href="assets/css/style.css">

2015-10-26 19_00_06

mrhammadasif commented 8 years ago

+1

trenkwill commented 8 years ago

+1

skirem commented 8 years ago

+1

sgsvnk commented 8 years ago

+1

pingshunhuangalex commented 8 years ago

+1

sgsvnk commented 7 years ago

+1

Eco4 commented 7 years ago

+1

aki77 commented 7 years ago

Please try it! emmet package is required.

~/.atom/config.cson

'.text.html':
  'expand-region':
    commands: [
      {
        command: 'editor:select-word'
        recursive: false
      }
      {
        command: 'emmet:balance-outward'
        recursive: true
      }
      {
        command: 'expand-region:select-inside-single-quotes'
        recursive: false
      }
      {
        command: 'expand-region:select-around-single-quotes'
        recursive: false
      }
      {
        command: 'expand-region:select-inside-double-quotes'
        recursive: false
      }
      {
        command: 'expand-region:select-around-double-quotes'
        recursive: false
      }
      {
        command: 'expand-region:select-inside-angle-brackets'
        recursive: false
      }
      {
        command: 'expand-region:select-around-angle-brackets'
        recursive: false
      }
    ]