1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-06-20 01:19:23 +02:00

Use nerdfont version 3 in demos (#2901)

This commit is contained in:
Jesse Duffield
2023-08-07 21:23:42 +10:00
committed by GitHub
11 changed files with 14 additions and 31 deletions
+4 -1
View File
@@ -75,7 +75,10 @@ cursorStyle: block
# Font family # Font family
# You can use any font that is installed on your machine # You can use any font that is installed on your machine
# in CSS-like syntax # in CSS-like syntax
fontFamily: "DejaVuSansMono Nerd Font" # Download from:
# https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/DejaVuSansMono.zip
# Not using the mono font because it makes icons too small.
fontFamily: "DejaVuSansM Nerd Font"
# The size of the font # The size of the font
fontSize: 8 fontSize: 8
@@ -11,9 +11,7 @@ var AmendOldCommit = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
config.UserConfig.Gui.ShowFileTree = false config.UserConfig.Gui.ShowFileTree = false
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
+1 -3
View File
@@ -11,9 +11,7 @@ var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
shell.CreateFile("my-file.txt", "myfile content") shell.CreateFile("my-file.txt", "myfile content")
+1 -3
View File
@@ -11,9 +11,7 @@ var CherryPick = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
shell.CreateNCommitsWithRandomMessages(50) shell.CreateNCommitsWithRandomMessages(50)
@@ -11,9 +11,7 @@ var CommitAndPush = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
shell.CreateFile("my-file.txt", "myfile content") shell.CreateFile("my-file.txt", "myfile content")
+1 -3
View File
@@ -21,9 +21,7 @@ var CustomPatch = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(cfg *config.AppConfig) { SetupConfig: func(cfg *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's cfg.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
cfg.UserConfig.Gui.NerdFontsVersion = "2"
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
shell.CreateNCommitsWithRandomMessages(30) shell.CreateNCommitsWithRandomMessages(30)
+1 -3
View File
@@ -11,9 +11,7 @@ var Filter = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
shell.CreateNCommitsWithRandomMessages(30) shell.CreateNCommitsWithRandomMessages(30)
@@ -11,9 +11,7 @@ var InteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
shell.CreateFile("my-file.txt", "myfile content") shell.CreateFile("my-file.txt", "myfile content")
@@ -11,9 +11,7 @@ var NukeWorkingTree = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
config.UserConfig.Gui.AnimateExplosion = true config.UserConfig.Gui.AnimateExplosion = true
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
+1 -3
View File
@@ -39,9 +39,7 @@ var StageLines = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
config.UserConfig.Gui.ShowFileTree = false config.UserConfig.Gui.ShowFileTree = false
config.UserConfig.Gui.ShowCommandLog = false config.UserConfig.Gui.ShowCommandLog = false
}, },
+1 -3
View File
@@ -13,9 +13,7 @@ var Undo = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false, Skip: false,
IsDemo: true, IsDemo: true,
SetupConfig: func(config *config.AppConfig) { SetupConfig: func(config *config.AppConfig) {
// No idea why I had to use version 2: it should be using my own computer's config.UserConfig.Gui.NerdFontsVersion = "3"
// font and the one iterm uses is version 3.
config.UserConfig.Gui.NerdFontsVersion = "2"
}, },
SetupRepo: func(shell *Shell) { SetupRepo: func(shell *Shell) {
shell.CreateNCommitsWithRandomMessages(30) shell.CreateNCommitsWithRandomMessages(30)