Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gokcehan/lf
/ functions
Functions
407 in github.com/gokcehan/lf
⨍
Functions
407
◇
Types & classes
50
↓ 92 callers
Method
echoerrf
(format string, a ...any)
ui.go:598
↓ 75 callers
Method
loadFile
(app *app, volatile bool)
ui.go:618
↓ 59 callers
Method
currDir
()
nav.go:1956
↓ 54 callers
Method
Name
()
nav.go:138
↓ 50 callers
Method
String
()
parse.go:51
↓ 40 callers
Method
echoerr
(msg string)
ui.go:593
↓ 38 callers
Method
scan
()
scan.go:102
↓ 34 callers
Method
IsDir
()
nav.go:142
↓ 32 callers
Method
next
()
scan.go:62
↓ 31 callers
Function
applyBoolOpt
(opt *bool, e *setExpr)
eval.go:21
↓ 31 callers
Function
normal
(app *app)
eval.go:799
↓ 30 callers
Method
Mode
()
nav.go:140
↓ 30 callers
Method
sort
()
nav.go:203
↓ 23 callers
Method
print
(screen tcell.Screen, x, y int, st tcell.Style, s string)
ui.go:78
↓ 22 callers
Method
eval
(app *app, args []string)
parse.go:52
↓ 21 callers
Function
sanitizeName
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 callers
Function
printLength
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 callers
Method
currFile
()
nav.go:1969
↓ 18 callers
Function
remote
(req string)
client.go:204
↓ 17 callers
Function
update
(app *app)
eval.go:717
↓ 15 callers
Function
replaceTilde
(s string)
misc.go:34
↓ 14 callers
Method
Size
()
nav.go:139
↓ 14 callers
Method
draw
(nav *nav)
ui.go:1141
↓ 14 callers
Method
getDir
(path string)
nav.go:484
↓ 14 callers
Function
matchWord
(s string, words []string)
complete.go:183
↓ 13 callers
Method
ModTime
()
nav.go:141
↓ 12 callers
Method
renew
()
ui.go:575
↓ 12 callers
Function
runSearch
(t *testing.T, ignorecase, smartcase, ignorediacritics, smartdiacritics bool, base, pattern string, expected b
diacritics_test.go:58
↓ 11 callers
Method
position
()
nav.go:701
↓ 10 callers
Function
humanize
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 callers
Function
optionToFmtstr
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 callers
Method
down
(dist int)
nav.go:1083
↓ 9 callers
Function
echoerr
(c net.Conn, msg string)
server.go:145
↓ 9 callers
Function
exitCompMenu
(app *app)
eval.go:1022
↓ 9 callers
Method
sel
(name string, height int)
nav.go:380
↓ 9 callers
Method
sync
()
nav.go:1603
↓ 9 callers
Method
up
(dist int)
nav.go:1061
↓ 8 callers
Function
applyLocalBoolOpt
(localOpt map[string]bool, globalOpt bool, e *setLocalExpr)
eval.go:47
↓ 8 callers
Method
runShell
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 callers
Function
send
(cmd srvCmd)
server.go:154
↓ 7 callers
Method
boundPos
(height int)
nav.go:401
↓ 7 callers
Function
searchMatch
(name, pattern string, method searchMethod)
nav.go:1745
↓ 7 callers
Function
splitWord
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 callers
Method
currFileOrSelections
()
nav.go:1999
↓ 6 callers
Function
echoerrf
(c net.Conn, format string, a ...any)
server.go:150
↓ 6 callers
Function
getFileExtension
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 callers
Function
isDigit
(b byte)
scan.go:90
↓ 6 callers
Function
isSpace
(b byte)
scan.go:82
↓ 6 callers
Function
matchCmdFile
(s string, dirOnly bool)
complete.go:305
↓ 6 callers
Method
parse
()
parse.go:411
↓ 6 callers
Function
parseEscapeSequence
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 callers
Function
removeDiacritics
(baseString string)
diacritics.go:41
↓ 6 callers
Function
resetIncCmd
(app *app)
eval.go:780
↓ 6 callers
Function
stripTermSequence
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 callers
Method
visualSelections
()
nav.go:354
↓ 5 callers
Method
addUpdate
(update watchUpdate)
watch.go:147
↓ 5 callers
Function
applySGR
applySGR takes an SGR sequence and applies it to the given [tcell.Style] object.
termseq.go:144
↓ 5 callers
Function
checkRemoveDiacritics
(testStr, expStr string, t *testing.T)
diacritics_test.go:33
↓ 5 callers
Function
deletePathRecursive
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 callers
Method
echo
(msg string)
ui.go:584
↓ 5 callers
Function
findMatch
(name, pattern string)
nav.go:1665
↓ 5 callers
Function
firstGraphemeCluster
firstGraphemeCluster returns the string containing the first grapheme cluster of the input.
misc.go:43
↓ 5 callers
Function
getDirCounts
(path string)
opts.go:181
↓ 5 callers
Function
getLongest
(s1, s2 string)
complete.go:164
↓ 5 callers
Method
isVisualMode
()
nav.go:350
↓ 5 callers
Method
name
()
nav.go:342
↓ 5 callers
Function
newParser
(r io.Reader)
parse.go:209
↓ 5 callers
Function
onChdir
(app *app)
eval.go:648
↓ 5 callers
Function
preChdir
(app *app)
eval.go:642
↓ 5 callers
Function
quoteString
(s string)
os.go:242
↓ 5 callers
Function
readTermSequence
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 callers
Method
resize
(ui *ui)
nav.go:673
↓ 5 callers
Function
restartIncCmd
(app *app)
eval.go:767
↓ 5 callers
Function
truncateRight
truncateRight truncates a string from the right based on Unicode widths, taking into account grapheme clusters.
misc.go:62
↓ 5 callers
Method
unselect
()
nav.go:1319
↓ 4 callers
Method
Sys
()
nav.go:143
↓ 4 callers
Method
cd
(path string)
nav.go:1629
↓ 4 callers
Method
checkDir
(dir *dir)
nav.go:512
↓ 4 callers
Method
currSelections
()
nav.go:1979
↓ 4 callers
Method
findNext
()
nav.go:1709
↓ 4 callers
Method
findPrev
()
nav.go:1727
↓ 4 callers
Function
getSortBy
(path string)
opts.go:223
↓ 4 callers
Function
groupName
(f os.FileInfo)
os.go:220
↓ 4 callers
Function
infotimefmt
(t time.Time)
ui.go:166
↓ 4 callers
Function
isControlChar
Sanitation helpers for untrusted text (filenames, previews, messages). Pick one of these when handling untrusted input: sanitizePreview - replace con
termseq.go:293
↓ 4 callers
Function
listBinds
(binds map[string]map[string]expr)
ui.go:1218
↓ 4 callers
Function
matchList
(s string, words []string)
complete.go:206
↓ 4 callers
Function
naturalCmp
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 callers
Function
newDir
(path string)
nav.go:187
↓ 4 callers
Function
newWin
(w, h, x, y int)
ui.go:31
↓ 4 callers
Function
parseColor
(toks []string)
colors.go:91
↓ 4 callers
Method
peek
()
scan.go:74
↓ 4 callers
Function
permString
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 callers
Method
printMsg
(screen tcell.Screen, s string)
ui.go:129
↓ 4 callers
Method
renew
()
nav.go:641
↓ 4 callers
Method
searchNext
()
nav.go:1772
↓ 4 callers
Method
searchPrev
()
nav.go:1794
↓ 4 callers
Method
setFilter
(filter []string)
nav.go:1036
↓ 4 callers
Method
toggleSelection
(path string)
nav.go:1253
↓ 4 callers
Function
tokenize
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