Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

WIP: Split up gutter into multiple components - #2464

Closed
benogle wants to merge 3 commits into
masterfrom
bo-react-gutter
Closed

benogle wants to merge 3 commits into
masterfrom
bo-react-gutter

Conversation

@benogle

@benogle benogle commented May 31, 2014

Copy link
Copy Markdown
Contributor

This is very very much a WIP / experiment.

This is all it does right now. I have git diff displaying another gutter.

screen shot 2014-05-30 at 5 24 25 pm

This is what my git-diff looks like.

{$, GutterComponent} = require 'atom'

module.exports =
class ReactGitDiffView
  constructor: (@editorView) ->
    editorView.registerComponent (options) ->
      GutterComponent $.extend {ref: 'gitGutter'}, options

The idea is that git diff will use it's own gutter component. minimap could use this mechanism, the fold + bookmarks icon, and any other gutter decorations could use one as well.

@probablycorey check it. @nathansobo, I'm probably crazy.

@probablycorey probablycorey mentioned this pull request Jun 2, 2014
34 of 35 tasks
@benogle

benogle commented Jun 3, 2014

Copy link
Copy Markdown
Contributor Author

The goal with this was to create basically a 'gutter rail' component that could be used for the current needs of the gutter plus other packages in the future. My assumption was it would be a simple change, but it turned out to not be the case.

After digging in more and talking with @nathansobo, I think this is too much effort for minimal benefit right now. In order to do this, another react component would need to be created in the style of #2325, then packages (git-diff) would need to create a LineComponent and compose it into the new gutter component. Closing for now.

@benogle benogle closed this Jun 3, 2014
@benogle
benogle deleted the bo-react-gutter branch June 18, 2014 16:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant