forked from sloum/bombadillo
Solves merge conflicts with base and updates man page language
This commit is contained in:
commit
4de473441a
10
Makefile
10
Makefile
|
@ -13,17 +13,9 @@ test : GOCMD := go1.11.13
|
||||||
# %:z - so settle for %z.
|
# %:z - so settle for %z.
|
||||||
BUILD_TIME := ${shell date "+%Y-%m-%dT%H:%M%z"}
|
BUILD_TIME := ${shell date "+%Y-%m-%dT%H:%M%z"}
|
||||||
|
|
||||||
# If VERSION is empty or not defined use the contents of the VERSION file
|
|
||||||
VERSION := ${shell git describe --exact-match 2> /dev/null}
|
|
||||||
ifndef VERSION
|
|
||||||
VERSION := ${shell cat ./VERSION}
|
|
||||||
endif
|
|
||||||
|
|
||||||
LDFLAGS := -ldflags "-s -X main.version=${VERSION} -X main.build=${BUILD_TIME}"
|
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
${GOCMD} build ${LDFLAGS} -o ${BINARY}
|
${GOCMD} build -o ${BINARY}
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: install-bin install-man install-desktop clean
|
install: install-bin install-man install-desktop clean
|
||||||
|
|
12
bombadillo.1
12
bombadillo.1
|
@ -182,11 +182,11 @@ Navigates to the document set by the \fIhomeurl\fP setting. \fIh\fP can be enter
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
jump
|
jump
|
||||||
Navigates to the previous page in history from the current page. Useful for keeping the current page in your history while still browsing.
|
Navigates to the previous page in history from the current page. Useful for keeping the current page in your history while still browsing. \fIj\fP can be used instead of the full \fIjump\fP.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
jump [history location]
|
jump [history location]
|
||||||
Navigates to the given history location. The history location should be an integer between 0 and 20.
|
Navigates to the given history location. The history location should be an integer between 0 and 20. \fIj\fP can be used instead of the full \fIjump\fP.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
purge *
|
purge *
|
||||||
|
@ -217,6 +217,10 @@ set [setting name] [value]
|
||||||
Sets the value for a given configuration setting. \fIs\fP can be used instead of the full \fIset\fP.
|
Sets the value for a given configuration setting. \fIs\fP can be used instead of the full \fIset\fP.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
|
version
|
||||||
|
Shows the current Bombadillo version number.
|
||||||
|
.TP
|
||||||
|
.B
|
||||||
write .
|
write .
|
||||||
Writes the current document to a file. The file is named by the last component of the url path. If the last component is blank or \fI/\fP a default name will be used. The file saves to the directory set by the \fIsavelocation\fP setting. \fIw\fP can be entered rather than the full \fIwrite\fP.
|
Writes the current document to a file. The file is named by the last component of the url path. If the last component is blank or \fI/\fP a default name will be used. The file saves to the directory set by the \fIsavelocation\fP setting. \fIw\fP can be entered rather than the full \fIwrite\fP.
|
||||||
.TP
|
.TP
|
||||||
|
@ -254,7 +258,7 @@ The path to the directory that \fBbombadillo\fP should write files to. This must
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
searchengine
|
searchengine
|
||||||
The url to use for the LINE COMMANDs \fI?\fP and \fIsearch\fP. Should be a valid search path that terms may be appended to.
|
The url to use for the LINE COMMAND \fIsearch\fP. Should be a valid search path that terms may be appended to.
|
||||||
.TP
|
.TP
|
||||||
.B
|
.B
|
||||||
telnetcommand
|
telnetcommand
|
||||||
|
@ -267,6 +271,8 @@ Can toggle between visual modes. Valid values are \fInormal\fP, \fIcolor\fP, and
|
||||||
.B
|
.B
|
||||||
timeout
|
timeout
|
||||||
The number of seconds after which connections to gopher or gemini servers should time out if the server has not responded.
|
The number of seconds after which connections to gopher or gemini servers should time out if the server has not responded.
|
||||||
|
.TP
|
||||||
|
.B
|
||||||
webmode
|
webmode
|
||||||
Controls behavior when following web links. The following values are valid: \fInone\fP will disable following web links, \fIgui\fP will have the browser attempt to open web links in a user's default graphical web browser; \fIlynx\fP, \fIw3m\fP, and \fIelinks\fP will have the browser attempt to use the selected terminal web browser to handle the rendering of web pages and will display the pages directly in Bombadillo.
|
Controls behavior when following web links. The following values are valid: \fInone\fP will disable following web links, \fIgui\fP will have the browser attempt to open web links in a user's default graphical web browser; \fIlynx\fP, \fIw3m\fP, and \fIelinks\fP will have the browser attempt to use the selected terminal web browser to handle the rendering of web pages and will display the pages directly in Bombadillo.
|
||||||
|
|
||||||
|
|
|
@ -258,6 +258,7 @@ func (c *client) TakeControlInput() {
|
||||||
}
|
}
|
||||||
err = c.NextSearchItem(0)
|
err = c.NextSearchItem(0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
c.PageState.History[c.PageState.Position].WrapContent(c.Width-1,(c.Options["theme"] == "color"))
|
||||||
c.Draw()
|
c.Draw()
|
||||||
}
|
}
|
||||||
case ':', ' ':
|
case ':', ' ':
|
||||||
|
@ -353,6 +354,13 @@ func (c *client) simpleCommand(action string) {
|
||||||
} else {
|
} else {
|
||||||
c.Draw()
|
c.Draw()
|
||||||
}
|
}
|
||||||
|
case "VERSION":
|
||||||
|
ver := version
|
||||||
|
if ver == "" {
|
||||||
|
ver = "Improperly compiled, no version information"
|
||||||
|
}
|
||||||
|
c.SetMessage("Bombadillo version: " + ver, false)
|
||||||
|
c.DrawMessage()
|
||||||
default:
|
default:
|
||||||
c.SetMessage(syntaxErrorMessage(action), true)
|
c.SetMessage(syntaxErrorMessage(action), true)
|
||||||
c.DrawMessage()
|
c.DrawMessage()
|
||||||
|
|
|
@ -72,7 +72,7 @@ func (s *scanner) scanText() Token {
|
||||||
"S", "SET", "R", "RELOAD", "SEARCH",
|
"S", "SET", "R", "RELOAD", "SEARCH",
|
||||||
"Q", "QUIT", "B", "BOOKMARKS", "H",
|
"Q", "QUIT", "B", "BOOKMARKS", "H",
|
||||||
"HOME", "?", "HELP", "C", "CHECK",
|
"HOME", "?", "HELP", "C", "CHECK",
|
||||||
"P", "PURGE", "JUMP", "J":
|
"P", "PURGE", "JUMP", "J", "VERSION":
|
||||||
return Token{Action, capInput}
|
return Token{Action, capInput}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1
help.go
1
help.go
|
@ -25,6 +25,7 @@ var ERRS = map[string]string{
|
||||||
"SET": "`set [setting] [value]`",
|
"SET": "`set [setting] [value]`",
|
||||||
"W": "`w [target]`",
|
"W": "`w [target]`",
|
||||||
"WRITE": "`write [target]`",
|
"WRITE": "`write [target]`",
|
||||||
|
"VERSION": "`version`",
|
||||||
"?": "`? [[command]]`",
|
"?": "`? [[command]]`",
|
||||||
"HELP": "`help [[command]]`",
|
"HELP": "`help [[command]]`",
|
||||||
}
|
}
|
||||||
|
|
5
main.go
5
main.go
|
@ -35,8 +35,7 @@ import (
|
||||||
"tildegit.org/sloum/bombadillo/gemini"
|
"tildegit.org/sloum/bombadillo/gemini"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version string
|
var version string = "2.3.3"
|
||||||
var build string
|
|
||||||
|
|
||||||
var bombadillo *client
|
var bombadillo *client
|
||||||
var helplocation string = "gopher://bombadillo.colorfield.space:70/1/user-guide.map"
|
var helplocation string = "gopher://bombadillo.colorfield.space:70/1/user-guide.map"
|
||||||
|
@ -211,7 +210,7 @@ func main() {
|
||||||
flag.Usage = printHelp
|
flag.Usage = printHelp
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
if *getVersion {
|
if *getVersion {
|
||||||
fmt.Printf("Bombadillo %s - build %s\n", version, build)
|
fmt.Printf("Bombadillo %s\n", version)
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
args := flag.Args()
|
args := flag.Args()
|
||||||
|
|
Loading…
Reference in New Issue