Line numbers short mode (#10354)
Followup to #10327 It can be enabled with the following setting: "line_indicator_format": "short" No release note, as the original change didn't go out to Preview yet. /cc @bartekpacia @0x2CA Release Notes: - N/A
This commit is contained in:
parent
4151ba13a1
commit
39e0e26d1d
5 changed files with 71 additions and 6 deletions
|
@ -1,10 +1,12 @@
|
|||
pub mod cursor_position;
|
||||
|
||||
use cursor_position::LineIndicatorFormat;
|
||||
use editor::{scroll::Autoscroll, Editor};
|
||||
use gpui::{
|
||||
actions, div, prelude::*, AnyWindowHandle, AppContext, DismissEvent, EventEmitter, FocusHandle,
|
||||
FocusableView, Render, SharedString, Styled, Subscription, View, ViewContext, VisualContext,
|
||||
};
|
||||
use settings::Settings;
|
||||
use text::{Bias, Point};
|
||||
use theme::ActiveTheme;
|
||||
use ui::{h_flex, prelude::*, v_flex, Label};
|
||||
|
@ -14,6 +16,7 @@ use workspace::ModalView;
|
|||
actions!(go_to_line, [Toggle]);
|
||||
|
||||
pub fn init(cx: &mut AppContext) {
|
||||
LineIndicatorFormat::register(cx);
|
||||
cx.observe_new_views(GoToLine::register).detach();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue