crash.software
Projects
Pull Requests
Issues
Builds
fzf
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
fzf
Files
🤬
Sign In
master
ROOT
/
src
/
terminal.go
Search
History
2938 lines
|
UTF-8
|
73 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
placeholder
:
*regexp.Regexp
whiteSuffix
:
*regexp.Regexp
offsetComponentRegex
:
*regexp.Regexp
offsetTrimCharsRegex
:
*regexp.Regexp
activeTempFiles
:
[]string
clearCode
:
string
init
()
jumpMode
jumpDisabled
:
jumpMode
jumpEnabled
jumpAcceptEnabled
previewer
version
:
int64
lines
:
[]string
offset
:
int
enabled
:
bool
scrollable
:
bool
final
:
bool
following
:
bool
spinner
:
string
previewed
version
:
int64
numLines
:
int
offset
:
int
filled
:
bool
eachLine
line
:
string
err
:
error
itemLine
current
:
bool
selected
:
bool
label
:
string
queryLen
:
int
width
:
int
result
:
Result
emptyLine
Terminal
initDelay
:
time.Duration
infoStyle
:
infoStyle
spinner
:
[]string
prompt
:
func()
promptLen
:
int
pointer
:
string
pointerLen
:
int
pointerEmpty
:
string
marker
:
string
markerLen
:
int
markerEmpty
:
string
queryLen
:
[2]int
layout
:
layoutType
fullscreen
:
bool
keepRight
:
bool
hscroll
:
bool
hscrollOff
:
int
scrollOff
:
int
wordRubout
:
string
wordNext
:
string
cx
:
int
cy
:
int
offset
:
int
xoffset
:
int
yanked
:
[]rune
input
:
[]rune
multi
:
int
sort
:
bool
toggleSort
:
bool
delimiter
:
Delimiter
expect
:
map[tui.Event]string
keymap
:
map[tui.Event][]*action
keymapOrg
:
map[tui.Event][]*action
pressed
:
string
printQuery
:
bool
history
:
*History
cycle
:
bool
headerFirst
:
bool
headerLines
:
int
header
:
[]string
header0
:
[]string
ellipsis
:
string
ansi
:
bool
tabstop
:
int
margin
:
[4]sizeSpec
padding
:
[4]sizeSpec
strong
:
tui.Attr
unicode
:
bool
borderShape
:
tui.BorderShape
cleanExit
:
bool
paused
:
bool
border
:
tui.Window
window
:
tui.Window
pborder
:
tui.Window
pwindow
:
tui.Window
count
:
int
progress
:
int
reading
:
bool
running
:
bool
failed
:
*string
jumping
:
jumpMode
jumpLabels
:
string
printer
:
func(string)
printsep
:
string
merger
:
*Merger
selected
:
map[int32]selectedItem
version
:
int64
reqBox
:
*util.EventBox
initialPreviewOpts
:
previewOpts
previewOpts
:
previewOpts
previewer
:
previewer
previewed
:
previewed
previewBox
:
*util.EventBox
eventBox
:
*util.EventBox
mutex
:
sync.Mutex
initFunc
:
func()
prevLines
:
[]itemLine
suppress
:
bool
sigstop
:
bool
startChan
:
chan bool
killChan
:
chan int
slab
:
*util.Slab
theme
:
*tui.ColorTheme
tui
:
tui.Renderer
executing
:
*util.AtomicBool
selectedItem
at
:
time.Time
item
:
*Item
byTimeOrder
Len
()
:
int
Swap
(i, j int)
Less
(i, j int)
:
bool
reqPrompt
:
util.EventType
reqInfo
reqHeader
reqList
reqJump
reqRefresh
reqReinit
reqRedraw
reqFullRedraw
reqClose
reqPrintQuery
reqPreviewEnqueue
reqPreviewDisplay
reqPreviewRefresh
reqPreviewDelayed
reqQuit
action
t
:
actionType
a
:
string
actionType
actIgnore
:
actionType
actInvalid
actRune
actMouse
actBeginningOfLine
actAbort
actAccept
actAcceptNonEmpty
actBackwardChar
actBackwardDeleteChar
actBackwardDeleteCharEOF
actBackwardWord
actCancel
actChangePrompt
actClearScreen
actClearQuery
actClearSelection
actClose
actDeleteChar
actDeleteCharEOF
actEndOfLine
actForwardChar
actForwardWord
actKillLine
actKillWord
actUnixLineDiscard
actUnixWordRubout
actYank
actBackwardKillWord
actSelectAll
actDeselectAll
actToggle
actToggleSearch
actToggleAll
actToggleDown
actToggleUp
actToggleIn
actToggleOut
actDown
actUp
actPageUp
actPageDown
actHalfPageUp
actHalfPageDown
actJump
actJumpAccept
actPrintQuery
actRefreshPreview
actReplaceQuery
actToggleSort
actTogglePreview
actTogglePreviewWrap
actPreview
actChangePreview
actChangePreviewWindow
actPreviewTop
actPreviewBottom
actPreviewUp
actPreviewDown
actPreviewPageUp
actPreviewPageDown
actPreviewHalfPageUp
actPreviewHalfPageDown
actPreviousHistory
actNextHistory
actExecute
actExecuteSilent
actExecuteMulti
actSigStop
actFirst
actLast
actReload
actDisableSearch
actEnableSearch
actSelect
actDeselect
actUnbind
actRebind
placeholderFlags
plus
:
bool
preserveSpace
:
bool
number
:
bool
query
:
bool
file
:
bool
searchRequest
sort
:
bool
command
:
*string
previewRequest
template
:
string
pwindow
:
tui.Window
scrollOffset
:
int
list
:
[]*Item
previewResult
version
:
int64
lines
:
[]string
offset
:
int
spinner
:
string
toActions
(types ...actionType)
:
[]*action
defaultKeymap
()
:
map[tui.Event][]*action
trimQuery
(query string)
:
[]rune
hasPreviewAction
(opts *Options)
:
bool
makeSpinner
(unicode bool)
:
[]string
NewTerminal
(opts *Options, eventBox *util.EventBox)
:
*Terminal
reverseStringArray
(input []string)
:
[]string
minWidth
minHeight
calculateSize
(base int, size sizeSpec, occupied int, minSize int, pad int)
:
int
findLastMatch
(pattern string, str string)
:
int
findFirstMatch
(pattern string, str string)
:
int
copySlice
(slice []rune)
:
[]rune
keyMatch
(key tui.Event, event tui.Event)
:
bool
parsePlaceholder
(match string)
:
(bool, string, placeholderFlags)
hasPreviewFlags
(template string)
:
(slot bool, plus bool, query bool)
writeTemporaryFile
(data []string, printSep string)
:
string
cleanTemporaryFiles
()
replacePlaceholder
(template string, stripAnsi bool, delimiter Delimiter, printsep string, forcePlus bool, query string, allItems []*Item)
:
string
*Terminal
parsePrompt
(prompt string)
:
(func(), int)
noInfoLine
()
:
bool
Input
()
:
(bool, []rune)
UpdateCount
(cnt int, final bool, failedCommand *string)
UpdateHeader
(header []string)
UpdateProgress
(progress float32)
UpdateList
(merger *Merger, reset bool)
output
()
:
bool
sortSelected
()
:
[]selectedItem
displayWidth
(runes []rune)
:
int
resizeWindows
()
move
(y int, x int, clear bool)
truncateQuery
()
updatePromptOffset
()
:
([]rune, []rune)
promptLine
()
:
int
placeCursor
()
printPrompt
()
trimMessage
(message string, maxWidth int)
:
string
printInfo
()
printHeader
()
printList
()
printItem
(result Result, line int, i int, current bool)
trimRight
(runes []rune, width int)
:
([]rune, bool)
displayWidthWithLimit
(runes []rune, prefixWidth int, limit int)
:
int
trimLeft
(runes []rune, width int)
:
([]rune, int32)
overflow
(runes []rune, max int)
:
bool
printHighlighted
(result Result, colBase tui.ColorPair, colMatch tui.ColorPair, current bool, match bool)
:
int
renderPreviewSpinner
()
renderPreviewArea
(unchanged bool)
renderPreviewText
(height int, lines []string, lineNo int, unchanged bool)
printPreview
()
printPreviewDelayed
()
processTabs
(runes []rune, prefixWidth int)
:
(string, int)
printAll
()
refresh
()
delChar
()
:
bool
rubout
(pattern string)
replacePlaceholder
(template string, forcePlus bool, input string, list []*Item)
:
string
evaluateScrollOffset
()
:
int
redraw
(clear bool)
executeCommand
(template string, forcePlus bool, background bool)
hasPreviewer
()
:
bool
isPreviewEnabled
()
:
bool
hasPreviewWindow
()
:
bool
currentItem
()
:
*Item
buildPlusList
(template string, forcePlus bool)
:
(bool, []*Item)
selectItem
(item *Item)
:
bool
selectItemChanged
(item *Item)
:
bool
deselectItem
(item *Item)
deselectItemChanged
(item *Item)
:
bool
toggleItem
(item *Item)
:
bool
killPreview
(code int)
cancelPreview
()
Loop
()
constrain
()
vmove
(o int, allowCycle bool)
vset
(o int)
:
bool
maxItems
()
:
int
All occurrences
Please wait...
Page is in error, reload to recover