aki77 / atom-expand-region

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

expanding "speed" #3

Closed PavelA85 closed 7 years ago

PavelA85 commented 8 years ago

Hi, Thank you for your package. Its what I was looking for. But there is slight problem, how can I control speed of selection? I mean first few expanding works as expected, but after its selects method with params, its expands to whole scope. Here is my desired expanding selection behavior vs

How can i achieve this?

aki77 commented 8 years ago

Sorry, I can't catch what you want.:cry: Please kindly tell me again.

PavelA85 commented 8 years ago

atom compare with atom case. Just in 3 expanding step I get all function scope selected, while expected to do this at least 7 steps

aki77 commented 8 years ago

Please edit the config.cson to customize the behavior.

Example

'.source.js':
  'expand-region':
    commands: [
      {
        command: 'editor:select-word'
        recursive: false
      }
      {
        command: 'editor:select-line'
        recursive: false
      }
      {
        command: 'core:select-all'
        recursive: false
      }
    ]

default settings

nicooprat commented 8 years ago

Is there any way to select HTML attribute key+value before selecting the entire line? Eg class="foo".

What's more, in SCSS file the action 'expand-region:select-scope' is selecting entire line with indentation. Any way to hack this behavior?

Thanks for your work!

aki77 commented 7 years ago

Please see below. https://github.com/aki77/atom-expand-region#customize-selected-regions