This repository was archived by the owner on Apr 1, 2020. It is now read-only.
-
Couldn't load subscription status.
- Fork 300
Feature/git blame layer #2469
Merged
Merged
Feature/git blame layer #2469
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
8a8e6dc
Revert "Refocus previously open menu on reactivating Oni (#2472)"
akinsho 6f6464e
Merge branch 'master' of https://github.com/onivim/oni
akinsho 7c10e8c
Merge branch 'master' of https://github.com/onivim/oni
akinsho 52f3252
add initial git blame layer implementation
akinsho 430db6b
make component absolute and pass position to component
akinsho 76cd76e
add cursor to layer context and use it render positional blame
akinsho a815bad
render blame inline if possible otherwise render above
akinsho 8cd9146
format blame date str and add format date to utils
akinsho 79e3a93
change ordering of blame message
akinsho 71ae13d
format time as time since and update styles for blame
akinsho 6e30640
separate out inline and hover styles
akinsho c361009
rename inline var
akinsho 82dbfc2
add out of bounds checking
akinsho 16d2d1a
add more error handling to out of bounds check dar
akinsho a1ae69b
darken text in blame
akinsho eaac952
fix lint error in blame layer
akinsho 24e2570
fix existing broken tests
akinsho aff09e0
add config options and experimental flag
akinsho 6535c5d
fix lint errors
akinsho dfc2559
fix cursor line variants naming
akinsho e95ffa6
fix comment change order of updateBlameCall
akinsho e3a4c2f
use get derived props from state to prevent initial render flicker
akinsho 7e2ded3
switch back to concurrently for start
akinsho 95bdefd
remove unsed var in blame container
akinsho b34889f
prevent layer from rendering if vcs.blame is not enabled
akinsho 0f8037d
add recursive truncation of summary message
akinsho ad72365
add check if shortened all the way to the bottom just render the auth…
akinsho 3258424
fix comment typo
akinsho 1402650
only append ellipsis is shortened summary has content
akinsho eb1aed1
remove hover style as it is hard to manage improve fit checking
akinsho 4e3921b
position blame in first empty white space above is cant fit
akinsho 3724b53
remove unused arguments
akinsho 3067d09
increase default timeout, add exiting to transitionStyles
akinsho ba38413
move opacity in hope of making animation more pronounced
akinsho 433b134
check line position at start of reset timer matches current one befor…
akinsho 414b047
fix position related crash
akinsho de2bef4
prettier fix
akinsho 44417e2
mount the component ffs, add more tests
akinsho 0f6726e
moar test for blame layer
akinsho 0b8c8da
fix failing test
akinsho 03e45b2
add overflow component and re-arrange comments
akinsho 585d7ac
fix lint errors
akinsho f3e4f5c
add component did catch method
akinsho 3cd6354
fix broken truncation assertion
akinsho 43a1aaa
change check in git blame layer to use currentLine content
akinsho ea19dcc
fix configuration to use _oni.configuration
akinsho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious - why is this wrapped in an IIFE? Is there a functionaility reason for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's to encapsulate the instance inside of the function and just return a function that provides access to it,
So rather than
Its a very small distinction I've just been bitten by global vars previously and try to always find ways around them.