MCPcopy Create free account

hub / github.com/gokcehan/lf / functions

Functions407 in github.com/gokcehan/lf

↓ 92 callersMethodechoerrf
(format string, a ...any)
ui.go:598
↓ 75 callersMethodloadFile
(app *app, volatile bool)
ui.go:618
↓ 59 callersMethodcurrDir
()
nav.go:1956
↓ 54 callersMethodName
()
nav.go:138
↓ 50 callersMethodString
()
parse.go:51
↓ 40 callersMethodechoerr
(msg string)
ui.go:593
↓ 38 callersMethodscan
()
scan.go:102
↓ 34 callersMethodIsDir
()
nav.go:142
↓ 32 callersMethodnext
()
scan.go:62
↓ 31 callersFunctionapplyBoolOpt
(opt *bool, e *setExpr)
eval.go:21
↓ 31 callersFunctionnormal
(app *app)
eval.go:799
↓ 30 callersMethodMode
()
nav.go:140
↓ 30 callersMethodsort
()
nav.go:203
↓ 23 callersMethodprint
(screen tcell.Screen, x, y int, st tcell.Style, s string)
ui.go:78
↓ 22 callersMethodeval
(app *app, args []string)
parse.go:52
↓ 21 callersFunctionsanitizeName
sanitizeName sanitizes a filename, path, or symlink target for display. Unlike sanitizePreview it also replaces tabs, because tabs in names are expand
termseq.go:313
↓ 20 callersFunctionprintLength
printLength returns the display width of s in terminal cells. It ignores supported terminal control sequences (see [readTermSequence]) and accounts f
ui.go:52
↓ 19 callersMethodcurrFile
()
nav.go:1969
↓ 18 callersFunctionremote
(req string)
client.go:204
↓ 17 callersFunctionupdate
(app *app)
eval.go:717
↓ 15 callersFunctionreplaceTilde
(s string)
misc.go:34
↓ 14 callersMethodSize
()
nav.go:139
↓ 14 callersMethoddraw
(nav *nav)
ui.go:1141
↓ 14 callersMethodgetDir
(path string)
nav.go:484
↓ 14 callersFunctionmatchWord
(s string, words []string)
complete.go:183
↓ 13 callersMethodModTime
()
nav.go:141
↓ 12 callersMethodrenew
()
ui.go:575
↓ 12 callersFunctionrunSearch
(t *testing.T, ignorecase, smartcase, ignorediacritics, smartdiacritics bool, base, pattern string, expected b
diacritics_test.go:58
↓ 11 callersMethodposition
()
nav.go:701
↓ 10 callersFunctionhumanize
humanize converts a size in bytes to a human-readable form using prefixes for either binary (1 KiB = 1024 B) or decimal (1 KB = 1000 B) multiples. The
misc.go:270
↓ 10 callersFunctionoptionToFmtstr
optionToFmtstr takes an escape sequence option (e.g. `\033[1m`) and outputs a complete format string (e.g. `\033[1m%s\033[0m`).
termseq.go:96
↓ 9 callersMethoddown
(dist int)
nav.go:1083
↓ 9 callersFunctionechoerr
(c net.Conn, msg string)
server.go:145
↓ 9 callersFunctionexitCompMenu
(app *app)
eval.go:1022
↓ 9 callersMethodsel
(name string, height int)
nav.go:380
↓ 9 callersMethodsync
()
nav.go:1603
↓ 9 callersMethodup
(dist int)
nav.go:1061
↓ 8 callersFunctionapplyLocalBoolOpt
(localOpt map[string]bool, globalOpt bool, e *setLocalExpr)
eval.go:47
↓ 8 callersMethodrunShell
runShell is used to run a shell command. Modes are as follows: Prefix Wait Async Stdin Stdout Stderr UI action $ No No Yes Ye
app.go:570
↓ 8 callersFunctionsend
(cmd srvCmd)
server.go:154
↓ 7 callersMethodboundPos
(height int)
nav.go:401
↓ 7 callersFunctionsearchMatch
(name, pattern string, method searchMethod)
nav.go:1745
↓ 7 callersFunctionsplitWord
splitWord splits the first word of a string delimited by whitespace from the rest. This is used to tokenize a string one by one without touching the r
misc.go:179
↓ 6 callersMethodcurrFileOrSelections
()
nav.go:1999
↓ 6 callersFunctionechoerrf
(c net.Conn, format string, a ...any)
server.go:150
↓ 6 callersFunctiongetFileExtension
getFileExtension returns the extension of a file with a leading dot. It returns an empty string if extension could not be determined i.e. directories,
misc.go:416
↓ 6 callersFunctionisDigit
(b byte)
scan.go:90
↓ 6 callersFunctionisSpace
(b byte)
scan.go:82
↓ 6 callersFunctionmatchCmdFile
(s string, dirOnly bool)
complete.go:305
↓ 6 callersMethodparse
()
parse.go:411
↓ 6 callersFunctionparseEscapeSequence
parseEscapeSequence takes an escape sequence option (e.g. `\033[1m`) and converts it to a [tcell.Style] object. Legacy function that only accepts SGR.
termseq.go:107
↓ 6 callersFunctionremoveDiacritics
(baseString string)
diacritics.go:41
↓ 6 callersFunctionresetIncCmd
(app *app)
eval.go:780
↓ 6 callersFunctionstripTermSequence
stripTermSequence is used to remove style-related ANSI escape sequences from a given string. Note: this function is based on [printLength] and only s
termseq.go:23
↓ 6 callersMethodvisualSelections
()
nav.go:354
↓ 5 callersMethodaddUpdate
(update watchUpdate)
watch.go:147
↓ 5 callersFunctionapplySGR
applySGR takes an SGR sequence and applies it to the given [tcell.Style] object.
termseq.go:144
↓ 5 callersFunctioncheckRemoveDiacritics
(testStr, expStr string, t *testing.T)
diacritics_test.go:33
↓ 5 callersFunctiondeletePathRecursive
deletePathRecursive deletes entries from a map if the key is either the given path or a subpath of it. This is useful for clearing cached data when a
misc.go:453
↓ 5 callersMethodecho
(msg string)
ui.go:584
↓ 5 callersFunctionfindMatch
(name, pattern string)
nav.go:1665
↓ 5 callersFunctionfirstGraphemeCluster
firstGraphemeCluster returns the string containing the first grapheme cluster of the input.
misc.go:43
↓ 5 callersFunctiongetDirCounts
(path string)
opts.go:181
↓ 5 callersFunctiongetLongest
(s1, s2 string)
complete.go:164
↓ 5 callersMethodisVisualMode
()
nav.go:350
↓ 5 callersMethodname
()
nav.go:342
↓ 5 callersFunctionnewParser
(r io.Reader)
parse.go:209
↓ 5 callersFunctiononChdir
(app *app)
eval.go:648
↓ 5 callersFunctionpreChdir
(app *app)
eval.go:642
↓ 5 callersFunctionquoteString
(s string)
os.go:242
↓ 5 callersFunctionreadTermSequence
readTermSequence is used to extract and return a terminal sequence from a given string. If no supported sequence could be found, an empty string is re
termseq.go:51
↓ 5 callersMethodresize
(ui *ui)
nav.go:673
↓ 5 callersFunctionrestartIncCmd
(app *app)
eval.go:767
↓ 5 callersFunctiontruncateRight
truncateRight truncates a string from the right based on Unicode widths, taking into account grapheme clusters.
misc.go:62
↓ 5 callersMethodunselect
()
nav.go:1319
↓ 4 callersMethodSys
()
nav.go:143
↓ 4 callersMethodcd
(path string)
nav.go:1629
↓ 4 callersMethodcheckDir
(dir *dir)
nav.go:512
↓ 4 callersMethodcurrSelections
()
nav.go:1979
↓ 4 callersMethodfindNext
()
nav.go:1709
↓ 4 callersMethodfindPrev
()
nav.go:1727
↓ 4 callersFunctiongetSortBy
(path string)
opts.go:223
↓ 4 callersFunctiongroupName
(f os.FileInfo)
os.go:220
↓ 4 callersFunctioninfotimefmt
(t time.Time)
ui.go:166
↓ 4 callersFunctionisControlChar
Sanitation helpers for untrusted text (filenames, previews, messages). Pick one of these when handling untrusted input: sanitizePreview - replace con
termseq.go:293
↓ 4 callersFunctionlistBinds
(binds map[string]map[string]expr)
ui.go:1218
↓ 4 callersFunctionmatchList
(s string, words []string)
complete.go:206
↓ 4 callersFunctionnaturalCmp
naturalCmp compares two strings for natural sorting which takes into account the values of numbers in strings. For example, '2' is ordered before '10'
misc.go:366
↓ 4 callersFunctionnewDir
(path string)
nav.go:187
↓ 4 callersFunctionnewWin
(w, h, x, y int)
ui.go:31
↓ 4 callersFunctionparseColor
(toks []string)
colors.go:91
↓ 4 callersMethodpeek
()
scan.go:74
↓ 4 callersFunctionpermString
permString returns an ls(1)-style string representation of the given file mode, to avoid using [fs.FileMode.String], which differs slightly.
misc.go:316
↓ 4 callersMethodprintMsg
(screen tcell.Screen, s string)
ui.go:129
↓ 4 callersMethodrenew
()
nav.go:641
↓ 4 callersMethodsearchNext
()
nav.go:1772
↓ 4 callersMethodsearchPrev
()
nav.go:1794
↓ 4 callersMethodsetFilter
(filter []string)
nav.go:1036
↓ 4 callersMethodtoggleSelection
(path string)
nav.go:1253
↓ 4 callersFunctiontokenize
tokenize splits the given string by whitespace. It is aware of escaped and quoted whitespace so that they are not split unintentionally.
misc.go:150
next →1–100 of 407, ranked by callers