- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 602
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
Add Go to line feature for the blame view #2262
base: master
Are you sure you want to change the base?
Changes from 1 commit
5f29d2f
9c526de
55da5d9
6bdab9d
20ed1d2
e1291f0
4855ca6
be182ae
56732c2
3c8afa1
dc65a8d
bea05c2
df83ef0
583eb7c
edb8e7b
2287164
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Remove context and references to it Addres #2262 (comment) Address #2262 (comment)
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
use crate::{ | ||
components::FuzzyFinderTarget, | ||
popups::{ | ||
AppOption, BlameFileOpen, BlameProcess, FileRevOpen, | ||
FileTreeOpen, InspectCommitOpen, | ||
AppOption, BlameFileOpen, FileRevOpen, FileTreeOpen, | ||
InspectCommitOpen, | ||
}, | ||
tabs::StashingOptions, | ||
}; | ||
|
@@ -56,13 +56,6 @@ pub enum Action { | |
UndoCommit, | ||
} | ||
|
||
#[derive(Debug, Clone)] | ||
pub enum Context { | ||
Blame(Option<BlameProcess>), | ||
//FileView, | ||
//PossibleRange(u32, u32), | ||
} | ||
|
||
#[derive(Debug)] | ||
pub enum StackablePopupOpen { | ||
/// | ||
|
@@ -76,7 +69,7 @@ pub enum StackablePopupOpen { | |
/// | ||
CompareCommits(InspectCommitOpen), | ||
/// | ||
GotoLine(Context), | ||
GotoLine, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think its a bit of a missed opportunity to not pass it some context: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In my last commit I added the |
||
} | ||
|
||
pub enum AppTabs { | ||
|
@@ -156,7 +149,7 @@ pub enum InternalEvent { | |
/// | ||
CommitSearch(LogFilterSearchOptions), | ||
/// | ||
GotoLine(usize, Option<Context>), | ||
GotoLine(usize), | ||
} | ||
|
||
/// single threaded simple queue for components to communicate with each other | ||
|
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.
here we can provide the context:
Blame, MaxLine