support

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const AttoVersion string = "0.5.6"

Variables

View Source
var HelpMessage = []string{
	"Atto - A lightweight, opinionated text editor written in Go.",
	"Copyright (c) 2019-2020 Jon Palmisciano",
	"",
	"1.  Usage",
	"",
	"    $ atto <files>",
	"",
	"2.  Shortcuts",
	"",
	"    ^R  Open a new buffer",
	"    ^O  Save the current buffer",
	"    ^X  Close the current buffer",
	"",
	"    ^P  Go to the next buffer",
	"    ^L  Go to the previous buffer",
	"",
	"    ^J  Jump to a specific line",
	"    ^A  Jump to the beginning of the line",
	"    ^E  Jump to the end of the line",

	"    ^C  Cancel the active operation",
	"    ^H  Show this help screen",
	"",
	"3.  Configuration",
	"",
	"    A configuration folder has been created for you at '~/.atto'. Inside you ",
	"    will find the file 'config.yml', which you can edit to change your editor",
	"    preferences.",
	"",
}

Functions

This section is empty.

Types

type FileType

type FileType string

FileType represents a type of file.

const (
	FileTypeMakefile FileType = "Makefile"
	FileTypeCMake    FileType = "CMake"

	// -- Go --
	FileTypeGo       FileType = "Go"
	FileTypeGoModule FileType = "Go Module"

	// -- C/C++ --
	FileTypeC   FileType = "C"
	FileTypeCPP FileType = "C++"

	// -- Text Files --
	FileTypeMarkdown  FileType = "Markdown"
	FileTypePlaintext FileType = "Plaintext"

	FileTypeUnknown FileType = "Unknown"
)

func GuessFileType

func GuessFileType(path string) FileType

GuessFileType attempts to deduce a file's type from its name and extension.

Jump to

Keyboard shortcuts

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