Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toggle the ruler by hotkey #18

Closed
ghost opened this issue Feb 25, 2016 · 1 comment
Closed

toggle the ruler by hotkey #18

ghost opened this issue Feb 25, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 25, 2016

Hi, thanks for sharing this awesome package.

I'd like to request a feature if possible. I don't want to see rulerz all the time. Only when I want to check if my code is lining up.

I'd really appreciate if rulerz added a function that can be activated by hotkey.

Here's an example

'atom-text-editor':
  'ctrl-q': 'toggle-quotes:toggle'
  'ctrl-r': 'rulerz:2000'
  'ctrl-shift-r': 'rulerz:0'

Where the number provided to rulerz is a timeout in milliseconds. So if I provide a 2 second timeout, then the ruler will disappear after 2 seconds, if I provide zero then it toggles on or off, permanently.

If it's difficult accept an unknown number of milliseconds as a parameter, then options for 1-9 seconds would be a great plan B, like this: 'ctrl-r': 'rulerz:2' meaning 2 seconds, 'ctrl-r': 'rulerz:3' meaning 3 seconds, etc.

@cmtonkinson
Copy link
Member

cmtonkinson commented Oct 25, 2016

Hi @Lope. Thanks for using Rulerz, I'm glad you find it useful. I don't have much time to add new features to the plugin, but if you're passionate about adding a toggle feature (I suspect many other people would use this as well) I'd be happy to work with you on accepting a pull request.

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

No branches or pull requests

1 participant