Conversation
|
The appveyor build failed due to an internal error, not because of tests related to this commit. |
spec/bookmarks-view-spec.coffee
Outdated
|
|
||
| waitsFor -> | ||
| lines = editorElement.shadowRoot.querySelectorAll('.bookmarked') | ||
| editorElement.shadowRoot.querySelectorAll('.line.bookmarked').length is 1 |
There was a problem hiding this comment.
This line doesn't seems to do anything. Same goes for a few more below.
To my understanding CoffeeScript returns the value from the last line within a function, defining two (or more) lines will still only return the last line.
There was a problem hiding this comment.
Thank you for your keen eye, @jerone
You're right, my specs were not catching problems related to .line.bookmarked items
It should be fixed now
|
I've restarted the Appveyor build. |
|
As I recall, bookmarks can now be selection-based (#47), so giving the entire line the |
|
I believe many people think that Atom bookmarks is a line-only feature : when you define a bookmark at the cursor, it places a symbol in the gutter for the current line. Nice and sweet and useful. I, for one, did not know that bookmarks were applied to range until I delved in the code and discovered this feature. It is powerful, but mildly confusing, and I still do not use it in my everyday work: to me, bookmarks are still a line-only feature. Since this PR is aimed at providing classes that can be used, but are not mandatory, I believe it makes sense to offer a I also added a And the result |
|
This should have been in atom since day one. If you can add a bookmark, and style the gutter line number section, you should be able to style the line itself. It seems like a basic and common necessity for an editor like Atom, which prides itself of flexibility and customization through a wide array of themes and packages. Yes, we can create a package to "hack it", but we shouldn't have to. The "bookmarked" class on the gutter and not on the line number, just shows someone only thought out the bookmark process half way. Seriously, a few lines and push the update. It would take only a few minutes to add this feature baked into the next Atom release. I CAN NOT BELIEVE that this has been going on for over a year, and it still isn't built into Atom. It is a huge let down. I hate seeing something so easy, simple, and duh should have been there from the beginning, get ignored! This issue has fallen through the cracks, and someone responsible for Atom's updates/code fixes/modifications should add it. |
|
I want to add, that I manually added the Atom "bookmarks" package via It works just fine, no issues. This looks super simple, and mimics exactly how the bookmarked class is added to the gutter line. I can't fathom how there would be any issues with these few minor lines. This PR should be merged. |

As per request #33, this commit adds the
.bookmarkedclass to.lineas well as.line-numberelements.This allows to decorate lines. For example: