Compare commits
11
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a49ba94792 | ||
|
|
dec8d87822 | ||
|
|
731bc86d33 | ||
|
|
7fe6e52b06 | ||
|
|
4d0ea8c95f | ||
|
|
1a2e28c2e3 | ||
|
|
31e18db9c1 | ||
|
|
850fc1dec0 | ||
|
|
317a2ba4a3 | ||
|
|
0e7532d8e8 | ||
|
|
4cb65db0eb |
@@ -1,2 +0,0 @@
|
|||||||
env.nu
|
|
||||||
history.txt
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
export def lumen-assono-overtime-calc [startdate = datetime]: nothing -> string {
|
|
||||||
pwsh -command $'Invoke-assOrgaOvertimeCalculator ($startdate)'
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
export def lumen-assono-worktime-calc [datestr = string]: nothing -> string {
|
|
||||||
let $datestr = $datestr | str replace ' +' ' '
|
|
||||||
mut $dateArray = []
|
|
||||||
let $rawDateArray = $datestr | split row ' '
|
|
||||||
if (($rawDateArray | length) mod 2 == 1) {
|
|
||||||
mut $spliceCounter = true
|
|
||||||
for $i in $rawDateArray {
|
|
||||||
if ($spliceCounter) {
|
|
||||||
$dateArray = $dateArray | append $i
|
|
||||||
}
|
|
||||||
$spliceCounter = not $spliceCounter
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$dateArray = $rawDateArray
|
|
||||||
}
|
|
||||||
|
|
||||||
if (($dateArray | length) mod 2 == 1) {
|
|
||||||
error make {msg: 'Uneven Times given!'}
|
|
||||||
}
|
|
||||||
|
|
||||||
mut $dateArrayOutput = []
|
|
||||||
mut $dateArrayOutputBuilderCounter = true
|
|
||||||
for $i in $dateArray {
|
|
||||||
$dateArrayOutput = $dateArrayOutput | append ($i | date from-human | format date '%H:%M')
|
|
||||||
if ($dateArrayOutputBuilderCounter) {
|
|
||||||
$dateArrayOutput = $dateArrayOutput | append '-'
|
|
||||||
} else {
|
|
||||||
$dateArrayOutput = $dateArrayOutput | append '|'
|
|
||||||
}
|
|
||||||
$dateArrayOutputBuilderCounter = not $dateArrayOutputBuilderCounter
|
|
||||||
}
|
|
||||||
let $dateArrayOutput = ($dateArrayOutput | drop 1) | str join ' '
|
|
||||||
|
|
||||||
# $dateArray[0]
|
|
||||||
mut $hours = 0min
|
|
||||||
while (($dateArray | length) > 0) {
|
|
||||||
$hours += ($dateArray | get 1 | into datetime) - ($dateArray | get 0 | into datetime)
|
|
||||||
$dateArray = $dateArray | skip 2
|
|
||||||
}
|
|
||||||
$"($dateArrayOutput)\n($hours | into string)"
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
export def lumen-kwin-get-class [waittimesec = int]: nothing -> string {
|
|
||||||
mut timer = ($waittimesec | into int)
|
|
||||||
while ($timer > 0) {
|
|
||||||
$timer | print
|
|
||||||
$timer -= 1
|
|
||||||
sleep 1sec
|
|
||||||
}
|
|
||||||
qdbus6 org.kde.KWin /KWin queryWindowInfo
|
|
||||||
}
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
export def lumen-search-content [searchstr = string]: any -> table {
|
|
||||||
let $tmp = $in
|
|
||||||
mut $path = pwd
|
|
||||||
if ($tmp != null) {
|
|
||||||
$path = $tmp
|
|
||||||
}
|
|
||||||
cd $path
|
|
||||||
ls -a **/* | par-each {|i|
|
|
||||||
{file: $i.name,
|
|
||||||
content: (if (($i | get type) == file ) {
|
|
||||||
try {open $i.name --raw | find $searchstr} catch {|err| {}}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
} | compact content -e
|
|
||||||
}
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# config.nu
|
|
||||||
#
|
|
||||||
# Installed by:
|
|
||||||
# version = "0.104.1"
|
|
||||||
#
|
|
||||||
# This file is used to override default Nushell settings, define
|
|
||||||
# (or import) custom commands, or run any other startup tasks.
|
|
||||||
# See https://www.nushell.sh/book/configuration.html
|
|
||||||
#
|
|
||||||
# This file is loaded after env.nu and before login.nu
|
|
||||||
#
|
|
||||||
# You can open this file in your default editor using:
|
|
||||||
# config nu
|
|
||||||
#
|
|
||||||
# See `help config nu` for more options
|
|
||||||
#
|
|
||||||
# You can remove these comments if you want or leave
|
|
||||||
# them for future reference.
|
|
||||||
|
|
||||||
$env.config.show_banner = false
|
|
||||||
$env.EDITOR = 'hx'
|
|
||||||
$env.VISUAL = 'hx'
|
|
||||||
+64
@@ -0,0 +1,64 @@
|
|||||||
|
theme = 'rose_pine'
|
||||||
|
|
||||||
|
[editor]
|
||||||
|
line-number = 'relative'
|
||||||
|
cursorline = true
|
||||||
|
auto-format = false
|
||||||
|
bufferline = 'multiple'
|
||||||
|
true-color = true
|
||||||
|
color-modes = true
|
||||||
|
end-of-line-diagnostics = 'hint'
|
||||||
|
|
||||||
|
[editor.statusline]
|
||||||
|
left = ['mode', 'spinner', 'spacer' , 'version-control', 'spacer', 'separator', 'file-name', 'read-only-indicator', 'file-modification-indicator']
|
||||||
|
center = []
|
||||||
|
right = ['diagnostics', 'selections', 'register', 'file-line-ending', 'file-encoding', 'file-type', 'position', 'position-percentage']
|
||||||
|
separator = '│'
|
||||||
|
mode.normal = 'NORMAL'
|
||||||
|
mode.insert = 'INSERT'
|
||||||
|
mode.select = 'SELECT'
|
||||||
|
|
||||||
|
[editor.cursor-shape]
|
||||||
|
normal = 'block'
|
||||||
|
insert = 'bar'
|
||||||
|
select = 'underline'
|
||||||
|
|
||||||
|
[editor.file-picker]
|
||||||
|
hidden = false
|
||||||
|
parents = false
|
||||||
|
ignore = false
|
||||||
|
git-ignore = false
|
||||||
|
git-global = false
|
||||||
|
git-exclude = false
|
||||||
|
|
||||||
|
[editor.whitespace.render]
|
||||||
|
space = 'all'
|
||||||
|
tab = 'all'
|
||||||
|
nbsp = 'all'
|
||||||
|
nnbsp = 'all'
|
||||||
|
|
||||||
|
[editor.indent-guides]
|
||||||
|
render = true
|
||||||
|
|
||||||
|
[editor.inline-diagnostics]
|
||||||
|
cursor-line = 'hint'
|
||||||
|
|
||||||
|
[editor.smart-tab]
|
||||||
|
enable = false
|
||||||
|
|
||||||
|
[keys.normal]
|
||||||
|
'F7' = 'goto_previous_buffer'
|
||||||
|
'F8' = 'goto_next_buffer'
|
||||||
|
X = 'select_line_above'
|
||||||
|
x = 'select_line_below'
|
||||||
|
tab = 'move_parent_node_end'
|
||||||
|
S-tab = 'move_parent_node_start'
|
||||||
|
|
||||||
|
[keys.select]
|
||||||
|
X = 'select_line_above'
|
||||||
|
x = 'select_line_below'
|
||||||
|
tab = 'extend_parent_node_end'
|
||||||
|
S-tab = 'extend_parent_node_start'
|
||||||
|
|
||||||
|
[keys.insert]
|
||||||
|
S-tab = 'move_parent_node_start'
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
# [[language]]
|
||||||
|
# name = 'powershell'
|
||||||
|
# scope = 'source.ps1'
|
||||||
|
# file-types = ['ps1', 'psm1']
|
||||||
|
# roots = ['.git']
|
||||||
|
# comment-token = '#'
|
||||||
|
# indent = { tab-width = 4, unit = '\t' }
|
||||||
|
# language-servers = [ 'powershell-editor-services' ]
|
||||||
|
|
||||||
|
# [language-server.powershell-editor-services]
|
||||||
|
# name = 'powershell-editor-services'
|
||||||
|
# transport = 'stdio'
|
||||||
|
# command = 'pwsh'
|
||||||
|
# args = ['-NoLogo', '-NoProfile', '-Command', 'C:\\PowerShellEditorServices\\PowerShellEditorServices\\Start-EditorServices.ps1 -SessionDetailsPath C:\\PowerShellEditorServices\\PowerShellEditorServices.sessions.lsp.json -LanguageServiceOnly -Stdio']
|
||||||
|
|
||||||
|
# [language.debugger]
|
||||||
|
# name = 'powershell-editor-services'
|
||||||
|
# transport = 'stdio'
|
||||||
|
# command = 'pwsh'
|
||||||
|
# args = ['-NoLogo', '-NoProfile', '-Command', 'C:\\PowerShellEditorServices\\PowerShellEditorServices\\Start-EditorServices.ps1 -SessionDetailsPath C:\\PowerShellEditorServices\\PowerShellEditorServices.sessions.dap.json -DebugServiceOnly -Stdio']
|
||||||
|
|
||||||
|
# [[language.debugger.templates]]
|
||||||
|
# name = 'Attach to existing Powershell Process'
|
||||||
|
# request = 'attach'
|
||||||
|
# completion = [ 'PID' ]
|
||||||
|
# args = { processId = '{0}', runspaceId = '1' }
|
||||||
|
|
||||||
|
# [[language.debugger.templates]]
|
||||||
|
# name = 'Launch Script (Script runs in Background)'
|
||||||
|
# request = 'launch'
|
||||||
|
# completion = [ 'Full Script Path' ]
|
||||||
|
# args = { script = '{0}', runspaceId = '1' }
|
||||||
|
|
||||||
|
#---
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = 'bash'
|
||||||
|
indent = { tab-width = 4, unit = '\t' }
|
||||||
Reference in New Issue
Block a user