Skip to content

Commit

Permalink
Merge pull request #242 from noborus/fieldalignment
Browse files Browse the repository at this point in the history
Change order by fieldalignment
  • Loading branch information
noborus authored Jan 3, 2023
2 parents 62f99c1 + 0b66860 commit 29eedca
Show file tree
Hide file tree
Showing 17 changed files with 35 additions and 35 deletions.
4 changes: 2 additions & 2 deletions oviewer/content.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
// content represents one character on the terminal.
// content is a value that can be set in SetContent() of tcell.
type content struct {
style tcell.Style
combc []rune
width int
mainc rune
combc []rune
style tcell.Style
}

// contents represents one line of contents.
Expand Down
2 changes: 1 addition & 1 deletion oviewer/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ func (root *Root) MoveBottom() {

// eventDocument represents a set document event.
type eventDocument struct {
docNum int
tcell.EventTime
docNum int
}

// SetDocument fires the eventDocument event.
Expand Down
8 changes: 4 additions & 4 deletions oviewer/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@ const (
type Input struct {
Event Eventer

value string
cursorX int

// Candidate is prepared when the history is used as an input candidate.
// Header and SkipLines use numbers up and down instead of candidate.
DelimiterCandidate *candidate
ModeCandidate *candidate
SearchCandidate *candidate
GoCandidate *candidate
DelimiterCandidate *candidate
TabWidthCandidate *candidate
WatchCandidate *candidate
WriteBACandidate *candidate
SectionDelmCandidate *candidate
SectionStartCandidate *candidate
MultiColorCandidate *candidate
JumpTargetCandidate *candidate

value string
cursorX int
}

// NewInput returns all the various inputs.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_delimiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func delimiterCandidate() *candidate {

// eventDelimiter represents the delimiter input mode.
type eventDelimiter struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newDelimiterEvent returns delimiterEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_goto.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ func gotoCandidate() *candidate {

// eventGoto represents the goto input mode.
type eventGoto struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newGotoEvent returns gotoEvent.
Expand Down
2 changes: 1 addition & 1 deletion oviewer/input_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func (root *Root) setHeaderMode() {

// eventHeader represents the goto input mode.
type eventHeader struct {
value string
tcell.EventTime
value string
}

// newHeaderEvent returns headerEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_jumptarget.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ func jumpTargetCandidate() *candidate {

// eventJumpTarget represents the jump target input mode.
type eventJumpTarget struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newJumpTargetEvent returns jumpTargetEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_multicolor.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ func multiColorCandidate() *candidate {

// eventMultiColor represents the multi color input mode.
type eventMultiColor struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newMultiColorEvent returns multiColorEvent.
Expand Down
8 changes: 4 additions & 4 deletions oviewer/input_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ func searchCandidate() *candidate {

// eventInputSearch represents the search input mode.
type eventInputSearch struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newSearchEvent returns SearchInput.
Expand Down Expand Up @@ -74,9 +74,9 @@ func (root *Root) setBackSearchMode() {

// eventInputBackSearch represents the back search input mode.
type eventInputBackSearch struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newBackSearchEvent returns backSearchEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_section_delimiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ func sectionDelimiterCandidate() *candidate {

// delimiterInput represents the delimiter input mode.
type eventSectionDelimiter struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newSectionDelimiterEvent returns sectionDelimiterInput.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_section_start.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ func sectionStartCandidate() *candidate {

// eventSectionStart represents the section start position input mode.
type eventSectionStart struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newSectionStartEvent returns sectionDelimiterEvent.
Expand Down
2 changes: 1 addition & 1 deletion oviewer/input_skip.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ func (root *Root) setSkipLinesMode() {

// eventSkipLines represents the goto input mode.
type eventSkipLines struct {
value string
tcell.EventTime
value string
}

// newSkipLinesEvent returns skipLinesEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_tabwidth.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ func tabWidthCandidate() *candidate {

// eventTabWidth represents the TABWidth input mode.
type eventTabWidth struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newTabWidthEvent returns tabWidthEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_viewmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ func viewModeCandidate() *candidate {

// eventViewMode represents the mode input mode.
type eventViewMode struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newViewModeEvent returns viewModeEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ func watchCandidate() *candidate {

// eventWatchInterval represents the WatchInteval input mode.
type eventWatchInterval struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newWatchIntevalInputt returns watchIntervalEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/input_writeba.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ func baCandidate() *candidate {

// eventWriteBA represents the WatchInteval input mode.
type eventWriteBA struct {
value string
clist *candidate
tcell.EventTime
clist *candidate
value string
}

// newWriteBAEvent returns writeBAEvent.
Expand Down
4 changes: 2 additions & 2 deletions oviewer/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ func (root *Root) nextBackSearch(ctx context.Context, str string) {

// eventNextSearch represents search event.
type eventNextSearch struct {
str string
tcell.EventTime
str string
}

// setNextSearch fires the exntNextSearch event.
Expand All @@ -423,8 +423,8 @@ func (root *Root) setNextSearch() {

// eventNextBackSearch represents backward search event.
type eventNextBackSearch struct {
str string
tcell.EventTime
str string
}

// setNextBackSearch fires the exntNextBackSearch event.
Expand Down

0 comments on commit 29eedca

Please sign in to comment.