mirror of
https://github.com/helix-editor/helix.git
synced 2025-10-06 08:23:27 +02:00
Compare commits
2 Commits
config_ref
...
set-title
Author | SHA1 | Date | |
---|---|---|---|
|
a1228e0aa1 | ||
|
03f2bcc60b |
@@ -63,7 +63,7 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
shell = common: prev: {
|
shell = common: prev: {
|
||||||
packages = prev.packages ++ (with common.pkgs; [ lld_10 lldb cargo-tarpaulin ]);
|
packages = prev.packages ++ (with common.pkgs; [ lld_12 lldb cargo-tarpaulin ]);
|
||||||
env = prev.env ++ [
|
env = prev.env ++ [
|
||||||
{ name = "HELIX_RUNTIME"; eval = "$PWD/runtime"; }
|
{ name = "HELIX_RUNTIME"; eval = "$PWD/runtime"; }
|
||||||
{ name = "RUST_BACKTRACE"; value = "1"; }
|
{ name = "RUST_BACKTRACE"; value = "1"; }
|
||||||
|
@@ -575,6 +575,19 @@ impl EditorView {
|
|||||||
surface.set_style(viewport.with_height(1), style);
|
surface.set_style(viewport.with_height(1), style);
|
||||||
if is_focused {
|
if is_focused {
|
||||||
surface.set_string(viewport.x + 1, viewport.y, mode, style);
|
surface.set_string(viewport.x + 1, viewport.y, mode, style);
|
||||||
|
|
||||||
|
// TODO: put this in a better place and possibly cache
|
||||||
|
let _ = crossterm::execute!(
|
||||||
|
std::io::stdout(),
|
||||||
|
crossterm::terminal::SetTitle(format!(
|
||||||
|
"{} - Helix",
|
||||||
|
doc.relative_path()
|
||||||
|
.as_deref()
|
||||||
|
.unwrap_or(std::path::Path::new("[scratch]"))
|
||||||
|
.to_str()
|
||||||
|
.unwrap()
|
||||||
|
))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
surface.set_string(viewport.x + 5, viewport.y, progress, style);
|
surface.set_string(viewport.x + 5, viewport.y, progress, style);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user