slides

command module
v0.0.0-...-1fd5732 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 1 Imported by: 0

README

Slides

A terminal based preview tool for markdown.

image

Features

  • Turning: turn next/previous slide
  • Scroll: scroll up/down slide
  • Search: search word
  • Tagbar: a preview of slides

Install

Go
go install github.com/0x00-ketsu/slides@latest

From source

git clone https://github.com/0x00-ketsu/slides.git
cd slides
make build

Usage

Quickly

Create(or copy an exist) a markdown file contains your slides, here's a simple example:

# Welcome to Slides
A Terminal based preview tool for markdown

---

# h1
## h2
### h3
#### h4
##### h5
###### h6

---

# Markdown components
You can use everything in markdown!
* Like bulleted list
* You know the deal

1. Numbered lists too

---

# Tables

| Tables | Too    |
| ------ | ------ |
| Even   | Tables |

Then, run:

slides example.md 

slides is accepts input from stdin:

curl http://example.com/slides.md | slides
Keymaps
Slide

Go to specific slide:

  • number: 1-9

Go to first slide:

  • g

Go to last slide:

  • G

Go to previous slide:

  • h

Go to next slide:

  • l

Scroll donw/up slide:

  • j: scroll down
  • k: scroll up
  • /: active search
  • n: goto next slide if search word is matched
  • N: goto previous slide if search word is matched
Tagbar

Toggle Tagbar, default is hide

  • t
Help
  • ?
Quit
  • q esc ctrl-c

Inspiration by

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
term

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL