Skip to content

Instantly share code, notes, and snippets.

@ras0q
Last active September 29, 2024 02:57
Show Gist options
  • Select an option

  • Save ras0q/1b0890884c0c73cdae5d43cd16723f0c to your computer and use it in GitHub Desktop.

Select an option

Save ras0q/1b0890884c0c73cdae5d43cd16723f0c to your computer and use it in GitHub Desktop.

Revisions

  1. ras0q renamed this gist Sep 29, 2024. 1 changed file with 0 additions and 0 deletions.
  2. ras0q renamed this gist Sep 29, 2024. 1 changed file with 0 additions and 0 deletions.
  3. ras0q revised this gist Sep 29, 2024. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions config.tape
    Original file line number Diff line number Diff line change
    @@ -3,11 +3,10 @@ Require grep
    Require grepop

    Set Shell bash
    Set FontSize 22
    Set FontSize 26
    Set Width 800
    Set Height 400
    Set Padding 32
    Set Margin 16
    Set MarginFill "#6B50FF"
    Set BorderRadius 8
    Set Framerate 30
  4. ras0q revised this gist Sep 29, 2024. 4 changed files with 49 additions and 0 deletions.
    1 change: 1 addition & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    *.gif
    13 changes: 13 additions & 0 deletions config.tape
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    Require cat
    Require grep
    Require grepop

    Set Shell bash
    Set FontSize 22
    Set Width 800
    Set Height 400
    Set Padding 32
    Set Margin 16
    Set MarginFill "#6B50FF"
    Set BorderRadius 8
    Set Framerate 30
    13 changes: 13 additions & 0 deletions demo.tape
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    Output demo.gif

    Source config.tape

    Type "cat go.mod | grep go --color=always" Sleep 500ms Enter

    Sleep 2s

    Type "cat go.mod | grep go" Sleep 500ms
    Left 3 Sleep 500ms
    Type "op" Sleep 500ms Enter

    Sleep 5s
    22 changes: 22 additions & 0 deletions go.mod
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    module github.com/ras0q/grepop

    go 1.23.0

    require (
    github.com/charmbracelet/lipgloss v0.13.0
    github.com/charmbracelet/log v0.4.0
    github.com/charmbracelet/x/ansi v0.2.3
    github.com/charmbracelet/x/term v0.2.0
    )

    require (
    github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
    github.com/go-logfmt/logfmt v0.6.0 // indirect
    github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
    github.com/mattn/go-isatty v0.0.20 // indirect
    github.com/mattn/go-runewidth v0.0.15 // indirect
    github.com/muesli/termenv v0.15.2 // indirect
    github.com/rivo/uniseg v0.4.7 // indirect
    golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
    golang.org/x/sys v0.24.0 // indirect
    )
  5. ras0q created this gist Sep 28, 2024.
    3 changes: 3 additions & 0 deletions traPBlog_CharmでPopなgrepを作る.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # CharmでPopなgrepを作る

    grepop: [ras0q/grepop](https://github.com/ras0q/grepop)