diff options
Diffstat (limited to '')
9 files changed, 0 insertions, 128 deletions
diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/add.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/add.nu deleted file mode 100755 index 8cf9666c..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/add.nu +++ /dev/null @@ -1,3 +0,0 @@ -export def "main" [] { - "hi!" -} diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/dmenu.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/dmenu.nu deleted file mode 100755 index 177e7483..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/dmenu.nu +++ /dev/null @@ -1,5 +0,0 @@ -# Select a project in dmenu mode -# -# This will give you all projects -# and exectute the selected one as in 'neorg projects <selected>' -def "main" [] {} diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/fstart.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/fstart.nu deleted file mode 100755 index f77cd3f6..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/fstart.nu +++ /dev/null @@ -1,5 +0,0 @@ -# Starts the task -# -# This only happens after it stooped -# the previous active task, if it existed. -def "main" [id: int] {} diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/fstop.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/fstop.nu deleted file mode 100755 index bcaac944..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/fstop.nu +++ /dev/null @@ -1,2 +0,0 @@ -# Stops the current active task -def "main" [] {} diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/list.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/list.nu deleted file mode 100755 index 68a130f9..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/list.nu +++ /dev/null @@ -1,2 +0,0 @@ -# Lists all available contexts -def "main" [] {} diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/neorg.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/neorg.nu deleted file mode 100755 index 92af49cc..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/neorg.nu +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env nu - -use add.nu main -use dmenu.nu -use fstart.nu -use fstop.nu -use list.nu -use project.nu -use task.nu -use workspace.nu [main workspaces] - -# The core of the system-integrated task handling and management -def main [] { - add -} - -# Allows you to quickly add projects -def "main add" [] { - add -} - -# Select a project in dmenu mode -# -# This will give you all projects -# and exectute the selected one as in 'neorg projects <selected>' -def "main dmenu" [] { - dmenu -} - -# Starts the task -# -# This only happens after it stooped -# the previous active task, if it existed. -def "main fstart" [id: int] { - fstart -} - -# Stops the current active task -def "main fstop" [] { - fstop -} - -# Lists all available contexts -def "main list" [] { - list -} - -# Opens the project in the webbrowser -# -# Opens the webbrowser with either the context (P) or -# the current active context as argument if no context is supplied -def "main project" [project?: string] { - project -} - -# Open the context of a task -# -# Open the neorg context associated with the current context and -# the uuid of the task with id ID. Without ID, it'll open the -# current context's norg file. -# If no context is set, drops you to the selection prompt -def "main task" [id?: int] { - task -} - -# Open a neorg workspace -# -# The neorg workspace to open at startup, an empty value drops -# you at a prompt to enter the workspace yourself. -def "main workspace" [ - workspace?: string@workspaces # The workspace to open -] { - workspace $workspace -} diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/project.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/project.nu deleted file mode 100755 index 530eab9b..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/project.nu +++ /dev/null @@ -1,5 +0,0 @@ -# Opens the project in the webbrowser -# -# Opens the webbrowser with either the context (P) or -# the current active context as argument if no context is supplied -def "main" [project?: string] {} diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/task.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/task.nu deleted file mode 100755 index 41d1d6e5..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/task.nu +++ /dev/null @@ -1,7 +0,0 @@ -# Open the context of a task -# -# Open the neorg context associated with the current context and -# the uuid of the task with id ID. Without ID, it'll open the -# current context's norg file. -# If no context is set, drops you to the selection prompt -def "main" [id?: int] {} diff --git a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/workspace.nu b/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/workspace.nu deleted file mode 100755 index dfa79f29..00000000 --- a/sys/nixpkgs/pkgs/scripts/source/specific/neorg/nu/workspace.nu +++ /dev/null @@ -1,25 +0,0 @@ -export def workspaces [] { - # echo "%ALL_WORKSPACES" | split row '|' - ["a", "b"] -} - - -export def "main" [ workspace?: string ] { - if $workspace != null { - let pred = workspaces | where $it == $workspace | is-empty - if $pred == false { - true - } else { - error make { - msg: $"Your Workspace \(($workspace)) is not one of the defined ones: (workspaces)", - } - } - } else { - let tmp = mktemp - printf ":Neorg workspace " | save --append $tmp - - nvim -c "NeorgStart" -s $tmp - - rm $tmp - } -} |