diff --git a/.github/workflows/toc.yml b/.github/workflows/toc.yml new file mode 100644 index 0000000..9a044cd --- /dev/null +++ b/.github/workflows/toc.yml @@ -0,0 +1,17 @@ +name: Generate Table of Contents + +on: + push: + branches: + - master + +jobs: + generateTOC: + runs-on: ubuntu-latest + + steps: + - name: TOC Generator + uses: technote-space/toc-generator@v2 + with: + TARGET_PATHS: README.md + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 00fc458..35dddaf 100644 --- a/README.md +++ b/README.md @@ -701,68 +701,5 @@ Implement all(?) of the original percol options Obviously, kudos to the original percol: https://github.com/mooz/percol Much code stolen from https://github.com/mattn/gof -# Table of Contents - -* [peco](#peco) -* [Description](#description) - * [Demo](#demo) -* [Features](#features) - * [Incremental Search](#incremental-search) - * [Select Multiple Lines](#select-multiple-lines) - * [Select Range Of Lines](#select-range-of-lines) - * [Select Filters](#select-filters) - * [Selectable Layout](#selectable-layout) - * [Works on Windows!](#works-on-windows) -* [Installation](#installation) - * [Just want the binary?](#just-want-the-binary) - * [macOS (Homebrew, Scarf)](#macos-homebrew-scarf) - * [Windows (Chocolatey NuGet Users)](#windows-chocolatey-nuget-users) - * [Building peco yourself](#building-peco-yourself) - * [go get IS NOT RECOMMENDED](#go-get-is-not-recommended) -* [Command Line Options](#command-line-options) - * [-h, --help](#-h---help) - * [--version](#--version) - * [--query ](#--query-query) - * [--rcfile ](#--rcfile-filename) - * [-b, --buffer-size ](#-b---buffer-size-num) - * [--null](#--null) - * [--initial-index](#--initial-index) - * [--initial-filter `IgnoreCase|CaseSensitive|SmartCase|Regexp|Fuzzy`](#--initial-filter-ignorecasecasesensitivesmartcaseregexpfuzzy) - * [--prompt](#--prompt) - * [--layout `top-down|bottom-up`](#--layout-top-downbottom-up) - * [--select-1](#--select-1) - * [--on-cancel `success|error`](#--on-cancel-successerror) - * [--selection-prefix `string`](#--selection-prefix-string) - * [--exec `string`](#--exec-string) -* [Configuration File](#configuration-file) - * [Global](#global) - * [Prompt](#prompt) - * [InitialMatcher](#initialmatcher) - * [InitialFilter](#initialfilter) - * [StickySelection](#stickyselection) - * [OnCancel](#oncancel) - * [Keymaps](#keymaps) - * [Key sequences](#key-sequences) - * [Combined actions](#combined-actions) - * [Available keys](#available-keys) - * [Key workarounds](#key-workarounds) - * [Available actions](#available-actions) - * [Default Keymap](#default-keymap) - * [Styles](#styles) - * [Foreground Colors](#foreground-colors) - * [Background Colors](#background-colors) - * [Attributes](#attributes) - * [CustomFilter](#customfilter) - * [Examples](#examples) - * [Layout](#layout) - * [SingleKeyJump](#singlekeyjump) - * [SelectionPrefix](#selectionprefix) -* [FAQ](#faq) - * [Does peco work on (msys2|cygwin)?](#does-peco-work-on-msys2cygwin) - * [Non-latin fonts (e.g. Japanese) look weird on my Windows machine...?](#non-latin-fonts-eg-japanese-look-weird-on-my-windows-machine) -* [Hacking](#hacking) -* [TODO](#todo) -* [AUTHORS](#authors) -* [CONTRIBUTORS](#contributors) -* [Notes](#notes) -* [Table of Contents](#table-of-contents) + + \ No newline at end of file