Giter Club home page Giter Club logo

ruby-block's People

Contributors

aki77 avatar izuzak avatar ryot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ruby-block's Issues

todo for first release

  • minibuffer
  • go to block starting position command
  • configure display options
  • marker should destroy on did change active pane item
  • goto word beginning position
  • activation problem fix
  • upload option screenshot
  • add bottom panel into default
  • write spec

Deprecated selector in `ruby-block\styles\ruby-block.less`

In ruby-block\styles\ruby-block.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • :host .line-number.ruby-block-highlight, atom-text-editor .line-number.ruby-block-highlight, atom-text-editor::shadow .line-number.ruby-block-highlight => :host .line-number.ruby-block-highlight, atom-text-editor .line-number.ruby-block-highlight, atom-text-editor.editor .line-number.ruby-block-highlight

  • :host .highlights .ruby-block-highlight .region, atom-text-editor .highlights .ruby-block-highlight .region, atom-text-editor::shadow .highlights .ruby-block-highlight .region => :host .highlights .ruby-block-highlight .region, atom-text-editor .highlights .ruby-block-highlight .region, atom-text-editor.editor .highlights .ruby-block-highlight .region

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

Go to line doesn't work when this package is enabled.

When this package is installed the following happens -

When I press Control + G the go to line minibar doesn't pop up on the first time. It pops up on the second time I press the keyboard shortcut. After that, when I enter the line number, instead going to that line, the cursor moves to the editor and that number is just typed in the editor. In the gif shown below, it can be seen that when I typed 4 in the line input bar, 4 just ended up in the first line of the editor screen where my cursor was before.

atom-bug

Go-to-line works well with atom --safe so the problem is not with Atom's package as confirmed by one of its developers in the following issue as well -

atom/go-to-line#30

Allow to jump to the end of block

Similar to the jump from the end of block to the beginning, it would be really nice if we can do it from the beginning to the end.

CSS support for end when matching to upper block.

Right now we have CSS for the if/when/then and others but it would be nice if we could also CSS out the end too, so that it kind of matches the way that bracket-matcher works and makes it quite obvious what is going on if a user disables current line background.

if condition # Has CSS Class.
  work
end # Would love to have a CSS Class for this too.

Deprecated selector in `ruby-block/styles/ruby-block.less`

In ruby-block/styles/ruby-block.less:

Starting from Atom v1.13.0, the contents of atom-text-editor elements are no longer encapsulated within a shadow DOM boundary. This means you should stop using :host and ::shadow pseudo-selectors, and prepend all your syntax selectors with syntax--. To prevent breakage with existing style sheets, Atom will automatically upgrade the following selectors:

  • :host .line-number.ruby-block-highlight, atom-text-editor .line-number.ruby-block-highlight, atom-text-editor::shadow .line-number.ruby-block-highlight => :host .line-number.ruby-block-highlight, atom-text-editor .line-number.ruby-block-highlight, atom-text-editor.editor .line-number.ruby-block-highlight

  • :host .highlights .ruby-block-highlight .region, atom-text-editor .highlights .ruby-block-highlight .region, atom-text-editor::shadow .highlights .ruby-block-highlight .region => :host .highlights .ruby-block-highlight .region, atom-text-editor .highlights .ruby-block-highlight .region, atom-text-editor.editor .highlights .ruby-block-highlight .region

Automatic translation of selectors will be removed in a few release cycles to minimize startup time. Please, make sure to upgrade the above selectors as soon as possible.

ruby-block isn't working on my version of atom

I'm on 1.32.1
I have ruby-block turned on, but am not seeing any blocks enabled. There's no highlighting of the top/bottom of blocks when the cursor is over one. And there's nothing on the bottom of Atom that indicates the line position of the start of the block. I really like this extension so I hope this can be fixed! Let me know if there's any other info I can post that can help track this down.

Go to matching block shortcut doesn't work:

On the package page there is:

"Go to matching line (ctrl-g b)"

ctrl-g brings up the goto menu. This menu only allows numbers to be typed (0 - 9) so I am not able to use this shortcut feature which says I should type 'b'.

Is there something else I am meant to have done to be able to use this? If so, what? And, could these extra steps be added to the info page.

Highlight end blocks when cursor is at the beginning

Hi there,

first of all, thank you for this useful package :-) It actually works by highlighting the begin of the block when a cursor is at the end. I was wondering if/how is possible to highlight end blocks even when cursor is at the beginning.

thanks in advance for eventual replies :-)

Highlighting does not work for grammar 'Ruby' files only 'Ruby on Rails' grammar

New to submitting bug issues, but wanted to see if anyone else was experiencing the same.

By default Atom detects my .rb file as grammar for 'Ruby' file. The highlighting wasn't working until I switched from 'Ruby' to 'Ruby on Rails'.

Request:
Able to detect and use in multiple 'Ruby*' grammar detections by default or checkbox ability.

screen shot 2019-01-11 at 12 54 38 pm

Stopped working for me

Atom v0.202 - OSX. I think it stopped working on v0.200. I also notice a slow down when moving to an end in RSpec. Like when I move down from the second line to the third:

it "does something" do
  expect(true).to eq(true)
end

The delay is gone if I disable this package.

Visibility

Hi, thank you for this really nice package!
Is there a way to make the highlighting more visible? I can actually barely see the highlighing. I looked into the .sass file of your package, if the visiblity is set to 10% or something, but it seems to be at 100%? Thanks!

Uncaught Error: Cannot find module 'underscore-plus'

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.19.2 x64
Electron: 1.6.9
OS: Mac OS X 10.11.6
Thrown From: ruby-block package 0.3.6

Stack Trace

Uncaught Error: Cannot find module 'underscore-plus'

At module.js:472

Error: Cannot find module 'underscore-plus'
    at Module._resolveFilename (module.js:470:15)
    at Module._resolveFilename (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.get_Module._resolveFilename (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/src/module-cache.js:354:58)
    at Module.require (Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/static/index.js:40:43)
    at require (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/src/native-compile-cache.js:66:33)
    at Object.loadClasses (/packages/ruby-block/lib/ruby-block.coffee:197:9)
    at Object.init (/packages/ruby-block/lib/ruby-block.coffee:80:6)
    at Object.subscribeToActiveTextEditor (/packages/ruby-block/lib/ruby-block.coffee:104:6)
    at /packages/ruby-block/lib/ruby-block.coffee:65:73
    at Function.module.exports.Emitter.simpleDispatch (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at Workspace.didActivatePaneContainer (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/src/workspace.js:478:28)
    at WorkspaceCenter.paneContainer.onDidActivatePane (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/src/workspace-center.js:12:59)
    at Function.module.exports.Emitter.simpleDispatch (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:25:20)
    at Emitter.module.exports.Emitter.emit (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:141:34)
    at PaneContainer.didActivatePane (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/src/pane-container.js:264:24)
    at Pane.module.exports.Pane.activate (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/src/pane.js:911:20)
    at Pane.module.exports.Pane.focus (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/src/pane.js:290:25)
    at HTMLElement.<anonymous> (/Users/j.r.confucius/Downloads/Atom.app/Contents/Resources/app/src/pane-element.js:51:25)

Commands

     -1:24.1.0 tree-view:copy (div.tool-panel.tree-view)

Non-Core Packages

ruby-block 0.3.6 

Block mismatch when assigned

def foo()
  bar = if true
  end # highlighting this `end` shows a match on the method `def` line
end

It seems that doing an assignment from some blocks results in it not being spotted as the beginning of a block. In the above example I get def foo() as my match for the end for the if block.

edit: Thanks for making this awesome plugin!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.