╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Files.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
894 return true; 895 } 896 897 pub fn hasCloneUrl(self: *Header.View) bool { 898 return self.cloneUrl() != null; 899 } 900 901 fn cloneUrl(self: *Header.View) ?*ui.widget.CopyableText { 902 for (self.box.children.values()) |*child| switch (child.widget) { 903 .copyable_text => |*copyable_text| return copyable_text, 904 else => {}, 905 }; 906 return null; 907 } 908 909 pub fn clearGrid(self: *Header.View) void { 910 self.box.clearGrid(); 911 } 912 913 pub fn getGrid(self: Header.View) ?Grid { 914 return self.box.getGrid(); 915 } 916 917 pub fn getFocus(self: *Header.View) *Focus { 918 return self.box.getFocus(); 919 } 920 }; 921 }; 922