repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/id.rs
lapce-app/src/id.rs
use floem::views::editor::id::Id; pub type SplitId = Id; pub type WindowTabId = Id; pub type EditorTabId = Id; pub type SettingsId = Id; pub type KeymapId = Id; pub type ThemeColorSettingsId = Id; pub type VoltViewId = Id; pub type DiffEditorId = Id; pub type TerminalTabId = Id;
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/doc.rs
lapce-app/src/doc.rs
use std::{ borrow::Cow, cell::RefCell, collections::HashMap, ops::Range, path::{Path, PathBuf}, rc::Rc, sync::{ Arc, atomic::{self, AtomicUsize}, }, time::Duration, }; use floem::{ ViewId, action::exec_after, ext_event::create_ext_action, keyboard::Mo...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/web_link.rs
lapce-app/src/web_link.rs
use floem::{ View, peniko::Color, style::CursorStyle, views::{Decorators, label}, }; use crate::{command::InternalCommand, listener::Listener}; pub fn web_link( text: impl Fn() -> String + 'static, uri: impl Fn() -> String + 'static, color: impl Fn() -> Color + 'static, internal_comman...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/completion.rs
lapce-app/src/completion.rs
use std::{borrow::Cow, path::PathBuf, str::FromStr, sync::Arc}; use floem::{ peniko::kurbo::Rect, reactive::{ReadSignal, RwSignal, Scope, SignalGet, SignalUpdate, SignalWith}, views::editor::{id::EditorId, text::Document}, }; use lapce_core::{ buffer::rope_text::RopeText, movement::Movement, rope_text_...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/rename.rs
lapce-app/src/rename.rs
use std::{path::PathBuf, rc::Rc}; use floem::{ ext_event::create_ext_action, keyboard::Modifiers, peniko::kurbo::Rect, reactive::{RwSignal, Scope, SignalGet, SignalUpdate, SignalWith}, }; use lapce_core::{command::FocusCommand, mode::Mode, selection::Selection}; use lapce_rpc::proxy::ProxyResponse; use...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/snippet.rs
lapce-app/src/snippet.rs
use core::fmt; use std::{fmt::Display, str::FromStr}; use anyhow::Error; use once_cell::sync::Lazy; use regex::Regex; #[derive(Debug, PartialEq)] pub enum SnippetElement { Text(String), PlaceHolder(usize, Vec<SnippetElement>), Tabstop(usize), } impl Display for SnippetElement { fn fmt(&self, f: &mut ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/editor.rs
lapce-app/src/editor.rs
use std::{ collections::{HashMap, HashSet}, rc::Rc, str::FromStr, sync::Arc, time::Duration, }; use floem::{ ViewId, action::{TimerToken, exec_after, show_context_menu}, ext_event::create_ext_action, keyboard::Modifiers, kurbo::{Point, Rect, Vec2}, menu::{Menu, MenuItem}, ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/status.rs
lapce-app/src/status.rs
use std::{ rc::Rc, sync::{Arc, atomic::AtomicU64}, }; use floem::{ View, event::EventPropagation, reactive::{ Memo, ReadSignal, RwSignal, SignalGet, SignalUpdate, SignalWith, create_memo, }, style::{AlignItems, CursorStyle, Display}, views::{Decorators, dyn_stack, label, stack, ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/text_input.rs
lapce-app/src/text_input.rs
use std::{rc::Rc, sync::Arc}; use floem::{ Renderer, View, ViewId, action::{set_ime_allowed, set_ime_cursor_area}, context::EventCx, event::{Event, EventListener, EventPropagation}, kurbo::Stroke, peniko::{ Color, kurbo::{Line, Point, Rect, Size, Vec2}, }, prop_extractor...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/hover.rs
lapce-app/src/hover.rs
use floem::{ peniko::kurbo::Rect, reactive::{RwSignal, Scope}, views::editor::id::EditorId, }; use crate::markdown::MarkdownContent; #[derive(Clone)] pub struct HoverData { pub active: RwSignal<bool>, pub offset: RwSignal<usize>, pub editor_id: RwSignal<EditorId>, pub content: RwSignal<Vec...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/listener.rs
lapce-app/src/listener.rs
use floem::reactive::{RwSignal, Scope, SignalGet, SignalUpdate}; /// A signal listener that receives 'events' from the outside and runs the callback. /// This is implemented using effects and normal rw signals. This should be used when it doesn't /// make sense to think of it as 'storing' a value, like an `RwSigna...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/find.rs
lapce-app/src/find.rs
use std::cmp::{max, min}; use floem::{ prelude::SignalTrack, reactive::{RwSignal, Scope, SignalGet, SignalUpdate, SignalWith}, }; use lapce_core::{ selection::{SelRegion, Selection}, word::WordCursor, }; use lapce_xi_rope::{ Cursor, Interval, Rope, find::{CaseMatching, find, is_multiline_regex}...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/keypress.rs
lapce-app/src/keypress.rs
pub mod condition; mod key; pub mod keymap; mod loader; mod press; use std::{path::PathBuf, rc::Rc, str::FromStr, time::SystemTime}; use anyhow::Result; use floem::{ keyboard::{Key, KeyEvent, KeyEventExtModifierSupplement, Modifiers, NamedKey}, pointer::{MouseButton, PointerButton, PointerInputEvent}, rea...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/global_search.rs
lapce-app/src/global_search.rs
use std::{ops::Range, path::PathBuf, rc::Rc}; use floem::{ ext_event::create_ext_action, keyboard::Modifiers, reactive::{Memo, RwSignal, Scope, SignalGet, SignalUpdate, SignalWith}, views::VirtualVector, }; use indexmap::IndexMap; use lapce_core::{mode::Mode, selection::Selection}; use lapce_rpc::proxy...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/debug.rs
lapce-app/src/debug.rs
use std::{ collections::{BTreeMap, HashMap}, fmt::Display, path::PathBuf, rc::Rc, time::Instant, }; use floem::{ ext_event::create_ext_action, reactive::{Memo, RwSignal, Scope, SignalGet, SignalUpdate, SignalWith}, views::VirtualVector, }; use lapce_rpc::{ dap_types::{ self,...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/lsp.rs
lapce-app/src/lsp.rs
use std::path::PathBuf; use tracing::{Level, event}; use url::Url; // Rust-analyzer returns paths in the form of "file:///<drive>:/...", which gets parsed into URL // as "/<drive>://" which is then interpreted by PathBuf::new() as a UNIX-like path from root. // This function strips the additional / from the beginning...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/history.rs
lapce-app/src/history.rs
use std::path::PathBuf; use lapce_core::buffer::Buffer; #[derive(Clone)] pub struct DocumentHistory { pub buffer: Buffer, // path: PathBuf, // version: String, // styles: Arc<Spans<Style>>, // line_styles: Rc<RefCell<LineStyles>>, // text_layouts: Rc<RefCell<TextLayoutCache>>, } impl Document...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/markdown.rs
lapce-app/src/markdown.rs
use floem::text::{ Attrs, AttrsList, FamilyOwned, LineHeightValue, Style, TextLayout, Weight, }; use lapce_core::{language::LapceLanguage, syntax::Syntax}; use lapce_xi_rope::Rope; use lsp_types::MarkedString; use pulldown_cmark::{CodeBlockKind, CowStr, Event, Options, Parser, Tag}; use smallvec::SmallVec; use cra...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/window.rs
lapce-app/src/window.rs
use std::{path::PathBuf, rc::Rc, sync::Arc}; use floem::{ ViewId, action::TimerToken, peniko::kurbo::{Point, Size}, reactive::{ Memo, ReadSignal, RwSignal, Scope, SignalGet, SignalUpdate, SignalWith, use_context, }, window::WindowId, }; use serde::{Deserialize, Serialize}; use ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/keymap.rs
lapce-app/src/keymap.rs
use std::{rc::Rc, sync::Arc}; use floem::{ View, event::{Event, EventListener}, reactive::{ Memo, ReadSignal, RwSignal, Scope, SignalGet, SignalUpdate, SignalWith, create_effect, create_memo, create_rw_signal, }, style::CursorStyle, views::{ Decorators, container, dyn_st...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/wave.rs
lapce-app/src/wave.rs
use floem::{ Renderer, View, ViewId, peniko::kurbo::{BezPath, Point, Size}, style::TextColor, }; pub fn wave_box() -> WaveBox { WaveBox { id: ViewId::new() } } pub struct WaveBox { id: ViewId, } impl View for WaveBox { fn id(&self) -> ViewId { self.id } fn paint(&mut self, cx...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/tracing.rs
lapce-app/src/tracing.rs
// Re-export `tracing` crate under own name to not collide and as convenient import pub use tracing::{ self, Instrument, Level as TraceLevel, event as trace, instrument, };
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/alert.rs
lapce-app/src/alert.rs
use std::{ fmt, rc::Rc, sync::{Arc, atomic::AtomicU64}, }; use floem::{ View, event::EventListener, reactive::{ReadSignal, RwSignal, Scope, SignalGet, SignalUpdate}, style::CursorStyle, views::{Decorators, container, dyn_stack, label, stack, svg}, }; use crate::{ config::{LapceConf...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/window_tab.rs
lapce-app/src/window_tab.rs
use std::{ collections::{BTreeMap, HashSet}, env, path::{Path, PathBuf}, rc::Rc, sync::{ Arc, mpsc::{Sender, channel}, }, time::Instant, }; use alacritty_terminal::vte::ansi::Handler; use floem::{ ViewId, action::{TimerToken, open_file, remove_overlay}, ext_event...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/text_area.rs
lapce-app/src/text_area.rs
use floem::{ View, peniko::kurbo::Rect, reactive::{ SignalGet, SignalUpdate, SignalWith, create_effect, create_rw_signal, }, text::{Attrs, AttrsList, LineHeightValue, TextLayout}, views::{Decorators, container, label, rich_text, scroll, stack}, }; use lapce_core::buffer::rope_text::RopeT...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/main_split.rs
lapce-app/src/main_split.rs
use std::{ collections::HashMap, path::{Path, PathBuf}, rc::Rc, }; use floem::{ action::save_as, ext_event::create_ext_action, file::{FileDialogOptions, FileInfo}, keyboard::Modifiers, peniko::kurbo::{Point, Rect, Vec2}, reactive::{Memo, RwSignal, Scope, SignalGet, SignalUpdate, Sig...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/proxy.rs
lapce-app/src/proxy.rs
use std::{ collections::HashMap, path::PathBuf, process::Command, sync::{Arc, mpsc::Sender}, }; use floem::{ext_event::create_signal_from_channel, reactive::ReadSignal}; use lapce_proxy::dispatch::Dispatcher; use lapce_rpc::{ core::{CoreHandler, CoreNotification, CoreRpcHandler}, plugin::VoltID...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/inline_completion.rs
lapce-app/src/inline_completion.rs
use std::{borrow::Cow, ops::Range, path::PathBuf, str::FromStr}; use floem::reactive::{RwSignal, Scope, SignalGet, SignalUpdate, SignalWith, batch}; use lapce_core::{ buffer::{ Buffer, rope_text::{RopeText, RopeTextRef}, }, rope_text_pos::RopeTextPosition, selection::Selection, }; use l...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/code_action.rs
lapce-app/src/code_action.rs
use std::rc::Rc; use floem::{ keyboard::Modifiers, peniko::kurbo::Rect, reactive::{RwSignal, Scope, SignalGet, SignalUpdate}, }; use lapce_core::{command::FocusCommand, mode::Mode, movement::Movement}; use lapce_rpc::plugin::PluginId; use lsp_types::CodeActionOrCommand; use crate::{ command::{CommandE...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/about.rs
lapce-app/src/about.rs
use std::rc::Rc; use floem::{ View, event::EventListener, keyboard::Modifiers, reactive::{RwSignal, Scope, SignalGet, SignalUpdate}, style::{CursorStyle, Display, Position}, views::{Decorators, container, label, stack, svg}, }; use lapce_core::{command::FocusCommand, meta::VERSION, mode::Mode};...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/plugin.rs
lapce-app/src/plugin.rs
use std::{ collections::HashSet, rc::Rc, sync::{Arc, atomic::AtomicU64}, }; use anyhow::Result; use floem::{ IntoView, View, action::show_context_menu, ext_event::create_ext_action, keyboard::Modifiers, kurbo::Rect, menu::{Menu, MenuItem}, reactive::{ RwSignal, Scope, Si...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/keypress/key.rs
lapce-app/src/keypress/key.rs
use floem::keyboard::{Key, KeyLocation, NamedKey, PhysicalKey}; use super::keymap::KeyMapKey; #[derive(Clone, Debug)] pub(crate) enum KeyInput { Keyboard { physical: PhysicalKey, logical: Key, location: KeyLocation, key_without_modifiers: Key, repeat: bool, }, Point...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/keypress/press.rs
lapce-app/src/keypress/press.rs
use floem::keyboard::Modifiers; use super::{key::KeyInput, keymap::KeyMapPress}; #[derive(Clone, Debug)] pub struct KeyPress { pub(super) key: KeyInput, pub(super) mods: Modifiers, } impl KeyPress { pub fn keymap_press(&self) -> Option<KeyMapPress> { self.key.keymap_key().map(|key| KeyMapPress { ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/keypress/condition.rs
lapce-app/src/keypress/condition.rs
use strum_macros::EnumString; #[derive(Debug, PartialEq, Eq)] pub(super) enum CheckCondition<'a> { Single(&'a str), Or(&'a str, &'a str), And(&'a str, &'a str), } impl<'a> CheckCondition<'a> { pub(super) fn parse_first(condition: &'a str) -> Self { let or = condition.match_indices("||").next()...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/keypress/loader.rs
lapce-app/src/keypress/loader.rs
use anyhow::{Result, anyhow}; use indexmap::IndexMap; use lapce_core::mode::Modes; use tracing::{debug, error}; use super::keymap::{KeyMap, KeyMapPress}; pub struct KeyMapLoader { keymaps: IndexMap<Vec<KeyMapPress>, Vec<KeyMap>>, command_keymaps: IndexMap<String, Vec<KeyMap>>, } impl KeyMapLoader { pub f...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/keypress/keymap.rs
lapce-app/src/keypress/keymap.rs
use std::{fmt::Display, str::FromStr}; use floem::{ keyboard::{Key, KeyCode, Modifiers, NamedKey, PhysicalKey}, pointer::{MouseButton, PointerButton}, }; use lapce_core::mode::Modes; #[derive(PartialEq, Debug, Clone)] pub enum KeymapMatch { Full(String), Multiple(Vec<String>), Prefix, None, } ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/palette/kind.rs
lapce-app/src/palette/kind.rs
use strum_macros::EnumIter; use crate::command::LapceWorkbenchCommand; #[derive(Clone, Copy, Debug, PartialEq, Eq, EnumIter)] pub enum PaletteKind { PaletteHelp, File, Line, Command, Workspace, Reference, DocumentSymbol, WorkspaceSymbol, SshHost, #[cfg(windows)] WslHost, ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/palette/item.rs
lapce-app/src/palette/item.rs
use std::path::PathBuf; use lapce_core::line_ending::LineEnding; use lapce_rpc::dap_types::RunDebugConfig; use lsp_types::{Range, SymbolKind}; use crate::{ command::{LapceCommand, LapceWorkbenchCommand}, debug::RunDebugMode, editor::location::EditorLocation, workspace::{LapceWorkspace, SshHost}, }; #...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/app/grammars.rs
lapce-app/src/app/grammars.rs
use std::{ env, fs::{self}, path::PathBuf, }; use anyhow::{Context, Result, anyhow}; use lapce_core::directory::Directory; use crate::{tracing::*, update::ReleaseInfo}; fn get_github_api(url: &str) -> Result<String> { let user_agent = format!("Lapce/{}", lapce_core::meta::VERSION); let resp = lap...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/app/logging.rs
lapce-app/src/app/logging.rs
use lapce_core::directory::Directory; use tracing::level_filters::LevelFilter; use tracing_appender::non_blocking::WorkerGuard; use tracing_subscriber::{filter::Targets, reload::Handle}; use crate::tracing::*; #[inline(always)] pub(super) fn logging() -> (Handle<Targets>, Option<WorkerGuard>) { use tracing_subscr...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/proxy/remote.rs
lapce-app/src/proxy/remote.rs
use std::{ io::{BufReader, Write}, path::Path, process::{Command, Stdio}, }; use anyhow::{Result, anyhow}; use flate2::read::GzDecoder; use lapce_core::{ directory::Directory, meta::{self, ReleaseType}, }; use lapce_rpc::{ RpcMessage, core::CoreRpcHandler, proxy::{ProxyRpc, ProxyRpcHand...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/proxy/wsl.rs
lapce-app/src/proxy/wsl.rs
use std::{path::Path, process::Command}; use anyhow::Result; use super::{new_command, remote::Remote}; use crate::workspace::WslHost; pub struct WslRemote { pub wsl: WslHost, } impl Remote for WslRemote { fn upload_file(&self, local: impl AsRef<Path>, remote: &str) -> Result<()> { let mut wsl_path =...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/proxy/ssh.rs
lapce-app/src/proxy/ssh.rs
use std::{path::Path, process::Command}; use anyhow::Result; use tracing::debug; use super::remote::Remote; use crate::{proxy::new_command, workspace::SshHost}; pub struct SshRemote { pub ssh: SshHost, } impl SshRemote { #[cfg(windows)] const SSH_ARGS: &'static [&'static str] = &[]; #[cfg(unix)] ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/file_explorer/node.rs
lapce-app/src/file_explorer/node.rs
use floem::views::VirtualVector; use lapce_rpc::file::{FileNodeItem, FileNodeViewData, Naming}; pub struct FileNodeVirtualList { file_node_item: FileNodeItem, naming: Naming, } impl FileNodeVirtualList { pub fn new(file_node_item: FileNodeItem, naming: Naming) -> Self { Self { file_nod...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/file_explorer/view.rs
lapce-app/src/file_explorer/view.rs
use std::{path::Path, rc::Rc, sync::Arc}; use floem::{ View, event::{Event, EventListener}, kurbo::Rect, peniko::Color, reactive::{ ReadSignal, RwSignal, SignalGet, SignalUpdate, SignalWith, create_rw_signal, }, style::{AlignItems, CursorStyle, Position, Style}, text::Style as F...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/file_explorer/mod.rs
lapce-app/src/file_explorer/mod.rs
pub mod data; pub mod node; pub mod view;
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/file_explorer/data.rs
lapce-app/src/file_explorer/data.rs
use std::{ borrow::Cow, collections::HashMap, ffi::OsStr, path::{Path, PathBuf}, rc::Rc, sync::Arc, }; use floem::{ action::show_context_menu, event::EventPropagation, ext_event::create_ext_action, keyboard::Modifiers, menu::{Menu, MenuItem}, reactive::{ReadSignal, RwSig...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/editor/gutter.rs
lapce-app/src/editor/gutter.rs
use floem::{ Renderer, View, ViewId, context::PaintCx, peniko::kurbo::{Point, Rect, Size}, reactive::{Memo, SignalGet, SignalWith}, text::{Attrs, AttrsList, FamilyOwned, TextLayout}, }; use im::HashMap; use lapce_core::{buffer::rope_text::RopeText, mode::Mode}; use serde::{Deserialize, Serialize}; ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/editor/view.rs
lapce-app/src/editor/view.rs
use std::{ cmp, collections::BTreeMap, ops::DerefMut, path::PathBuf, rc::Rc, sync::Arc, }; use floem::{ Renderer, View, ViewId, action::{set_ime_allowed, set_ime_cursor_area}, context::{PaintCx, StyleCx}, event::{Event, EventListener, EventPropagation}, keyboard::Modifiers, kurbo::Stroke, ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/editor/diff.rs
lapce-app/src/editor/diff.rs
use std::{rc::Rc, sync::atomic}; use floem::{ View, event::{Event, EventListener}, ext_event::create_ext_action, reactive::{RwSignal, Scope, SignalGet, SignalUpdate, SignalWith}, style::CursorStyle, views::{ Decorators, clip, dyn_stack, editor::id::EditorId, empty, label, stack, svg, ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/editor/location.rs
lapce-app/src/editor/location.rs
use std::path::PathBuf; use floem::peniko::kurbo::Vec2; use lapce_core::{buffer::rope_text::RopeText, rope_text_pos::RopeTextPosition}; use lsp_types::Position; #[derive(Clone, Debug, PartialEq)] pub struct EditorLocation { pub path: PathBuf, pub position: Option<EditorPosition>, pub scroll_offset: Option...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/document_symbol.rs
lapce-app/src/panel/document_symbol.rs
use std::{ops::AddAssign, path::PathBuf, rc::Rc}; use floem::{ View, peniko::Color, reactive::{RwSignal, Scope, SignalGet, SignalUpdate, SignalWith}, style::CursorStyle, views::{ Decorators, VirtualVector, container, editor::id::Id, label, scroll, stack, svg, virtual_stack, }, }...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/terminal_view.rs
lapce-app/src/panel/terminal_view.rs
use std::rc::Rc; use floem::{ View, ViewId, action::show_context_menu, event::{Event, EventListener, EventPropagation}, kurbo::Size, menu::{Menu, MenuItem}, reactive::{SignalGet, SignalUpdate, SignalWith, create_rw_signal}, style::CursorStyle, views::{ Decorators, container, dyn...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/plugin_view.rs
lapce-app/src/panel/plugin_view.rs
use std::{ops::Range, rc::Rc}; use floem::{ IntoView, View, event::EventListener, peniko::kurbo::{Point, Rect, Size}, reactive::{ RwSignal, SignalGet, SignalUpdate, SignalWith, create_memo, create_rw_signal, }, style::CursorStyle, views::{ Decorators, VirtualVector, containe...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/global_search_view.rs
lapce-app/src/panel/global_search_view.rs
use std::{path::PathBuf, rc::Rc, sync::Arc}; use floem::{ View, event::EventListener, reactive::{ReadSignal, SignalGet, SignalUpdate}, style::{CursorStyle, Style}, views::{Decorators, container, label, scroll, stack, svg, virtual_stack}, }; use lapce_xi_rope::find::CaseMatching; use super::{kind::...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/view.rs
lapce-app/src/panel/view.rs
use std::{rc::Rc, sync::Arc}; use floem::{ AnyView, IntoView, View, event::{Event, EventListener, EventPropagation}, kurbo::{Point, Size}, reactive::{ ReadSignal, RwSignal, SignalGet, SignalUpdate, SignalWith, create_rw_signal, }, style::{CursorStyle, Style}, taffy::AlignItems, ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/source_control_view.rs
lapce-app/src/panel/source_control_view.rs
use std::{path::PathBuf, rc::Rc}; use floem::{ View, action::show_context_menu, event::{Event, EventListener}, menu::{Menu, MenuItem}, peniko::kurbo::Rect, prelude::SignalTrack, reactive::{SignalGet, SignalUpdate, SignalWith, create_memo, create_rw_signal}, style::{CursorStyle, Style}, ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/kind.rs
lapce-app/src/panel/kind.rs
use serde::{Deserialize, Serialize}; use strum_macros::EnumIter; use super::{data::PanelOrder, position::PanelPosition}; use crate::config::icon::LapceIcons; #[derive( Clone, Copy, PartialEq, Serialize, Deserialize, Hash, Eq, Debug, EnumIter, )] pub enum PanelKind { Terminal, FileExplorer, SourceContr...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/mod.rs
lapce-app/src/panel/mod.rs
pub mod call_hierarchy_view; pub mod data; pub mod debug_view; pub mod document_symbol; pub mod global_search_view; pub mod implementation_view; pub mod kind; pub mod plugin_view; pub mod position; pub mod problem_view; pub mod references_view; pub mod source_control_view; pub mod style; pub mod terminal_view; pub mod ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/implementation_view.rs
lapce-app/src/panel/implementation_view.rs
use std::{ops::AddAssign, path::PathBuf, rc::Rc}; use floem::{ IntoView, View, ViewId, reactive::{RwSignal, Scope, SignalGet, SignalUpdate}, style::CursorStyle, views::{ Decorators, VirtualVector, container, label, scroll, stack, svg, virtual_stack, }, }; use im::HashMap; use iterto...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/style.rs
lapce-app/src/panel/style.rs
use serde::{Deserialize, Serialize}; #[derive(Clone, Serialize, Deserialize, Default)] pub struct PanelStyle { pub active: usize, pub shown: bool, pub maximized: bool, }
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/references_view.rs
lapce-app/src/panel/references_view.rs
use std::rc::Rc; use floem::{View, reactive::SignalGet, views::Decorators}; use super::position::PanelPosition; use crate::{ panel::implementation_view::common_reference_panel, window_tab::WindowTabData, }; pub fn references_panel( window_tab_data: Rc<WindowTabData>, _position: PanelPosition, ) -> impl V...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/debug_view.rs
lapce-app/src/panel/debug_view.rs
use std::{rc::Rc, sync::Arc}; use floem::{ View, event::EventListener, peniko::Color, reactive::{ ReadSignal, RwSignal, SignalGet, SignalUpdate, SignalWith, create_rw_signal, }, style::CursorStyle, text::Style as FontStyle, views::{ Decorators, container, dyn_stack, labe...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/problem_view.rs
lapce-app/src/panel/problem_view.rs
use std::{path::PathBuf, rc::Rc, sync::Arc}; use floem::{ View, peniko::Color, reactive::{ ReadSignal, SignalGet, SignalUpdate, SignalWith, create_effect, create_rw_signal, }, style::{CursorStyle, Style}, views::{Decorators, container, dyn_stack, label, scroll, stack, svg}, }; u...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/position.rs
lapce-app/src/panel/position.rs
use serde::{Deserialize, Serialize}; #[derive(Eq, PartialEq, Hash, Clone, Copy, Debug, Serialize, Deserialize)] pub enum PanelPosition { LeftTop, LeftBottom, BottomLeft, BottomRight, RightTop, RightBottom, } impl PanelPosition { pub fn is_bottom(&self) -> bool { matches!(self, Pane...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/data.rs
lapce-app/src/panel/data.rs
use std::{rc::Rc, sync::Arc}; use floem::{ kurbo::Size, reactive::{ Memo, RwSignal, Scope, SignalGet, SignalUpdate, SignalWith, use_context, }, }; use serde::{Deserialize, Serialize}; use super::{ kind::PanelKind, position::{PanelContainerPosition, PanelPosition}, style::PanelStyle, };...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/panel/call_hierarchy_view.rs
lapce-app/src/panel/call_hierarchy_view.rs
use std::{ops::AddAssign, rc::Rc}; use floem::{ IntoView, View, ViewId, reactive::{RwSignal, SignalGet, SignalUpdate, SignalWith}, style::CursorStyle, views::{ Decorators, VirtualVector, container, empty, label, scroll, stack, svg, virtual_stack, }, }; use lsp_types::{CallHierarchyI...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/bin/lapce.rs
lapce-app/src/bin/lapce.rs
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] use lapce_app::app; pub fn main() { app::launch(); }
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/terminal/event.rs
lapce-app/src/terminal/event.rs
use std::{ collections::HashMap, sync::{ Arc, mpsc::{Receiver, Sender}, }, time::Instant, }; use lapce_rpc::terminal::TermId; use parking_lot::RwLock; use super::raw::RawTerminal; /// The notifications for terminals to send back to main thread pub enum TermNotification { SetTitle ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/terminal/view.rs
lapce-app/src/terminal/view.rs
use std::{sync::Arc, time::SystemTime}; use alacritty_terminal::{ grid::Dimensions, index::Side, selection::{Selection, SelectionType}, term::{RenderableContent, cell::Flags, test::TermSize}, }; use floem::{ Renderer, View, ViewId, context::{EventCx, PaintCx}, event::{Event, EventPropagatio...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/terminal/raw.rs
lapce-app/src/terminal/raw.rs
use std::sync::mpsc::Sender; use alacritty_terminal::{ Term, event::EventListener, grid::Dimensions, index::{Column, Direction, Line, Point}, term::{ cell::{Flags, LineLength}, search::{Match, RegexIter, RegexSearch}, test::TermSize, }, vte::ansi, }; use lapce_rpc::{...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/terminal/mod.rs
lapce-app/src/terminal/mod.rs
pub mod data; pub mod event; pub mod panel; pub mod raw; pub mod tab; pub mod view;
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/terminal/data.rs
lapce-app/src/terminal/data.rs
use std::{collections::HashMap, path::PathBuf, rc::Rc, sync::Arc}; use alacritty_terminal::{ Term, grid::{Dimensions, Scroll}, selection::{Selection, SelectionType}, term::{TermMode, test::TermSize}, vi_mode::ViMotion, }; use anyhow::anyhow; use floem::{ keyboard::{Key, KeyEvent, Modifiers, Nam...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/terminal/panel.rs
lapce-app/src/terminal/panel.rs
use std::{collections::HashMap, path::PathBuf, rc::Rc, sync::Arc}; use floem::{ ext_event::create_ext_action, reactive::{Memo, RwSignal, Scope, SignalGet, SignalUpdate, SignalWith}, }; use lapce_core::mode::Mode; use lapce_rpc::{ dap_types::{ self, DapId, RunDebugConfig, StackFrame, Stopped, Thread...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/terminal/tab.rs
lapce-app/src/terminal/tab.rs
use std::{rc::Rc, sync::Arc}; use floem::reactive::{RwSignal, Scope, SignalGet, SignalWith}; use lapce_rpc::terminal::TerminalProfile; use super::data::TerminalData; use crate::{ debug::RunDebugProcess, id::TerminalTabId, window_tab::CommonData, workspace::LapceWorkspace, }; #[derive(Clone)] pub struct Termi...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/icon.rs
lapce-app/src/config/icon.rs
pub struct LapceIcons {} impl LapceIcons { pub const WINDOW_CLOSE: &'static str = "window.close"; pub const WINDOW_RESTORE: &'static str = "window.restore"; pub const WINDOW_MAXIMIZE: &'static str = "window.maximize"; pub const WINDOW_MINIMIZE: &'static str = "window.minimize"; pub const LOGO: &'s...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/svg.rs
lapce-app/src/config/svg.rs
use std::{ collections::HashMap, fs, path::{Path, PathBuf}, }; use include_dir::{Dir, include_dir}; use crate::config::LOGO; const CODICONS_ICONS_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/../icons/codicons"); const LAPCE_ICONS_DIR: Dir = include_dir!("$CARGO_MANIFEST_DIR/../icons/lapce"); #[deriv...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/editor.rs
lapce-app/src/config/editor.rs
use floem::views::editor::text::RenderWhitespace; use serde::{Deserialize, Serialize}; use structdesc::FieldNames; pub const SCALE_OR_SIZE_LIMIT: f64 = 5.0; #[derive(Debug, Clone, Serialize, Deserialize, Default)] pub enum ClickMode { #[default] #[serde(rename = "single")] SingleClick, #[serde(rename ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/watcher.rs
lapce-app/src/config/watcher.rs
use std::sync::{Arc, atomic::AtomicBool, mpsc::Sender}; pub struct ConfigWatcher { tx: Sender<()>, delay_handler: Arc<AtomicBool>, } impl notify::EventHandler for ConfigWatcher { fn handle_event(&mut self, event: notify::Result<notify::Event>) { match event { Ok(event) => match event.k...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/core.rs
lapce-app/src/config/core.rs
use serde::{Deserialize, Serialize}; use structdesc::FieldNames; #[derive(FieldNames, Debug, Clone, Deserialize, Serialize, Default)] #[serde(rename_all = "kebab-case")] pub struct CoreConfig { #[field_names(desc = "Enable modal editing (Vim like)")] pub modal: bool, #[field_names(desc = "Set the color the...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/terminal.rs
lapce-app/src/config/terminal.rs
use std::{collections::HashMap, sync::Arc}; use floem::peniko::Color; use serde::{Deserialize, Serialize}; use structdesc::FieldNames; #[derive(FieldNames, Debug, Clone, Deserialize, Serialize, Default)] #[serde(rename_all = "kebab-case")] pub struct TerminalConfig { #[field_names( desc = "Set the termina...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/ui.rs
lapce-app/src/config/ui.rs
use floem::text::FamilyOwned; use serde::{Deserialize, Serialize}; use structdesc::FieldNames; #[derive(FieldNames, Debug, Clone, Deserialize, Serialize, Default)] #[serde(rename_all = "kebab-case")] pub struct UIConfig { #[field_names(desc = "Set the UI scale. Defaults to 1.0")] scale: f64, #[field_names...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/color_theme.rs
lapce-app/src/config/color_theme.rs
use std::{ collections::{BTreeMap, HashMap}, path::PathBuf, str::FromStr, }; use floem::{peniko::Color, prelude::palette::css}; use serde::{Deserialize, Serialize}; use super::color::LoadThemeError; #[derive(Debug, Clone, Default)] pub enum ThemeColorPreference { #[default] Light, Dark, H...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/icon_theme.rs
lapce-app/src/config/icon_theme.rs
use std::{ ffi::OsStr, path::{Path, PathBuf}, }; use indexmap::IndexMap; use serde::{Deserialize, Serialize}; /// Returns the first item yielded from `items` if at least one item is yielded, all yielded items /// are `Some`, and all yielded items compare equal, else returns `None`. fn try_all_equal_value<T: P...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/src/config/color.rs
lapce-app/src/config/color.rs
use std::path::PathBuf; use thiserror::Error; #[derive(Error, Debug)] pub enum LoadThemeError { #[error("themes folder not found, possibly it could not be created")] ThemesFolderNotFound, #[error("theme file ({theme_name}.toml) was not found in {themes_folder:?}")] FileNotFound { themes_folder...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-app/benches/visual_line.rs
lapce-app/benches/visual_line.rs
use std::{cell::RefCell, collections::HashMap, rc::Rc, sync::Arc}; use criterion::{Criterion, black_box, criterion_group, criterion_main}; use floem::{ reactive::Scope, text::{Attrs, AttrsList, FamilyOwned, TextLayout, Wrap}, views::editor::{ layout::TextLayoutLine, phantom_text::PhantomTex...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/build.rs
lapce-core/build.rs
use std::{env, fs, path::Path}; use anyhow::Result; #[derive(Debug)] struct ReleaseInfo { version: String, branch: String, } fn main() -> Result<()> { println!("cargo:rerun-if-changed=build.rs"); println!("cargo:rerun-if-changed=../.git/HEAD"); println!("cargo:rerun-if-env-changed=CARGO_PKG_VERSI...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/lib.rs
lapce-core/src/lib.rs
#![allow(clippy::manual_clamp)] pub mod directory; pub mod encoding; pub mod language; pub mod lens; pub mod meta; pub mod rope_text_pos; pub mod style; pub mod syntax; // This is primarily being re-exported to avoid changing every single usage // in lapce-app. We should probably remove this at some point. pub use flo...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/rope_text_pos.rs
lapce-core/src/rope_text_pos.rs
use floem_editor_core::buffer::rope_text::RopeText; use lsp_types::Position; use crate::encoding::{offset_utf8_to_utf16, offset_utf16_to_utf8}; pub trait RopeTextPosition: RopeText { /// Converts a UTF8 offset to a UTF16 LSP position /// Returns None if it is not a valid UTF16 offset fn offset_to_position...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/language.rs
lapce-core/src/language.rs
use std::{ collections::{HashMap, HashSet, hash_map::Entry}, fmt::Write, path::Path, str::FromStr, }; use lapce_rpc::style::{LineStyle, Style}; use once_cell::sync::Lazy; use regex::Regex; use strum_macros::{AsRefStr, Display, EnumMessage, EnumString, IntoStaticStr}; use tracing::{Level, event}; use tr...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/style.rs
lapce-core/src/style.rs
use std::str; use lapce_rpc::style::{LineStyle, Style}; use lapce_xi_rope::{LinesMetric, Rope, spans::Spans}; pub const SCOPES: &[&str] = &[ "constant", "type", "type.builtin", "property", "comment", "constructor", "function", "label", "keyword", "string", "variable", "...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/meta.rs
lapce-core/src/meta.rs
#[derive(strum_macros::AsRefStr, PartialEq, Eq)] pub enum ReleaseType { Debug, Stable, Nightly, } include!(concat!(env!("OUT_DIR"), "/meta.rs"));
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/lens.rs
lapce-core/src/lens.rs
use std::mem; use lapce_xi_rope::{ Cursor, Delta, Interval, Metric, interval::IntervalBounds, tree::{DefaultMetric, Leaf, Node, NodeInfo, TreeBuilder}, }; const MIN_LEAF: usize = 5; const MAX_LEAF: usize = 10; pub type LensNode = Node<LensInfo>; #[derive(Clone)] pub struct Lens(LensNode); #[derive(Clon...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/encoding.rs
lapce-core/src/encoding.rs
/// Convert a utf8 offset into a utf16 offset, if possible /// `text` is what the offsets are into pub fn offset_utf8_to_utf16( char_indices: impl Iterator<Item = (usize, char)>, offset: usize, ) -> usize { if offset == 0 { return 0; } let mut utf16_offset = 0; let mut last_ich = None...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/directory.rs
lapce-core/src/directory.rs
use std::path::PathBuf; use directories::{BaseDirs, ProjectDirs}; use crate::meta::NAME; pub struct Directory {} impl Directory { pub fn home_dir() -> Option<PathBuf> { BaseDirs::new().map(|d| PathBuf::from(d.home_dir())) } #[cfg(not(feature = "portable"))] fn project_dirs() -> Option<Proje...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/syntax/highlight.rs
lapce-core/src/syntax/highlight.rs
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * Much of the code in this file is modified from [helix](https://github.com/helix-editor/helix)'s implementati...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/syntax/util.rs
lapce-core/src/syntax/util.rs
use lapce_xi_rope::{Rope, rope::ChunkIter}; use tree_sitter::TextProvider; pub struct RopeChunksIterBytes<'a> { chunks: ChunkIter<'a>, } impl<'a> Iterator for RopeChunksIterBytes<'a> { type Item = &'a [u8]; fn next(&mut self) -> Option<Self::Item> { self.chunks.next().map(str::as_bytes) } } /...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/syntax/mod.rs
lapce-core/src/syntax/mod.rs
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * Much of the code in this file is modified from [helix](https://github.com/helix-editor/helix)'s implementati...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
true
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-core/src/syntax/edit.rs
lapce-core/src/syntax/edit.rs
use floem_editor_core::buffer::{ InsertsValueIter, rope_text::{RopeText, RopeTextRef}, }; use lapce_xi_rope::{ Rope, RopeDelta, RopeInfo, delta::InsertDelta, multiset::{CountMatcher, Subset}, }; use tree_sitter::Point; #[derive(Clone)] pub struct SyntaxEdit(pub(crate) Vec<tree_sitter::InputEdit>); ...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false
lapce/lapce
https://github.com/lapce/lapce/blob/59ce6df700ce4efbe4498a719fe52195e083d2ee/lapce-rpc/src/dap_types.rs
lapce-rpc/src/dap_types.rs
/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. * * Much of the code in this file is modified from [helix](https://github.com/helix-editor/helix)'s implementati...
rust
Apache-2.0
59ce6df700ce4efbe4498a719fe52195e083d2ee
2026-01-04T15:32:17.267102Z
false