Let LineColumn on StatusBar as clickable to open GoToLineColumn (#9002)

Release Notes:

- Added to let LineColumn on StatusBar as clickable to open
GoToLineColumn.
- Added placeholder to GoToLineColumn input, and show help message on
input changed.

## Screenshot


![go-to-line-column](https://github.com/zed-industries/zed/assets/5518/90a4f644-07d4-4208-8caa-5510e1537f37)
This commit is contained in:
Jason Lee 2024-03-09 05:11:17 +08:00 committed by GitHub
parent 977af37cfe
commit 5abcc1c3c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 144 additions and 103 deletions

View file

@ -132,7 +132,8 @@ pub fn initialize_workspace(app_state: Arc<AppState>, cx: &mut AppContext) {
let vim_mode_indicator = cx.new_view(|cx| vim::ModeIndicator::new(cx));
let feedback_button =
cx.new_view(|_| feedback::deploy_feedback_button::DeployFeedbackButton::new(workspace));
let cursor_position = cx.new_view(|_| editor::items::CursorPosition::new());
let cursor_position =
cx.new_view(|_| go_to_line::cursor_position::CursorPosition::new(workspace));
workspace.status_bar().update(cx, |status_bar, cx| {
status_bar.add_left_item(diagnostic_summary, cx);
status_bar.add_left_item(activity_indicator, cx);