Skip to content

Commit

Permalink
update summary
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitavoloboev committed Jul 22, 2018
1 parent abf0531 commit 4799bf4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
)

var (
updateAvailable = &aw.Icon{Value: "icons/update-available.png"}
iconUpdate = &aw.Icon{Value: "icons/update-available.png"}

query string

Expand Down
7 changes: 4 additions & 3 deletions wiki.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ import (
"strings"
)

type link struct {
// Link holds a link with unique UID.
type Link struct {
uid string
name string
url string
}

// parseSummaryFile parses GitBook Summary.md file and returns links.
func parseSummaryFile() []link {
func parseSummaryFile() []Link {
bytes, _ := ioutil.ReadFile("summary.md")

// regex to extract markdown links
Expand Down Expand Up @@ -45,7 +46,7 @@ func searchWiki() {
wf.NewItem(link.name).UID(link.uid).Valid(true).Arg(link.url)
}

// TODO: message doesn't show
// TODO: message doesnt show
wf.WarnEmpty("No matching items", "Try a different query?")

wf.SendFeedback()
Expand Down
17 changes: 11 additions & 6 deletions workflow/Summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
- [Staying on top of things](research/staying-on-top-of-things.md)
- [Blogs](research/blogs.md)
- [Minimalism](minimalism/minimalism.md)
- [Zero waste](minimalism/zero-waste.md)
- [Environment](environment/environment.md)
- [Zero waste](environment/zero-waste.md)
- [Music](music/music.md)
- [Music playlists](music/music-playlists.md)
- [Music artists](music/music-artists.md)
Expand All @@ -35,7 +36,7 @@
- [Happiness](life/happiness.md)
- [Time](life/time.md)
- [Memories](life/memories.md)
- [Journalling](life/journalling.md)
- [Journaling](life/journaling.md)
- [Compassion](life/compassion.md)
- [Success](life/success.md)
- [Death](life/death.md)
Expand Down Expand Up @@ -79,7 +80,7 @@
- [iOS](iOS/iOS.md)
- [Hardware](hardware/hardware.md)
- [Ideas](ideas/ideas.md)
- [Crafting ideas](ideas/crafting-ideas.md)
- [Crafting Ideas](ideas/crafting-ideas.md)
- [Math](math/math.md)
- [Logic](math/logic/logic.md)
- [Combinatory logic](math/logic/combinatory-logic.md)
Expand All @@ -94,6 +95,7 @@
- [Geometry](math/geometry.md)
- [Fractals](math/fractals.md)
- [Number theory](math/number-theory.md)
- [Homotopy theory](math/homotopy-theory.md)
- [Computer Science](computer-science/computer-science.md)
- [Data Structures](computer-science/data-structures/data-structures.md)
- [Algorithms](computer-science/algorithms/algorithms.md)
Expand Down Expand Up @@ -139,10 +141,12 @@
- [OCaml libraries](programming-languages/ocaml/ocaml-libraries.md)
- [C](programming-languages/c/c.md)
- [Lua](programming-languages/lua.md)
- [Ruby](programming-languages/ruby.md)
- [C++](programming-languages/cpp/cpp.md)
- [Idris](programming-languages/idris/idris.md)
- [Agda](programming-languages/agda.md)
- [Coq](programming-languages/coq/coq.md)
- [Assembly](programming-languages/assembly.md)
- [Data Science](data-science/data-science.md)
- [Open Source](open-source/open-source.md)
- [GitHub](open-source/github.md)
Expand Down Expand Up @@ -219,7 +223,7 @@
- [Chrome DevTools](web/browsers/google-chrome/chrome-dev-tools.md)
- [Firefox](web/browsers/firefox.md)
- [Bookmarklets](web/browsers/bookmarklets.md)
- [Stylish](web/browsers/stylish.md)
- [Stylus](web/browsers/stylus.md)
- [Static sites](web/static-sites/static-sites.md)
- [Hugo](web/static-sites/hugo.md)
- [Node.js](web/nodejs/nodejs.md)
Expand Down Expand Up @@ -295,6 +299,7 @@
- [DuckDuckGo](tools/duckduckgo.md)
- [IFTTT](tools/ifttt.md)
- [Dat](tools/dat.md)
- [Email](tools/email.md)
- [Design](design/design.md)
- [Icons](design/icons.md)
- [Fonts](design/fonts.md)
Expand Down Expand Up @@ -357,7 +362,6 @@
- [DNA](neuroscience/dna.md)
- [CLI](cli/cli.md)
- [sed](cli/sed.md)
- [ngrok](cli/ngrok.md)
- [tmux](cli/tmux.md)
- [Humans](humans/humans.md)
- [Alan Watts](humans/alan-watts.md)
Expand Down Expand Up @@ -406,4 +410,5 @@
- [2018 March](looking-back/2018/2018-march.md)
- [2018 April](looking-back/2018/2018-april.md)
- [2018 May](looking-back/2018/2018-may.md)
- [2018 June](looking-back/2018/2018-june.md)
- [2018 June](looking-back/2018/2018-june.md)
- [2018 July](looking-back/2018/2018-july.md)

0 comments on commit 4799bf4

Please sign in to comment.