summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-08-07 21:23:42 +1000
committerGitHub <noreply@github.com>2023-08-07 21:23:42 +1000
commitecaf1e900242931ff4098986e0720eca15a8398a (patch)
treef51107ddcac606c272f9308fd453ec5d74c9e6c2
parent2ded352f3afc86d1cd02b1f8bb10ec361ecdf7db (diff)
parent69ff62149484961cbe345b1244dc8afe9762cb59 (diff)
Use nerdfont version 3 in demos (#2901)
-rw-r--r--demo/config.yml5
-rw-r--r--pkg/integration/tests/demo/amend_old_commit.go4
-rw-r--r--pkg/integration/tests/demo/bisect.go4
-rw-r--r--pkg/integration/tests/demo/cherry_pick.go4
-rw-r--r--pkg/integration/tests/demo/commit_and_push.go4
-rw-r--r--pkg/integration/tests/demo/custom_patch.go4
-rw-r--r--pkg/integration/tests/demo/filter.go4
-rw-r--r--pkg/integration/tests/demo/interactive_rebase.go4
-rw-r--r--pkg/integration/tests/demo/nuke_working_tree.go4
-rw-r--r--pkg/integration/tests/demo/stage_lines.go4
-rw-r--r--pkg/integration/tests/demo/undo.go4
11 files changed, 14 insertions, 31 deletions
diff --git a/demo/config.yml b/demo/config.yml
index 856182b27..defe50a5b 100644
--- a/demo/config.yml
+++ b/demo/config.yml
@@ -75,7 +75,10 @@ cursorStyle: block
# Font family
# You can use any font that is installed on your machine
# 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
fontSize: 8
diff --git a/pkg/integration/tests/demo/amend_old_commit.go b/pkg/integration/tests/demo/amend_old_commit.go
index b77a62bd1..522b11fc0 100644
--- a/pkg/integration/tests/demo/amend_old_commit.go
+++ b/pkg/integration/tests/demo/amend_old_commit.go
@@ -11,9 +11,7 @@ var AmendOldCommit = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
config.UserConfig.Gui.ShowFileTree = false
},
SetupRepo: func(shell *Shell) {
diff --git a/pkg/integration/tests/demo/bisect.go b/pkg/integration/tests/demo/bisect.go
index b001708ea..edae1146f 100644
--- a/pkg/integration/tests/demo/bisect.go
+++ b/pkg/integration/tests/demo/bisect.go
@@ -11,9 +11,7 @@ var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
},
SetupRepo: func(shell *Shell) {
shell.CreateFile("my-file.txt", "myfile content")
diff --git a/pkg/integration/tests/demo/cherry_pick.go b/pkg/integration/tests/demo/cherry_pick.go
index 0dd34c8b9..d6f16b19b 100644
--- a/pkg/integration/tests/demo/cherry_pick.go
+++ b/pkg/integration/tests/demo/cherry_pick.go
@@ -11,9 +11,7 @@ var CherryPick = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
},
SetupRepo: func(shell *Shell) {
shell.CreateNCommitsWithRandomMessages(50)
diff --git a/pkg/integration/tests/demo/commit_and_push.go b/pkg/integration/tests/demo/commit_and_push.go
index a0e196cf0..545d24d1e 100644
--- a/pkg/integration/tests/demo/commit_and_push.go
+++ b/pkg/integration/tests/demo/commit_and_push.go
@@ -11,9 +11,7 @@ var CommitAndPush = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
},
SetupRepo: func(shell *Shell) {
shell.CreateFile("my-file.txt", "myfile content")
diff --git a/pkg/integration/tests/demo/custom_patch.go b/pkg/integration/tests/demo/custom_patch.go
index b110054a5..70aecd668 100644
--- a/pkg/integration/tests/demo/custom_patch.go
+++ b/pkg/integration/tests/demo/custom_patch.go
@@ -21,9 +21,7 @@ var CustomPatch = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(cfg *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- cfg.UserConfig.Gui.NerdFontsVersion = "2"
+ cfg.UserConfig.Gui.NerdFontsVersion = "3"
},
SetupRepo: func(shell *Shell) {
shell.CreateNCommitsWithRandomMessages(30)
diff --git a/pkg/integration/tests/demo/filter.go b/pkg/integration/tests/demo/filter.go
index 2e62ba444..c6b6acb1a 100644
--- a/pkg/integration/tests/demo/filter.go
+++ b/pkg/integration/tests/demo/filter.go
@@ -11,9 +11,7 @@ var Filter = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
},
SetupRepo: func(shell *Shell) {
shell.CreateNCommitsWithRandomMessages(30)
diff --git a/pkg/integration/tests/demo/interactive_rebase.go b/pkg/integration/tests/demo/interactive_rebase.go
index fd19e3657..56d711c55 100644
--- a/pkg/integration/tests/demo/interactive_rebase.go
+++ b/pkg/integration/tests/demo/interactive_rebase.go
@@ -11,9 +11,7 @@ var InteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
},
SetupRepo: func(shell *Shell) {
shell.CreateFile("my-file.txt", "myfile content")
diff --git a/pkg/integration/tests/demo/nuke_working_tree.go b/pkg/integration/tests/demo/nuke_working_tree.go
index dba670c39..c6dde3933 100644
--- a/pkg/integration/tests/demo/nuke_working_tree.go
+++ b/pkg/integration/tests/demo/nuke_working_tree.go
@@ -11,9 +11,7 @@ var NukeWorkingTree = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
config.UserConfig.Gui.AnimateExplosion = true
},
SetupRepo: func(shell *Shell) {
diff --git a/pkg/integration/tests/demo/stage_lines.go b/pkg/integration/tests/demo/stage_lines.go
index 6bfa21a98..df29ce61d 100644
--- a/pkg/integration/tests/demo/stage_lines.go
+++ b/pkg/integration/tests/demo/stage_lines.go
@@ -39,9 +39,7 @@ var StageLines = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
config.UserConfig.Gui.ShowFileTree = false
config.UserConfig.Gui.ShowCommandLog = false
},
diff --git a/pkg/integration/tests/demo/undo.go b/pkg/integration/tests/demo/undo.go
index f11a514ac..d6dbb0e83 100644
--- a/pkg/integration/tests/demo/undo.go
+++ b/pkg/integration/tests/demo/undo.go
@@ -13,9 +13,7 @@ var Undo = NewIntegrationTest(NewIntegrationTestArgs{
Skip: false,
IsDemo: true,
SetupConfig: func(config *config.AppConfig) {
- // No idea why I had to use version 2: it should be using my own computer's
- // font and the one iterm uses is version 3.
- config.UserConfig.Gui.NerdFontsVersion = "2"
+ config.UserConfig.Gui.NerdFontsVersion = "3"
},
SetupRepo: func(shell *Shell) {
shell.CreateNCommitsWithRandomMessages(30)