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
↓ 4 callers
Function
truncateLeft
truncateLeft truncates a string from the left based on Unicode widths, taking into account grapheme clusters.
misc.go:81
↓ 4 callers
Function
userName
(f os.FileInfo)
os.go:209
↓ 3 callers
Method
addJumpList
()
nav.go:608
↓ 3 callers
Function
cd
(app *app, path string)
eval.go:994
↓ 3 callers
Function
copySize
(srcs []string)
copy.go:33
↓ 3 callers
Function
getDirFirst
(path string)
opts.go:188
↓ 3 callers
Function
getDirOnly
(path string)
opts.go:195
↓ 3 callers
Function
getHidden
(path string)
opts.go:202
↓ 3 callers
Function
getReverse
(path string)
opts.go:216
↓ 3 callers
Method
getSameDirs
fsnotify silently aliases watches by inode, so two paths to the same directory (a symlink and its target) end up as a single entry in watcher.WatchLis
watch.go:176
↓ 3 callers
Function
getSortIgnoreCase
(path string)
opts.go:230
↓ 3 callers
Function
getSortIgnoreDia
(path string)
opts.go:237
↓ 3 callers
Function
getWins
(screen tcell.Screen)
ui.go:493
↓ 3 callers
Function
isExecutable
(f os.FileInfo)
os.go:195
↓ 3 callers
Method
isPreviewable
()
nav.go:130
↓ 3 callers
Function
isRoot
(name string)
misc.go:32
↓ 3 callers
Function
lastGraphemeCluster
lastGraphemeCluster returns the string containing the last grapheme cluster of the input.
misc.go:51
↓ 3 callers
Method
loadDirs
(wd string)
nav.go:561
↓ 3 callers
Method
parseGNU
parseGNU parses the $LS_COLORS environment variable.
colors.go:149
↓ 3 callers
Method
preload
()
nav.go:834
↓ 3 callers
Method
printLine
(screen tcell.Screen, x, y int, st tcell.Style, s string)
ui.go:121
↓ 3 callers
Method
quit
()
app.go:70
↓ 3 callers
Function
readArrays
readArrays reads whitespace-separated string arrays on each line. Single or double quotes can be used to escape whitespace. Hash characters can be use
misc.go:197
↓ 3 callers
Method
readFile
(path string)
app.go:98
↓ 3 callers
Function
readKey
(ev *tcell.EventKey)
key.go:164
↓ 3 callers
Method
rename
()
nav.go:1566
↓ 3 callers
Function
wrapModifier
(s string, mod string)
key.go:141
↓ 2 callers
Method
add
(path string)
watch.go:71
↓ 2 callers
Function
applyOSC
applyOSC takes an OSC sequence and applies it to the given [tcell.Style] object. It currently supports OSC 8 hyperlinks only, implemented as specified
termseq.go:242
↓ 2 callers
Function
applyTermSequence
applyTermSequence takes an escape sequence (e.g. `\033[1m`) and applies it to the given [tcell.Style] object. Accepts SGR and OSC sequences.
termseq.go:118
↓ 2 callers
Method
bottom
()
nav.go:1175
↓ 2 callers
Method
checkReg
(reg *reg)
nav.go:992
↓ 2 callers
Function
copyAll
(srcs []string, dstDir string, preserve []string)
copy.go:101
↓ 2 callers
Method
dirOfWin
(nav *nav, wind int)
ui.go:1129
↓ 2 callers
Function
diskFree
(wd string)
df_statfs.go:11
↓ 2 callers
Method
doComplete
()
app.go:696
↓ 2 callers
Function
fieldToString
used by exportOpts below
main.go:104
↓ 2 callers
Method
findSingle
()
nav.go:1686
↓ 2 callers
Method
get
(f *file)
icons.go:130
↓ 2 callers
Function
getInfo
(path string)
opts.go:209
↓ 2 callers
Function
getLocalOptWords
(localOpts any)
complete.go:146
↓ 2 callers
Function
getOptWords
(opts any)
complete.go:128
↓ 2 callers
Function
getOptsMap
()
main.go:133
↓ 2 callers
Function
getWidths
getWidths calculates the widths of windows as the result of applying the `ratios` option to the screen width. One column is allocated for each divider
misc.go:566
↓ 2 callers
Method
globSel
(pattern string, invert bool)
nav.go:1640
↓ 2 callers
Function
iconWithoutStyle
(icon string)
icons.go:23
↓ 2 callers
Function
isPrintable
isPrintable reports whether a grapheme cluster is safe to display. It rejects C0/C1 controls, DEL, and invalid UTF-8.
termseq.go:349
↓ 2 callers
Function
isValidSortMethod
(method sortMethod)
opts.go:24
↓ 2 callers
Function
linkCount
(f os.FileInfo)
os.go:231
↓ 2 callers
Function
listMarks
(marks map[string]string)
ui.go:1334
↓ 2 callers
Function
listMatches
(screen tcell.Screen, matches []compMatch, selectedInd int)
ui.go:1622
↓ 2 callers
Function
loadFiles
()
app.go:119
↓ 2 callers
Function
matchCmd
(s string)
complete.go:235
↓ 2 callers
Function
matchFile
(s string, dirOnly bool, escape, unescape func(string) string)
complete.go:242
↓ 2 callers
Function
matchPattern
(pattern, name, path string)
nav.go:819
↓ 2 callers
Method
menuComplete
(direction int)
app.go:713
↓ 2 callers
Method
move
(index int)
nav.go:1240
↓ 2 callers
Function
newFile
(path string)
nav.go:48
↓ 2 callers
Function
newScanner
(r io.Reader)
scan.go:39
↓ 2 callers
Function
onLoad
(app *app, files []string)
eval.go:655
↓ 2 callers
Method
parseArray
(arr []string)
icons.go:107
↓ 2 callers
Method
parseEnv
(env string)
icons.go:90
↓ 2 callers
Function
parseKey
(s string)
key.go:208
↓ 2 callers
Method
parsePair
(pair []string)
colors.go:166
↓ 2 callers
Function
parseRuler
(path string)
ruler.go:57
↓ 2 callers
Method
preview
(path string, win *win, mode string)
nav.go:868
↓ 2 callers
Method
printDir
(ui *ui, dir *dir, context *dirContext, dirStyle *dirStyle, previewTimer *time.Timer)
ui.go:253
↓ 2 callers
Function
printPath
printPath prints path for -print-last-dir / -print-selection. Newlines are rejected unconditionally (frame integrity for line-oriented consumers); con
client.go:98
↓ 2 callers
Method
printRight
(screen tcell.Screen, y int, st tcell.Style, s string)
ui.go:125
↓ 2 callers
Method
processUpdate
(update watchUpdate)
watch.go:159
↓ 2 callers
Method
readEvent
(ev tcell.Event, nav *nav)
ui.go:1570
↓ 2 callers
Method
readHistory
()
app.go:201
↓ 2 callers
Function
readLines
readLines reads lines from a file to be displayed as a preview. The number of lines to read is capped since files can be very large. Lines are split o
misc.go:470
↓ 2 callers
Function
sanitizeMessage
sanitizeMessage sanitizes a message intended for the message line. Like sanitizeName it strips control runes, but it preserves terminal sequences that
termseq.go:326
↓ 2 callers
Function
sanitizePreview
sanitizePreview replaces control characters and invalid bytes with the Unicode replacement character (U+FFFD). Tabs are preserved for content where ta
termseq.go:300
↓ 2 callers
Method
save
(mode clipboardMode)
nav.go:1324
↓ 2 callers
Function
saveFiles
(clipboard clipboard)
app.go:162
↓ 2 callers
Function
splitKeys
(s string)
eval.go:698
↓ 2 callers
Function
startServer
()
main.go:174
↓ 2 callers
Method
top
()
nav.go:1164
↓ 2 callers
Function
truncateFilename
truncateFilename truncates a filename at a given position. The position is specified as percentage indicating where the truncation character will appe
misc.go:432
↓ 2 callers
Method
watchDir
(dir *dir)
app.go:736
↓ 2 callers
Method
writeMarks
()
nav.go:1869
↓ 2 callers
Method
writeTags
()
nav.go:1931
↓ 1 callers
Function
NewProgressWriter
(writer io.Writer, nums chan<- int64)
copy.go:20
↓ 1 callers
Method
Write
(b []byte)
copy.go:27
↓ 1 callers
Function
addKeyModifier
(s string, mod tcell.ModMask)
key.go:147
↓ 1 callers
Function
anyKey
()
ui.go:1603
↓ 1 callers
Method
calcDirSize
()
nav.go:2011
↓ 1 callers
Method
cdJumpListNext
()
nav.go:632
↓ 1 callers
Method
cdJumpListPrev
()
nav.go:623
↓ 1 callers
Function
cellSize
(screen tcell.Screen)
sixel.go:86
↓ 1 callers
Function
checkServer
()
main.go:181
↓ 1 callers
Method
clearSixel
(win *win, screen tcell.Screen, filePath string)
sixel.go:19
↓ 1 callers
Function
cmdEscape
cmdEscape is used to escape whitespace and special characters with backslashes in a given string.
misc.go:110
↓ 1 callers
Function
cmdUnescape
cmdUnescape is used to remove backslashes that are used to escape whitespace and special characters in a given string.
misc.go:123
↓ 1 callers
Function
completeCmd
(s string)
complete.go:376
↓ 1 callers
Function
completeSearch
(s string)
complete.go:482
↓ 1 callers
Function
completeShell
(s string)
complete.go:467
↓ 1 callers
Method
copyAsync
(app *app, srcs []string, dstDir string)
nav.go:1339
← previous
next →
101–200 of 407, ranked by callers