@@ -5,14 +5,20 @@ use druid::{
5
5
EventCtx , FileInfo , Point , Rect , Selector , SingleUse , Size , WidgetId , WindowId ,
6
6
} ;
7
7
use indexmap:: IndexMap ;
8
- use lapce_core:: buffer:: DiffLines ;
9
- use lapce_core:: command:: {
10
- EditCommand , FocusCommand , MotionModeCommand , MoveCommand , MultiSelectionCommand ,
8
+ use lapce_core:: {
9
+ buffer:: DiffLines ,
10
+ command:: {
11
+ EditCommand , FocusCommand , MotionModeCommand , MoveCommand ,
12
+ MultiSelectionCommand ,
13
+ } ,
14
+ syntax:: Syntax ,
11
15
} ;
12
- use lapce_core:: syntax:: Syntax ;
13
- use lapce_rpc:: plugin:: { PluginId , VoltInfo , VoltMetadata } ;
14
16
use lapce_rpc:: {
15
- buffer:: BufferId , file:: FileNodeItem , source_control:: DiffInfo , style:: Style ,
17
+ buffer:: BufferId ,
18
+ file:: FileNodeItem ,
19
+ plugin:: { PluginId , VoltInfo , VoltMetadata } ,
20
+ source_control:: DiffInfo ,
21
+ style:: Style ,
16
22
terminal:: TermId ,
17
23
} ;
18
24
use lsp_types:: {
@@ -25,22 +31,23 @@ use strum::{self, EnumMessage, IntoEnumIterator};
25
31
use strum_macros:: { Display , EnumIter , EnumMessage , EnumString , IntoStaticStr } ;
26
32
use xi_rope:: { spans:: Spans , Rope } ;
27
33
28
- use crate :: alert:: AlertContentData ;
29
- use crate :: data:: { LapceMainSplitData , LapceTabData , LapceWorkspace } ;
30
- use crate :: document:: BufferContent ;
31
- use crate :: editor:: { EditorPosition , Line , LineCol } ;
32
- use crate :: menu:: MenuKind ;
33
- use crate :: rich_text:: RichText ;
34
- use crate :: selection_range:: SelectionRangeDirection ;
35
- use crate :: update:: ReleaseInfo ;
36
34
use crate :: {
37
- data:: { EditorTabChild , SplitContent } ,
38
- editor:: EditorLocation ,
35
+ alert:: AlertContentData ,
36
+ data:: {
37
+ EditorTabChild , LapceMainSplitData , LapceTabData , LapceWorkspace ,
38
+ SplitContent ,
39
+ } ,
40
+ document:: BufferContent ,
41
+ editor:: { EditorLocation , EditorPosition , Line , LineCol } ,
39
42
keypress:: { KeyMap , KeyPress } ,
43
+ menu:: MenuKind ,
40
44
palette:: { PaletteItem , PaletteType } ,
41
45
proxy:: ProxyStatus ,
46
+ rich_text:: RichText ,
42
47
search:: Match ,
48
+ selection_range:: SelectionRangeDirection ,
43
49
split:: { SplitDirection , SplitMoveDirection } ,
50
+ update:: ReleaseInfo ,
44
51
} ;
45
52
46
53
pub const LAPCE_OPEN_FOLDER : Selector < FileInfo > = Selector :: new ( "lapce.open-folder" ) ;
0 commit comments