Skip to content

TheWinds/devgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

22 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

devgo

a command-line launcher

devgo

Install

latest version

curl -o- https://raw.githubusercontent.com/TheWinds/devgo/main/install.sh | bash

special version

curl -o- https://raw.githubusercontent.com/TheWinds/devgo/main/install.sh | bash -s 1.0.0

QuickStart

dg

Hotkeys

  • select group โ† โ†’
  • select item โ†‘ โ†“
  • search item type keywords
  • exit ctrl+c ctrl+d esc

Config

If you don't have any configuration, the toml configuration file will be created automatically. You can also create your own yaml configuration file, which can be read better. You can only choose one of them.

file path: ~/.devgo.toml

# random group tab name preifx emoji
tab_emojis="๐Ÿถ๐Ÿฑ๐Ÿญ๐ŸฆŠ๐Ÿป๐Ÿผ๐Ÿฎ๐Ÿท๐Ÿธ๐Ÿต๐Ÿฆ‰๐Ÿฆ„๐ŸŸ๐Ÿณ๐Ÿ–๐Ÿ‚๐Ÿ’ฅ๐ŸŒˆ๐ŸŒž"
mode="easy"

[[group]]
# group name
name="tools"
[[group.item]]
# group item title
title="hello"
# group item command to exec
exec="echo hello devgo"
[[group.item]]
title="date now"
exec="date"

[[group]]
name="website"
[[group.item]]
title="github"
exec="open https://github.com"

[[group]]
name="devgo"
[[group.item]]
title="edit config"
exec="vim $HOME/.devgo"

file Path: ~/.devgo.yaml

tab_emojis: "๐Ÿถ๐Ÿฑ๐Ÿญ๐ŸฆŠ๐Ÿป๐Ÿผ๐Ÿฎ๐Ÿท๐Ÿธ๐Ÿต๐Ÿฆ‰๐Ÿฆ„๐ŸŸ๐Ÿณ๐Ÿ–๐Ÿ‚๐Ÿ’ฅ๐ŸŒˆ๐ŸŒž"
mode: "vim" #`vim` or `easy`

group:
  -
    name: "tools"
    item:
      - { title: "hello", exec: "echo hello devgo" }
      - { title: "date now", exec: "date" }
  -
    name: "website"
    item:
      - { title: "github", exec: "open https://github.com" }

  -
    name: "devgo"
    item:
      - { title: "edit config", exec: "vim $HOME/.devgo.yaml" }

Uninstall

rm $(which dg)

Vim Mode

Not mature enough at present, not recommended.

Inspiration from vimium

  • h j k l: Equivalent to โ† โ†‘ โ†“ โ†’
  • i: Edit ~/.devgo.yaml
  • /: Enter search mode
  • n N: Cycle forward to the next find match
  • gg G: Back to top and bottom
  • u d: Up or down 5 positions
  • x: Exit
  • f: Show all command shortcut key
  • ?: Show help
  • H L: Go to the first or last group
  • r: Try the last command again