summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradmin <contact@optics-design.com>2025-04-26 22:57:28 +0200
committeradmin <contact@optics-design.com>2025-04-26 22:57:28 +0200
commit0ede748577b45f3d9ed91a0fdaf142953fe7a744 (patch)
tree14faf3fc51d66beebb477e045a165c2d3d77b9eb
Initial Commit
-rw-r--r--.gitignore2
-rw-r--r--AutoHotkey/hotkeys.ahk247
-rw-r--r--alacritty/alacritty.toml39
-rw-r--r--clangd/config.yaml3
-rw-r--r--emacs/init.el327
-rw-r--r--gpg/gpg.conf71
-rw-r--r--jpegview/JPEGView.ini662
-rw-r--r--jpegview/KeyMap.txt.default89
-rw-r--r--mpv/mpv.conf4
-rw-r--r--neovide/neovide-settings.json1
-rw-r--r--nvim/LICENSE674
-rw-r--r--nvim/init.lua394
-rw-r--r--nvim/lua/codev.lua11
-rw-r--r--nvim/lua/keybindings.lua162
-rw-r--r--nvim/lua/options.lua43
-rw-r--r--nvim/lua/plugins.lua256
-rw-r--r--nvim/syntax/codelis.vim47
-rw-r--r--nvim/syntax/codev.vim66
-rw-r--r--powershell/Microsoft.PowerShell_profile.ps1188
-rw-r--r--telegram/shortcuts-custom.json36
-rw-r--r--wezterm/wezterm.lua52
-rw-r--r--windows-terminal/settings.json124
22 files changed, 3498 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0edc1a0
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+scoop/config.json
+nvim/lazy-lock.json
diff --git a/AutoHotkey/hotkeys.ahk b/AutoHotkey/hotkeys.ahk
new file mode 100644
index 0000000..1415c3f
--- /dev/null
+++ b/AutoHotkey/hotkeys.ahk
@@ -0,0 +1,247 @@
+UserPath := EnvGet("USERPROFILE")
+syncPath := EnvGet("SYNC")
+DetectHiddenWindows true
+#SuspendExempt
+^!o::Suspend ; Ctrl+Alt+o
+#SuspendExempt False
+;Windows Terminal
+^+,::
+{
+ ; Check if Windows Terminal is running
+ if WinExist("ahk_exe WindowsTerminal.exe" )
+ {
+ ; If Windows Terminal is already in the foreground, minimize it
+ if WinActive("ahk_exe WindowsTerminal.exe" )
+ {
+ WinMinimize("ahk_exe WindowsTerminal.exe")
+ }
+ else
+ {
+ ; If Windows Terminal is running but not in the foreground, bring it to the foreground
+ WinActivate("ahk_exe WindowsTerminal.exe")
+ }
+ }
+ else
+ {
+ ; If Windows Terminal is not running, launch it
+ Run(UserPath . "\scoop\apps\windows-terminal\current\WindowsTerminal.exe")
+ }
+}
+;WSL
+^+.::
+{
+ ; Check if WSL is running
+ if WinExist("ahk_exe wsl.exe" )
+ {
+ ; If WSL is already in the foreground, minimize it
+ if WinActive("ahk_exe wsl.exe" )
+ {
+ WinMinimize("ahk_exe wsl.exe" )
+ }
+ else
+ {
+ ; If WSL is running but not in the foreground, bring it to the foreground
+ WinActivate("ahk_exe wsl.exe" )
+ }
+ }
+ else
+ {
+ ; If WSL is not running, launch it
+ Run("C:\Program Files\WSL\wsl.exe --distribution-id {ae70865d-7235-4943-9970-24cee46c9be2} --cd %USERPROFILE%")
+ }
+}
+;Neovide
+^+/::
+{
+ ; Check if Neovide is running
+ if WinExist("ahk_class Window Class ahk_exe neovide.exe")
+ {
+ ; If Neovide is already in the foreground, minimize it
+ if WinActive("ahk_class Window Class ahk_exe neovide.exe")
+ {
+ WinMinimize("ahk_class Window Class ahk_exe neovide.exe")
+ }
+ else
+ {
+ ; If Neovide is running but not in the foreground, bring it to the foreground
+ WinActivate("ahk_class Window Class ahk_exe neovide.exe" )
+ }
+ }
+ else
+ {
+ ; If Neovide is not running, launch it
+ Run(UserPath . "\scoop\apps\Neovide\current\neovide.exe")
+ }
+}
+
+;Emacs
+!+,::
+{
+
+ ; Check if Emacs is running
+ if WinExist("ahk_class Emacs ahk_exe emacs.exe")
+ {
+ ; If Emacs is already in the foreground, minimize it
+ if WinActive("ahk_class Emacs ahk_exe emacs.exe")
+ {
+ WinMinimize("ahk_class Emacs ahk_exe emacs.exe")
+ }
+ else
+ {
+ ; If Emacs is running but not in the foreground, bring it to the foreground
+ WinActivate("ahk_class Emacs ahk_exe emacs.exe" )
+ }
+ }
+ else
+ {
+ ; If Emacs is not running, launch it
+ Run(UserPath . "\scoop\apps\emacs\current\bin\emacsclientw.exe -c")
+ }
+}
+;Obsidian
+!+.::
+{
+
+ ; Check if Obsidian is running
+ if WinExist("ahk_class Chrome_WidgetWin_1 ahk_exe Obsidian.exe")
+ {
+ ; If Obsidian is already in the foreground, minimize it
+ if WinActive("ahk_class Chrome_WidgetWin_1 ahk_exe Obsidian.exe")
+ {
+ WinMinimize("ahk_class Chrome_WidgetWin_1 ahk_exe Obsidian.exe")
+ }
+ else
+ {
+ ; If Obsidian is running but not in the foreground, bring it to the foreground
+ WinActivate("ahk_class Chrome_WidgetWin_1 ahk_exe Obsidian.exe" )
+ }
+ }
+ else
+ {
+ ; If Obsidian is not running, launch it
+ Run(UserPath . "\scoop\apps\obsidian\current\Obsidian.exe")
+ }
+}
+;Zotero
+!+/::
+{
+
+ ; Check if Zotero is running
+ if WinExist("ahk_class MozillaWindowClass ahk_exe zotero.exe")
+ {
+ ; If Zotero is already in the foreground, minimize it
+ if WinActive("ahk_class MozillaWindowClass ahk_exe zotero.exe")
+ {
+ WinMinimize("ahk_class MozillaWindowClass ahk_exe zotero.exe")
+ }
+ else
+ {
+ ; If Zotero is running but not in the foreground, bring it to the foreground
+ WinActivate("ahk_class MozillaWindowClass ahk_exe zotero.exe" )
+ }
+ }
+ else
+ {
+ ; If Zotero is not running, launch it
+ Run(UserPath . "\scoop\apps\zotero\current\zotero.exe")
+ }
+}
+;Telegram
+^!,::
+{
+
+ ; Check if Telegram is running
+ if WinExist("ahk_exe Telegram.exe")
+ {
+ ; If Telegram is already in the foreground, minimize it
+ if WinActive("ahk_exe Telegram.exe")
+ {
+ WinMinimize("ahk_exe Telegram.exe")
+ }
+ else
+ {
+ ; If Telegram is running but not in the foreground, bring it to the foreground
+ WinActivate("Telegram" )
+ }
+ }
+}
+
+;Browser
+^!.::
+{
+
+ ; Check if Browser is running
+ if WinExist("ahk_class MozillaWindowClass ahk_exe librewolf.exe")
+ {
+ ; If Browser is already in the foreground, minimize it
+ if WinActive("ahk_class MozillaWindowClass ahk_exe librewolf.exe")
+ {
+ WinMinimize("ahk_class MozillaWindowClass ahk_exe librewolf.exe")
+ }
+ else
+ {
+ ; If Browser is running but not in the foreground, bring it to the foreground
+ WinActivate("ahk_class MozillaWindowClass ahk_exe librewolf.exe" )
+ }
+ }
+ else
+ {
+ ; If Browser is not running, launch it
+ Run(UserPath . "\scoop\apps\librewolf\current\LibreWolf-Portable.exe")
+ }
+}
+;Audacious
+^!/::
+{
+
+ ; Check if Audacious is running
+ if WinExist("ahk_class Qt672QWindowIcon ahk_exe audacious.exe")
+ {
+ ; If Audacious is already in the foreground, minimize it
+ if WinActive("ahk_class Qt672QWindowIcon ahk_exe audacious.exe")
+ {
+ WinMinimize("ahk_class Qt672QWindowIcon ahk_exe audacious.exe")
+ }
+ else
+ {
+ ; If Audacious is running but not in the foreground, bring it to the foreground
+ WinActivate("ahk_class Qt672QWindowIcon ahk_exe audacious.exe" )
+ }
+ }
+ else
+ {
+ ; If Audacious is not running, launch it
+ Run(UserPath . "\scoop\apps\audacious\current\bin\audacious.exe")
+ }
+}
+;Bookmark Finder
+^/::
+{
+ ; Run the batch file
+ Run(syncPath . "\Repos\Windows\Batch_tools\bookmarkfinder\bookmarkfinder.bat")
+}
+
+;AI
+^!i::
+{
+
+ ; Check if AI is running
+ if WinExist("Claude")
+ {
+ ; If AI is already in the foreground, minimize it
+ if WinActive("Claude")
+ {
+ WinMinimize("Claude")
+ }
+ else
+ {
+ ; If AI is running but not in the foreground, bring it to the foreground
+ WinActivate("Claude")
+ }
+ }
+ else
+ {
+ ; If AI is not running, launch it
+ Run("Claude.exe")
+ }
+}
diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml
new file mode 100644
index 0000000..41c0301
--- /dev/null
+++ b/alacritty/alacritty.toml
@@ -0,0 +1,39 @@
+[terminal.shell]
+program = "pwsh.exe"
+
+[window]
+decorations = "None"
+#startup_mode = "Maximized"
+
+[font]
+normal = {family = "Hack NF", style = "Regular"}
+bold = {family = "Hack NF", style = "Bold"}
+italic = {family = "Hack NF", style = "Italic"}
+bold_italic = {family = "Hack NF", style = "Bold Italic"}
+# normal = {family = "MesloLGS NF", style = "Regular"}
+# Bold font style
+# bold = { style = "Bold" } # Inherits family from normal, Default style: Bold
+#
+# # Italic font style
+# italic = { style = "Italic" } # Inherits family from normal, Default style: Italic
+#
+# # Bold Italic font style
+# bold_italic = { style = "Bold Italic" } # Inherits family from normal, Default style: Bold Italic
+
+# Font size in points
+size = 16 # Default: 11.25
+[keyboard]
+bindings = [
+# {key = "Enter", mods = "Control", action = "ToggleFullscreen"},
+{key = "Return", mods = "Alt", action = "ReceiveChar"},
+{key = "W", mods = "Control|Shift", action = "Quit"},
+# {key = "C", mods = "Control|Shift", action = "ReceiveChar"}
+# {key = "Space", mods="Control", chars = "\u0002"}
+{key = "i", mods="Control", action = "ReceiveChar"}
+]
+
+[general]
+working_directory = "~"
+
+[terminal]
+
diff --git a/clangd/config.yaml b/clangd/config.yaml
new file mode 100644
index 0000000..235b8c1
--- /dev/null
+++ b/clangd/config.yaml
@@ -0,0 +1,3 @@
+CompileFlags:
+ Add:
+ - --target=x86_64-w64-windows-gnu
diff --git a/emacs/init.el b/emacs/init.el
new file mode 100644
index 0000000..02f1bc3
--- /dev/null
+++ b/emacs/init.el
@@ -0,0 +1,327 @@
+(setq user-profile (getenv "USERPROFILE"))
+(setq configs-dir (concat(getenv "SYNC") "/Repos/Emacs"))
+(setq notes-dir (concat (getenv "SYNC") "/Notes/Org/"))
+;; Disable native compilation
+(setq comp-deferred-compilation nil)
+(setq native-comp-deferred-compilation nil)
+(setq org-export-with-drawers t)
+
+(setq make-backup-files nil)
+
+(setq default-directory (file-name-as-directory notes-dir))
+(add-to-list 'default-frame-alist '(fullscreen . maximized))
+(defun generate-new-file-name () "Ask for a title and generate a file name based on it"
+ (let* ((file-name (read-string "Title: "))
+ (my-path (concat
+ notes-dir ; Or whatever path you want
+ (format-time-string "%Y%m%d%H%M%S") "-"
+ (replace-regexp-in-string "[^a-zA-Z0-9-]+" "-" file-name) ".org"))) ; Replace invalid path characters
+ (setq mc/org-capture-filename file-name) ; Save variable to be used later in the template
+ my-path))
+
+
+(setq inhibit-startup-message t)
+(scroll-bar-mode -1)
+(tool-bar-mode -1)
+(tooltip-mode -1)
+(set-fringe-mode 10)
+
+
+(menu-bar-mode -1)
+(setq visible-bell t)
+
+(if (daemonp)
+ (add-hook 'after-make-frame-functions
+ (lambda (frame)
+ (with-selected-frame frame
+ (set-face-attribute 'default nil :font "Hack NF" :height 220))))
+ (set-face-attribute 'default nil :font "Hack NF" :height 220))
+
+
+
+;; Make ESC quit prompts
+(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
+
+;; Initialize package sources
+(require 'package)
+
+(setq package-archives '(("melpa" . "https://melpa.org/packages/")
+ ("org" . "https://orgmode.org/elpa/")
+ ("elpa" . "https://elpa.gnu.org/packages/")))
+
+(package-initialize)
+(unless package-archive-contents
+ (package-refresh-contents))
+
+;; Initialize use-package on non-Linux platforms
+(unless (package-installed-p 'use-package)
+ (package-install 'use-package))
+
+(require 'use-package)
+(setq use-package-always-ensure t)
+
+;;; Enable all 3 for relative number mode
+;; (column-number-mode)
+;; (global-display-line-numbers-mode t)
+;; (setq display-line-numbers-type 'relative)
+
+;; Disable line numbers for some modes
+(dolist (mode '(term-mode-hook
+ eshell-mode-hook))
+ (add-hook mode (lambda () (display-line-numbers-mode 0))))
+
+;; (use-package command-log-mode)
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(package-selected-packages
+ '(projectile org-contacts elfeed org-roam htmlize org-download evil-org evil-escape evil-collection evil general doom-themes helpful counsel ivy-rich rainbow-delimiters which-key doom-modeline ivy)))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )
+
+(use-package ivy
+ :diminish
+ :bind (("C-s" . swiper)
+ :map ivy-minibuffer-map
+ ("TAB" . ivy-alt-done)
+ ("C-l" . ivy-alt-done)
+ ("C-j" . ivy-next-line)
+ ("C-k" . ivy-previous-line)
+ :map ivy-switch-buffer-map
+ ("C-k" . ivy-previous-line)
+ ("C-l" . ivy-done)
+ ("C-d" . ivy-switch-buffer-kill)
+ :map ivy-reverse-i-search-map
+ ("C-k" . ivy-previous-line)
+ ("C-d" . ivy-reverse-i-search-kill))
+ :demand
+ :config
+ (ivy-mode 1))
+
+
+(use-package doom-modeline
+ :ensure t
+ :init (doom-modeline-mode 1)
+ :custom ((doom-modeline-height 15)))
+(use-package rainbow-delimiters
+ :hook (prog-mode . rainbow-delimiters-mode))
+
+(use-package doom-themes)
+:init (load-theme 'doom-dracula t)
+
+(use-package which-key
+ :init (which-key-mode)
+ :diminish which-key-mode
+ :config
+ (setq which-key-idle-delay 1))
+
+(use-package ivy-rich
+ :init
+ (ivy-rich-mode 1))
+
+(use-package counsel
+ :bind (("M-x" . counsel-M-x)
+ ("C-x b" . counsel-ibuffer)
+ ("C-x C-f" . counsel-find-file)
+ :map minibuffer-local-map
+ ("C-r" . 'counsel-minibuffer-history))
+ :config
+ (setq ivy-initial-inputs-alist nil)) ;;Don't start searches with ^
+
+(use-package helpful
+ :ensure t
+ :custom
+ (counsel-describe-function-function #'helpful-callable)
+ (counsel-describe-variable-function #'helpful-variable)
+ :bind
+ ([remap describe-function] . counsel-describe-function)
+ ([remap describe-command] . helpful-command)
+ ([remap describe-variable] . counsel-describe-variable)
+ ([remap describe-key] . helpful-key))
+
+(use-package general)
+(general-create-definer my-leader-def
+ ;; :prefix my-leader
+ :prefix "SPC")
+(my-leader-def
+ :states 'normal
+ :keymaps 'override
+ ;; bind "SPC a"
+ "oa" 'org-agenda
+ "oc" 'org-capture
+ ;; "ot" 'org-todo
+ ;; "ox" 'org-toggle-checkbox
+ "og" 'counsel-org-tag
+ "osg" 'org-tags-view
+ ;; "op" 'org-set-property
+ "oid" 'org-id-get-create
+ "os" 'org-display-inline-images
+ "oh" 'org-remove-inline-images
+ "rr" 'elfeed
+ "ru" 'elfeed-update
+ "e" 'ido-find-file
+ "w" 'save-buffer
+ "b" 'ido-switch-buffer
+ "gg" 'counsel-rg
+ "q" 'quit-window
+ "Q" 'kill-buffer-and-window
+ "z" 'org-toggle-link-display
+ "ff" 'projectile-find-file-in-known-projects)
+;; "q" 'kill-this-buffer)
+;; Enable Evil
+(use-package evil
+ :init
+ (setq evil-want-integration t)
+ (setq evil-want-keybinding nil)
+ (setq evil-want-C-u-scroll t)
+ (setq evil-want-C-i-jump nil)
+ :config
+ (define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state)
+ (define-key evil-insert-state-map (kbd "C-h") 'evil-delete-backward-char-and-join)
+ (define-key evil-motion-state-map (kbd "C-h h") 'evil-window-left)
+ (define-key evil-motion-state-map (kbd "C-a l") 'evil-window-right)
+ (define-key evil-motion-state-map (kbd "C-a j") 'evil-window-down)
+ (define-key evil-motion-state-map (kbd "C-a k") 'evil-window-up)
+ (evil-mode 1))
+
+(use-package evil-collection
+ :after evil
+ :config
+ (evil-collection-init))
+
+(use-package evil-escape
+ :config
+ (evil-escape-mode 1))
+(setq-default evil-escape-key-sequence "jk")
+
+(defun mm/org-mode-setup()
+ (org-indent-mode)
+ (variable-pitch-mode 1)
+ (auto-fill-mode 0)
+ (visual-line-mode 1)
+ (global-visual-line-mode 1)
+ (setq evil-auto-indent nil)
+ )
+(evil-define-key 'normal 'global (kbd "g j") 'evil-next-visual-line)
+(evil-define-key 'normal 'global (kbd "g k") 'evil-previous-visual-line)
+(evil-define-key 'normal org-mode-map (kbd "g j") 'evil-next-visual-line)
+(evil-define-key 'normal org-mode-map (kbd "g k") 'evil-previous-visual-line)
+
+(use-package org
+ :hook (org-mode . mm/org-mode-setup)
+ :config
+ ;; Load org configuration from separate file
+ (add-to-list 'load-path configs-dir) ;; Adjust path as needed
+ (require 'org-config))
+(use-package org-download)
+
+(setq org-file-apps '((t . "start \"\" %s"))) ;;For Windows, to open files with an external program
+;; (setq org-link-abbrev-alist
+ ;; '(("file" . "")))
+;; Drag-and-drop to `dired`
+(add-hook 'dired-mode-hook 'org-download-enable)
+
+;; (setq org-startup-with-inline-images t)
+(use-package htmlize)
+(use-package org-roam
+ :ensure t
+ :custom
+ (org-roam-directory (notes-dir))
+ :bind (("C-c n l" . org-roam-buffer-toggle)
+ ("C-c n f" . org-roam-node-find)
+ ("C-c n g" . org-roam-graph)
+ ("C-c n i" . org-roam-node-insert)
+ ("C-c n c" . org-roam-capture)
+ ;; Dailies
+ ("C-c n j" . org-roam-dailies-capture-today))
+ :config
+ ;; If you're using a vertical completion framework, you might want a more informative completion interface
+ (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag)))
+ (org-roam-db-autosync-mode)
+ ;; If using org-roam-protocol
+ (require 'org-roam-protocol))
+(require 'org-id)
+(setq org-id-link-to-org-use-id t)
+;; (setq org-roam-dailies-capture-templates
+;; '(("d" "default" entry
+;; "* Section 1\n** Section 1.1\n* Section 2\n"
+;; :target (file+head "%<%Y-%m-%d>.org"
+;; "#+title: %<%Y-%m-%d>\n"))
+;; ("n" "default" entry
+;; "* Section 1\n** Section 1.1\n* Section 2\n"
+;; :target (file+head "%<%Y-%m-%d>.org"
+;; "#+title: %<%Y-%m-%d>\n"))
+;; ))
+
+(setq org-agenda-start-on-weekday 1)
+(setq calendar-date-style 'iso)
+(setq calendar-week-start-day 1)
+(setq org-read-date-force-compatible-dates nil)
+
+(use-package projectile)
+(projectile-mode +1)
+(setq projectile-known-projects (list notes-dir))
+;; Recommended keymap prefix on Windows/Linux
+(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
+
+(global-set-key (kbd "C-c l") 'org-store-link)
+(global-set-key (kbd "C-c C-l") 'org-insert-link)
+
+;; Disable the annoying mini buffer when inserting a link
+(add-to-list
+ 'display-buffer-alist
+ `("*Org Links*" display-buffer-no-window (allow-no-window . t)))
+
+
+;; (setq org-time-stamp-formats '("%Y-%m-%d %a %H:%M"))
+(setq org-clock-persist 'history)
+(org-clock-persistence-insinuate)
+(defun my/timenow ()
+ (interactive)
+ (let ((current-prefix-arg '(16)))
+ (call-interactively 'org-time-stamp-inactive)))
+
+(define-key org-mode-map (kbd "C-c m") 'my/timenow)
+
+;; Add a direct shortcut for file links with autocomplete
+ (defun my/org-insert-file-link ()
+ "Insert a file link directly, with path autocomplete and description prompt."
+ (interactive)
+ (let* ((org-link-file-path-type 'relative)
+ (file-path (org-link-complete-file))
+ ;; Remove file: prefix if it's already there
+ (path (substring file-path 5))
+ (desc (read-string "Description: " nil nil nil t)))
+ (org-insert-link nil (concat "file:" path) (if (string= desc "") nil desc))))
+
+ ;; Bind it to C-c C-f
+ (define-key org-mode-map (kbd "C-c C-f") 'my/org-insert-file-link)
+
+
+
+(setq elfeed-dir (concat (getenv "SYNC") "/Repos/Emacs/.elfeed"))
+
+(setq elfeed-db-directory (file-name-as-directory elfeed-dir))
+
+(use-package elfeed
+:ensure t
+:config
+(add-to-list 'load-path configs-dir)
+(require 'elfeed-feeds)
+
+(setq elfeed-search-filter "@1-week-ago +unread ")
+)
+(defun browse-url-mpv (url &optional new-window)
+(start-process "mpv" "*mpv*" "mpv" url))
+;;
+(setq browse-url-generic-program (concat user-profile "/scoop/apps/librewolf/current/LibreWolf-Portable.exe"))
+
+(setq browse-url-handlers '(("https:\\/\\/www\\.youtube." . browse-url-mpv)
+ ("." . browse-url-generic)))
+(setq browse-url-browser-function 'browse-url-generic)
diff --git a/gpg/gpg.conf b/gpg/gpg.conf
new file mode 100644
index 0000000..8499dff
--- /dev/null
+++ b/gpg/gpg.conf
@@ -0,0 +1,71 @@
+#keyid-format LONG
+#with-fingerprint
+with-keygrip
+# https://github.com/drduh/config/blob/master/gpg.conf
+# https://www.gnupg.org/documentation/manuals/gnupg/GPG-Options.html
+# 'gpg --version' to get capabilities
+# Use AES256, 192, or 128 as cipher
+personal-cipher-preferences AES256 AES192 AES
+# Use SHA512, 384, or 256 as digest
+personal-digest-preferences SHA512 SHA384 SHA256
+# Use ZLIB, BZIP2, ZIP, or no compression
+personal-compress-preferences ZLIB BZIP2 ZIP Uncompressed
+# Default preferences for new keys
+default-preference-list SHA512 SHA384 SHA256 AES256 AES192 AES ZLIB BZIP2 ZIP Uncompressed
+# SHA512 as digest to sign keys
+cert-digest-algo SHA512
+# SHA512 as digest for symmetric ops
+s2k-digest-algo SHA512
+# AES256 as cipher for symmetric ops
+s2k-cipher-algo AES256
+# UTF-8 support for compatibility
+charset utf-8
+# No comments in messages
+no-comments
+# No version in output
+no-emit-version
+# Disable banner
+no-greeting
+# Long key id format
+keyid-format 0xlong
+# Display UID validity
+list-options show-uid-validity
+verify-options show-uid-validity
+# Display all keys and their fingerprints
+with-fingerprint
+# Display key origins and updates
+#with-key-origin
+# Cross-certify subkeys are present and valid
+require-cross-certification
+# Disable caching of passphrase for symmetrical ops
+no-symkey-cache
+# Output ASCII instead of binary
+armor
+# Enable smartcard
+use-agent
+# Disable recipient key ID in messages (breaks Mailvelope)
+throw-keyids
+# Default key ID to use (helpful with throw-keyids)
+#default-key 0xFF00000000000001
+#trusted-key 0xFF00000000000001
+# Group recipient keys (preferred ID last)
+#group keygroup = 0xFF00000000000003 0xFF00000000000002 0xFF00000000000001
+# Keyserver URL
+#keyserver hkps://keys.openpgp.org
+#keyserver hkps://keys.mailvelope.com
+#keyserver hkps://keyserver.ubuntu.com:443
+#keyserver hkps://pgpkeys.eu
+#keyserver hkps://pgp.circl.lu
+#keyserver hkp://zkaan2xfbuxia2wpf7ofnkbz6r5zdbbvxbunvp5g2iebopbfc4iqmbad.onion
+# Keyserver proxy
+#keyserver-options http-proxy=http://127.0.0.1:8118
+#keyserver-options http-proxy=socks5-hostname://127.0.0.1:9050
+# Enable key retrieval using WKD and DANE
+#auto-key-locate wkd,dane,local
+#auto-key-retrieve
+# Trust delegation mechanism
+#trust-model tofu+pgp
+# Show expired subkeys
+#list-options show-unusable-subkeys
+# Verbose output
+#verbose
diff --git a/jpegview/JPEGView.ini b/jpegview/JPEGView.ini
new file mode 100644
index 0000000..ade2b86
--- /dev/null
+++ b/jpegview/JPEGView.ini
@@ -0,0 +1,662 @@
+[JPEGView]
+
+; This user INI file has been created from template JPEGView.ini.tpl
+; Settings in this file override the setting in the global INI file located in the EXE path
+
+
+; *****************************************************************************
+; * PROGRAM OPTIONS
+; *
+; * These options control how JPEGView operates
+; *****************************************************************************
+
+; If set to true, only one single instance of JPEGView runs at any time, if false multiple instances are allowed
+; Set to true to open all images in the same JPEGView window.
+SingleInstance=false
+
+; Set to true to skip the 'File Open' dialog when starting JPEGView without providing a file name as parameter
+SkipFileOpenDialogOnStartup=false
+
+; File endings of files to be decoded by WIC (Windows Image Converter)
+; If the Microsoft Camera Codec pack is installed, full size camera RAW files can be read with WIC
+; Add the file endings of the raw files to view here, e.g.
+; FilesProcessedByWIC=*.wdp;*.hdp;*.jxr;*.nef
+FilesProcessedByWIC=*.wdp;*.hdp;*.jxr
+
+; File endings of camera RAW files to be searched for embedded JPEG thumb images to display
+; Reading just these embedded JPEGs is much faster than decoding the RAW using WIC
+FileEndingsRAW=*.pef;*.dng;*.crw;*.nef;*.cr2;*.mrw;*.rw2;*.orf;*.x3f;*.arw;*.kdc;*.nrw;*.dcr;*.sr2;*.raf;*.kc2;*.erf;*.3fr;*.raw;*.mef;*.mos;*.mdc;*.cr3
+
+; Set behavior for opening RAW files listed in FileEndingsRAW
+; 0: open embedded thumbnail
+; 1: open full size
+; 2: open thumbnail, fallback to full size
+; 3: open full size, fallback to thumbnail
+DisplayFullSizeRAW=0
+
+; Set to true to keep the zoom, pan, contrast, gamma, sharpen and rotation setting between the images
+KeepParameters=false
+
+; Only for multi-monitor systems!
+; Monitor to start the application on
+; -1: Use monitor with largest resolution, primary monitor if several monitors have the same resolution
+; 0: Use primary monitor
+; 1...n: Use the non-primary monitor with index n
+DisplayMonitor=-1
+
+; CPUType can be AutoDetect, Generic, MMX, SSE or AVX2
+; Generic should work on all CPUs, MMX needs at least MMX II (starting from PIII)
+; Use AutoDetect to detect the best possible algorithm to use
+CPUType=AutoDetect
+
+; Number of CPU cores used. Set to 0 for auto detection.
+; Must be 1 to 4, or 0 for auto detect.
+CPUCoresUsed=0
+
+; Editor for INI files
+; notepad : Use notepad.exe
+; system : Use application registered for INI files
+; other : Full path to application for editing INI files, %exepath% placeholder can be used
+IniEditor=notepad
+
+; When setting a processed image as desktop wallpaper, the processed image must be saved somewhere.
+; This INI setting sets the path to save the file. Default is %temp%, the system TEMP directory. You must have write access to the specified directory!
+WallpaperPath=%temp%
+
+; Set to false to disallow deletion of images in JPEGView. This hides the 'x' button on the navigation panel
+; and disables the commands for deletion (IDM_MOVE_TO_RECYCLE_BIN etc.)
+AllowFileDeletion=true
+
+
+
+; *****************************************************************************
+; * USER INTERFACE OPTIONS
+; *
+; * These options control how JPEGView looks
+; *****************************************************************************
+
+; Language used in the user interface. Set to 'auto' to use the language of the operating system.
+; Other languages must use the ISO 639-1 language code (two letters)
+; Currently supported:
+; 'bel' Belorussian
+; 'cs' Czech
+; 'de' German
+; 'el' Greek
+; 'en' English (default)
+; 'es' Spanish (Spain)
+; 'es-ar' Spanish (latinoamerica)
+; 'eu' Basque
+; 'fr' French
+; 'it' Italian
+; 'ja' Japanese
+; 'ko' Korean
+; 'pl' Polish
+; 'pt' Portuguese
+; 'pt-br' Portuguese (Brasil)
+; 'ro' Romanian
+; 'ru' Russian
+; 'sv' Swedish
+; 'uk' Ukrainian
+; 'zh' Chinese
+; 'zh-tw' Chinese (Taiwan)
+Language=auto
+
+; Background color, R G B, each component must be in [0..255], e.g. "128 128 128" for a middle gray
+BackgroundColor=0 0 0
+
+; GUI colors, R G B format as used by BackgroundColor
+GUIColor=243 242 231
+HighlightColor=255 205 0
+SelectionColor=255 205 0
+SliderColor=255 0 80
+FileNameColor=255 255 255
+
+; GUI font, format: "font name" fontSizeInPoints [bold]
+; 'Default' for the default GUI font of Windows
+; Example: DefaultGUIFont="Arial" 9.0 bold
+DefaultGUIFont=Default
+
+; Set to true to show the menu item that allows editing the global INI file
+; option is found under Settings/Admin sub-menu
+AllowEditGlobalSettings=false
+
+; -----------------------------------------------
+; - WINDOW BEHAVIOR OPTIONS
+; -----------------------------------------------
+
+; Start in full screen or windowed mode
+; 'true' or 'false' to always start in full screen, respectively windowed mode
+; 'auto' to choose best mode depending on image size of first image - windowed when it is small, full screen when it is large
+ShowFullScreen=false
+
+; If set to true, only one single instance of JPEGView runs in full screen mode, if false multiple instances are allowed
+; The value is ignored if SingleInstance=true
+SingleFullScreenInstance=true
+
+; Sets the default position and size of the window in window mode. Possible values:
+; 'auto' for 2/3 of screen size
+; 'max' to start with maximized window
+; 'image' to adjust the window size automatically to the image size
+; 'sticky' to automatically restore the last used window size (when ShowFullScreen=auto only the upper,left position is restored)
+; 'left top right bottom', space separated e.g: 100 100 900 700
+DefaultWindowRect=sticky
+
+; Contains the stored window rectangle in case of DefaultWindowRect=sticky
+StickyWindowRect=2376 0 3840 1075
+
+; Minimal window size in windowed mode (in pixels)
+MinimalWindowSize=320 240
+
+; If set to 'true', window starts in borderless mode (title bar hidden, cannot be manually resizede
+; The window mode can be changed after startup
+WindowBorderlessOnStartup=false
+
+; If set to 'true', window starts in always-on-top mode (window will always be visible on top of other windows)
+; The window mode can be changed after startup
+WindowAlwaysOnTopOnStartup=false
+
+; -----------------------------------------------
+; - IMAGE CONTROL PANELS
+; -----------------------------------------------
+
+; Set to true to show the bottom panel when moving the mouse to the bottom of the screen/window.
+; The bottom panel provides basic image processing functionality
+ShowBottomPanel=false
+
+; Set to false if the navigation panel shall not be blended to the image
+ShowNavPanel=false
+
+; Set to false to disable the thumbnail image blended in during zoom and pan
+ShowZoomNavigator=false
+
+; Blending factor of the navigation panel when the mouse is not on that panel. Set to 0.0 to only
+; show the panel when the mouse is over the panel
+BlendFactorNavPanel=0.5
+
+; Scaling factor for the navigation panel. Increase if the buttons on the panel are too small, e.g. on a touchscreen.
+ScaleFactorNavPanel=1.0
+
+
+
+; *****************************************************************************
+; * FILE NAVIGATION OPTIONS
+; *
+; * These options are related how JPEGView navigates and finds image files to display
+; *****************************************************************************
+
+; Sorting order of the files when displaying the image files in a folder
+; Can be LastModDate, CreationDate, FileName, FileSize or Random
+FileDisplayOrder=LastModDate
+
+; Sort files ascending (increasing, e.g. A->Z, 0->9) or descending (decreasing, e.g. Z->A, 9->0)
+FileSortAscending=true
+
+; Navigation within or between folders
+; LoopFolder : Loop within the source folder and never leave this folder
+; LoopSameFolderLevel: Loop to next folder on the same hierarchy level (sibling folders)
+; LoopSubFolders: Loop into subfolders of the source folder
+FolderNavigation=LoopFolder
+
+; If true the files in a folder are shown with wrap around, thus going from last to first image and vice versa
+; If false navigation stops on the last and first image
+WrapAroundFolder=true
+
+; When WrapAroundFolder is false, alert when trying to go to the next file while at the end of the file list, or previous file while at the beginning of file list
+; If true, window flashes briefly when there are no more new images to show
+; If false, there is no visual feedback
+FlashWindowAlert=true
+
+; When WrapAroundFolder is false, alert when trying to go to the next file while at the end of the file list, or previous file while at the beginning of file list
+; If true, system emits a short beep using the default system sound when there are no more new images to show
+; If false, there is no audio feedback
+BeepSoundAlert=false
+
+; -----------------------------------------------
+; - MOUSE NAVIGATION OPTIONS
+; -----------------------------------------------
+
+; If true, the mouse wheel can be used to navigate forward and backward and zoom must be done with Ctrl-MouseWheel
+; If false, zoom is done with the mousewheel (no Ctrl required)
+NavigateWithMouseWheel=false
+
+; If true, the extended mouse buttons (Forward and backward) are reversed compared to Internet explorer
+; This is useful to put the 'go to next image' functionality to the button that is better reachable
+; e.g. Hitting Backwards button goes Forward in JPEGView
+ExchangeXButtons=true
+
+
+
+; *****************************************************************************
+; * USER INPUT CONFIG
+; *
+; * These options control interactions with JPEGView
+; *****************************************************************************
+
+; By default, Left-click and drag enables selection mode whenever pan is not available. CTRL+Left-click and drag enables selection mode when zoomed in.
+; Set this to false to only use selection mode when CTRL is pressed
+DefaultSelectionMode=true
+
+; Zoom speed with mouse wheel, 1.0 means default speed, smaller values slower zoom, larger faster zoom
+MouseWheelZoomSpeed=1.0
+
+
+
+; *****************************************************************************
+; * IMAGE DISPLAY OPTIONS
+; *
+; * These options are related to how JPEGView displays images
+; *****************************************************************************
+
+; If true, reloads the currently displayed image automatically when it is changed by an external program on disk.
+; Also reloads the image list when a file in the current directory is added or deleted.
+; Set to false to turn off this behavior.
+ReloadWhenDisplayedImageChanged=true
+
+; Set to true to use high quality sampling as default.
+HighQualityResampling=true
+
+; DownSamplingFilter can be BestQuality, NoAliasing or Narrow
+; The BestQuality filter produces a very small amount of aliasing.
+; The NoAliasing filter is a Lanczos filter that has almost no aliasing when sharpen is set to zero
+; The Narrow filter produces quite a lot of aliasing but will sharpen much and also sharpens 100% images
+DownSamplingFilter=BestQuality
+
+; If true, JPEG images are auto rotated according to EXIF image orientation tag if present.
+AutoRotateEXIF=true
+
+; Minimal display time of an image when manually navigating (with keyboard or mouse) (in milliseconds [0..1000 ms])
+MinimalDisplayTime=0
+
+; Force using GDI+ for reading JPEG. Only use when you have problems reading your JPEGs with the default Turbo JPEG library.
+; Note that using GDI+ is slower than the Turbo JPEG library!
+; (Setting to true automatically disables Animated PNG support)
+ForceGDIPlus=false
+
+; If true, embedded ICC color profiles are used for JPEG, PNG and TIFF. This forces using GDI+ and therefore
+; results in much slower loading of JPEGs! Only set to true if you really need this.
+UseEmbeddedColorProfiles=false
+
+; -----------------------------------------------
+; - TRANSPARENCY OPTIONS
+; -----------------------------------------------
+
+; Color used for transparent parts of images, R G B format as used by BackgroundColor
+TransparencyColor=0 0 0
+
+; -----------------------------------------------
+; - IMAGE ZOOM OPTIONS
+; -----------------------------------------------
+
+; Auto zoom mode (for window mode only if AutoZoomModeFullscreen is present)
+; FitNoZoom : Fit images to screen, never enlarge image
+; FillNoZoom : Fill screen with no black borders, crop if necessary but not too much, never enlarge image
+; Fit : Fit images to screen
+; Fill : Fill screen with no black borders, crop if necessary
+AutoZoomMode=Fit
+
+; Auto zoom mode for fullscreen mode. If empty, same value as 'AutoZoomMode' is used.
+AutoZoomModeFullscreen=
+
+; For convenience, when zooming continuously, it will pause at the set percent (default 100%) briefly before continuing in either direction
+; This ensures that you can always zoom in or zoom out to the set percent reliably regardless of image size or zoom steps
+; default: 100
+; set to 0 to disable the pause
+ZoomPausePercent=100
+
+; -----------------------------------------------
+; - ADVANCED IMAGE CORRECTION PARAMETERS
+; -----------------------------------------------
+
+; Contrast correction to apply to all images. Must be in -0.5 .. 0.5
+; Values > 0 increase contrast, values < 0 decrease contrast
+Contrast=0.0
+
+; Gamma correction to apply to all images. Must be between 0.5 and 2
+; Use gamma<1 to increase brightness and gamma>1 to decrease brightness
+Gamma=1.0
+
+; Color saturation to apply to all images. Must be in 0.0 .. 2.0
+; 0.0 means gray scale image, 1.0 no additional color saturation, 2.0 maximal saturation
+Saturation=1.0
+
+; Sharpening to apply for downsampled images. Must be in 0 .. 0.5
+; Note that for 100 % zoom, the BestQuality filter will not apply any sharpening, only the other filters do
+Sharpen=0.3
+
+
+
+; *****************************************************************************
+; * DEFAULT IMAGE EDITING OPTIONS
+; *
+; * These options are related to JPEGView defaults for image editing
+; *****************************************************************************
+
+; Default parameters for unsharp masking: Radius Amount Threshold
+; Note that no unsharp masking can be applied automatically to every image - this setting only provides the default parameters
+; when entering the unsharp mask mode
+UnsharpMaskParameters=1.0 1.0 4.0
+
+; Default parameters for controlling rotation and perspective correction
+RTShowGridLines=true
+RTAutoCrop=true
+RTPreserveAspectRatio=true
+
+; Default color balance. Negative values for C,M,Y correction, positive for R,G,B.
+; Values must be in -1.0 .. +1.0
+CyanRed=0.0
+MagentaGreen=0.0
+YellowBlue=0.0
+
+; -----------------------------------------------
+; - CROP OPTIONS
+; -----------------------------------------------
+
+; The initial crop window size when using 'Fixed Size' crop mode
+DefaultFixedCropSize=320 200
+
+; User defined crop aspect ratio (x y), meaning (x : y)
+; Shows up as last item in crop popup menu
+UserCropAspectRatio=14 11
+
+
+
+; *****************************************************************************
+; * IMAGE INFO DISPLAY OPTIONS
+; *
+; * These options control the information box for when viewing images
+; *****************************************************************************
+
+; Show the acquisition date from EXIF data in the window title
+ShowEXIFDateInTitle=true
+
+; Show full file path and name in the window title (shows only file name by default)
+ShowFilePathInTitle=false
+
+; -----------------------------------------------
+; - FILE NAME AREA
+; -----------------------------------------------
+
+; Set to true to initially display the file name of each image in the upper, left corner of the screen
+ShowFileName= false
+
+; The elements to show when showing the file name.
+; Possible elements:
+; %filename% : File name
+; %filepath% : File name and path
+; %index% : Index of image in folder, e.g. [1/12]
+; %zoom% : Current zoom factor
+; %size% : Size of image in pixels (w x h)
+; %filesize% : Size of image on disk
+FileNameFormat=%index% %filepath%
+
+; Font for the file name display, see DefaultGUIFont key for the format
+FileNameFont=Default
+
+; -----------------------------------------------
+; - FILE EXIF INFO BOX
+; -----------------------------------------------
+
+; Set to true to initially display the file info box (EXIF info if available)
+ShowFileInfo=false
+
+; Set to true to show JPEG comments (EXIF user comment, EXIF image description or JPEG comment) in the file info box
+ShowJPEGComments=true
+
+; Set to true to show the histogram on the file info panel by default
+ShowHistogram=false
+
+; URL for the map provider to display GPS coordinates on a map (only shown when EXIF has GPS coordinates)
+; OpenStreetmap: www.openstreetmap.org/?mlat={lat}&mlon={lng}&zoom=15
+; Google maps: https://www.google.com/maps/search/?api=1&query={lat},{lng}
+GPSMapProvider=https://opentopomap.org/#marker=15/{lat}/{lng}
+
+
+
+; *****************************************************************************
+; * AUTOMATIC CORRECTION OPTIONS
+; *
+; * These options control how and when automatic correction is applied
+; *****************************************************************************
+
+; -----------------------------------------------
+; - AUTO CONTRAST CORRECTION
+; -----------------------------------------------
+
+; Automatic contrast correction by histogram equalization
+; F5 enables/disables the correction on the current image.
+AutoContrastCorrection=false
+
+; Using the following two keys, it is possible to explicitly exclude/include folders from the contrast correction.
+; More specific patterns have precedence over less specific patterns and inclusion has precedence over exclusion if
+; a folder matches both. Example: '*\pics\orig\* has precedence over *\pics\* because it is more specific
+; Use the ; character to separate two expressions.
+; Example: ACCExclude=%mypictures%\Digicam\edited\*;*.bmp
+; This will exclude all files in the ..\My Pictures\Digicam\edited\ folder and all its subfolders and all bmp files
+; from automatic contrast correction.
+; The following two placeholders are recognized:
+; %mypictures% : "My documents\My Pictures" folder
+; %mydocuments% : "My documents" folder
+ACCExclude=
+ACCInclude=
+
+; Amount of automatic contrast correction
+; 0 means no contrast correction, 1 means full (to black and white point) contrast correction. Must be in (0 .. 1)
+AutoContrastCorrectionAmount=0.5
+
+; -----------------------------------------------
+; - AUTO COLOR CORRECTION
+; -----------------------------------------------
+
+; Amount of color correction in the color channels reg, green, blue, cyan, magenta and yellow
+; The numbers must be between 0.0 (no correction) and 1.0 (total correction towards the gray world model)
+; Set all values to 0 to disable color correction
+ColorCorrection=R: 0.2 G: 0.1 B: 0.35 C: 0.1 M: 0.3 Y: 0.15
+
+; -----------------------------------------------
+; - AUTO BRIGHTNESS CORRECTION
+; -----------------------------------------------
+
+; Amount of automatic brightness correction
+; 0 means no brightness correction, 1 means full correction to middle gray. Must be in (0 .. 1)
+AutoBrightnessCorrectionAmount=0.2
+
+; -----------------------------------------------
+; - AUTO LOCAL DENSITY CORRECTION
+; -----------------------------------------------
+
+; Automatic correction of local density (local brightness of images)
+; Can be enabled/disabled on the image with F6
+LocalDensityCorrection=false
+
+; See remark about exclusion/inclusion at the ACCExclude setting.
+; The same applies to these settings.
+LDCExclude=
+LDCInclude=
+
+; Amount of local density correction of shadows
+; Can be in [0, 1]
+LDCBrightenShadows=0.5
+
+; Deep shadow steepness of enhancement
+; Can be in [0, 1], values bigger than 0.9 are not recommended
+LDCBrightenShadowsSteepness=0.5
+
+; Amount of local density correction of highlights
+; Can be in [0, 1]
+LDCDarkenHighlights=0.25
+
+; -----------------------------------------------
+; - AUTO LANDSCAPE MODE CORRECTION
+; -----------------------------------------------
+
+; Set to true to turn on landscape enhancement mode automatically
+LandscapeMode=false
+
+; Parameter set used in landscape enhancement mode
+; Space separated, use -1 to leave parameter untouched
+; Contrast Gamma Sharpen ColorCorrection ContrastCorrection LightenShadows DarkenHighlights DeepShadows CyanRed MagentaGreen YellowBlue Saturation
+LandscapeModeParams=-1 -1 -1 -1 0.5 1.0 0.75 0.4 -1 -1 -1 -1
+
+
+
+; *****************************************************************************
+; * SLIDESHOW OPTIONS
+; *
+; * These options control slideshow parameters
+; *****************************************************************************
+
+; Maximum size of slide show text files in KB
+MaxSlideShowFileListSizeKB=200
+
+; Transition effect for slide shows in full screen mode - ignored when used in window mode
+; Possible transition effects: None, Blend, SlideRL, SlideLR, SlideTB, SlideBT, RollRL, RollLR, RollTB, RollBT, ScrollRL, ScrollLR, ScrollTB, ScrollBT
+SlideShowTransitionEffect=Blend
+
+; Time of the slide show transition effect in milliseconds, only used in full screen mode
+SlideShowEffectTime=250
+
+
+
+; *****************************************************************************
+; * CONFIRMATION OPTIONS
+; *
+; * These options control whether or not to bypass confimation dialogs
+; *****************************************************************************
+
+; If set to true, Ctrl-S overrides the original file on disk, applying the current processings without
+; showing a dialog or prompting the user to confirm.
+; CAUTION: Use at your own risk! Be aware that the original image file is overridden and cannot be restored anymore!
+OverrideOriginalFileWithoutSaveDialog=true
+
+; If set to true, lossless JPEG transformations will trim the image as needed without prompting the user.
+; This will remove 15 pixel rows/columns at the image borders in worst case.
+; CAUTION: Use at your own risk! Be aware that the original image file is overridden and the trimmed borders cannot be restored anymore!
+TrimWithoutPromptLosslessJPEG=false
+
+; Type of confirmation required when deleting a file with the 'x' button on the navigation panel
+; Possible values: Never, OnlyWhenNoRecycleBin, Always
+; OnlyWhenNoRecycleBin means to only require a confirmation when there is no recycle bin available (e.g. on memory sticks)
+; Notice: Does not apply to deleting files with the Del key. To change this edit the KeyMap.txt and assign another command to the Del key.
+DeleteConfirmation=OnlyWhenNoRecycleBin
+
+
+
+; *****************************************************************************
+; * FILE SAVE OPTIONS
+; *
+; * These options control file saving parameters
+; *****************************************************************************
+
+; Default format for saving files. Supported formats: jpg, bmp, png, tif, webp
+DefaultSaveFormat=jpg
+
+; Quality when saving JPEG files (in 0..100 where 100 is the highest quality)
+JPEGSaveQuality=85
+
+; Quality when saving WEBP files with lossy compression (in 0..100 where 100 is the highest quality)
+WEBPSaveQuality=85
+
+; Set to true to create a parameter DB entry when saving an image with JPEGView to avoid processing it again
+CreateParamDBEntryOnSave=true
+
+
+; *****************************************************************************
+; * PRINT OPTIONS
+; *
+; * These options control printing images
+; *****************************************************************************
+
+; Default print margin (all sides) in centimeters
+PrintMargin=1.0
+
+; Default print width in centimeters. Use negative numbers to set the 'Fit to paper' printing mode.
+PrintWidth=-15.0
+
+; Units (centimeters, inches) used, one of 'auto', 'metric' or 'english'.
+; 'auto' uses the system setting
+; 'metric' uses the metric system, e.g. centimeters for length
+; 'english' uses the English/US system, e.g. inches for length
+Units=auto
+
+
+
+; *****************************************************************************
+; * CUSTOM USER COMMANDS
+; *
+; * These are custom user commands that can easily extend the functionality in JPEGView
+; *****************************************************************************
+
+; User command must have the following form:
+; UserCmd#="KeyCode: %Key% Cmd: '%Cmd%' [Menuitem: '%menu%'] [Confirm: '%confirm%'] [HelpText: '%help%'] [Flags: '%flags%']"
+; %Key% : Key that invokes the command. Do not define keys already used by JPEGView.
+; The following keys are known: Alt, Ctrl, Shift, Esc, Return, Space, End, Home, Back, Tab, PgDn, PgUp,
+; Left, Right, Up, Down, Insert, Del, Plus, Minus, Mul, Div, Comma, Period, A .. Z F1 .. F12
+; Combine modifier keys with +, e.g. 'Alt+Ctrl+P'
+; %Cmd% : Application to start, including command arguments. Enclose the application name with double quotes ("") if the path contains
+; spaces. To execute command line commands or batch files, use 'cmd /c command' respectively 'cmd /c MyBatchFile.bat'.
+; The following placeholders can be used in the %cmd% argument:
+; %filename% : Filename of current image, including path
+; %filetitle% : Filename of current image, excluding path
+; %directory% : Directory or current image, without trailing backslash
+; %mydocuments%: The 'My Documents' folder without trailing backslash
+; %mypictures% : The 'My Pictures' folder without trailing backslash
+; %exepath% : Path to EXE folder where JPEGView is running
+; %exedrive% : Drive letter of the EXE path, e.g. "c:"
+; The resulting names are enclosed with double quotes automatically by JPEGView when no backslash is before or after the placeholder.
+; %menu% : The menu item text in the 'User Commands' sub-menu shown in the JPEGView context menu. If missing the command is not contained in the menu.
+; %confirm% : Message text that is shown and must be confirmed before the command is executed.
+; This is an optional argument, if not used, no confirmation is needed for the command.
+; %help% : Help string that is displayed in JPEG view when F1 is pressed.
+; This is an optional argument, if not used, no help text will be available.
+; %flags% : The following flags are supported:
+; NoWindow : For console applications - if set do not display a console window.
+; If the started application is the command interpreter (cmd.exe) this flag is implicitly set.
+; ShortFilename : If set, the short (8.3) file name (and path) is passed to the executing application.
+; Set this flag if the executing application cannot handle long file names or files and path
+; names containing spaces.
+; WaitForTerminate : If set, JPEGView is blocked until the command has finished execution. If not set, the command is
+; started and JPEGView continues.
+; MoveToNext : If set, JPEGView moves to the next image in the folder after the command has been executed.
+; Cannot be combined with the ReloadCurrent flag.
+; ReloadFileList : If set, the file-list of the current folder is reloaded after execution of the command. Set this
+; flag when the command modifies the content of the folder (e.g. moves, renames or deletes files).
+; ReloadCurrent : If set, the currently shown file is re-loaded from disk after execution of the command.
+; Set this flag if the command changes the pixel data of the current image.
+; ReloadAll: If set, the file-list of the current folder is reloaded and the current image and all cached images
+; are reloaded. Set this flag only if the command changes pixel data of images other than the current.
+; KeepModDate: Keeps the modification date/time of the current image. Can be used to preserve this time stamp
+; when modifications on the image are done to keep sort ordering.
+; Caution: When using this flag, always combine with the WaitForTerminate flag!
+; ShellExecute: Uses the ShellExecute() system call to start the external process instead of CreateProcess().
+; Some applications do not start properly with CreateProcess(). If this flag is set, the WaitForTerminate
+; must not be used. All flags requiring WaitForTerminate to be set must not be set either.
+; Typically ShellExecute is set to start large external applications, e.g. an image editor.
+;
+; User commands must be named UserCmd# where # stands for a number.
+; The first user command has the number zero (UserCmd0) and the numbering of the commands must be continuous.
+
+; IMPORTANT: UserCmd0 is already used in the global INI. Start with UserCmd1 unless you want to override the Delete image command from the global INI.
+
+
+; Here are some examples for user commands
+;UserCmd1="KeyCode: P Cmd: 'C:\WINDOWS\system32\mspaint.exe /p %filename%' Menuitem: 'Print Image' Confirm: 'Do you really want to print the file %filename%?' HelpText: 'P\tPrint current image'"
+;UserCmd2="KeyCode: Q Cmd: 'cmd /c move %filename% "%mypictures%\trash\"' Confirm: 'Really move file to %mypictures%\trash\%filetitle%' HelpText: 'Q\tMove file to trash directory' Flags: 'WaitForTerminate ReloadFileList MoveToNext'"
+;UserCmd3="KeyCode: W Cmd: 'cmd /c copy %filename% "%mypictures%\trash\%filetitle%"' Confirm: 'Really copy file to %mypictures%\trash\%filetitle%' HelpText: 'W\tCopy file to trash directory' Flags: 'WaitForTerminate'"
+;UserCmd4="KeyCode: A Cmd: 'cmd /u /c echo %filename% >> "%mydocuments%\test.txt"' HelpText: 'A\tAppend to file list'"
+
+; -----------------------------------------------
+; - OPEN WITH COMMANDS
+; -----------------------------------------------
+
+; Open with menu commands, shown in the 'Open with..' submenu of the JPEGView context menu.
+;
+; These commands must be named OpenWith# where # stands for a number. The first open with command has the number zero (OpenWith0)
+; and the numbering of the commands must be continuous.
+;
+; Open with commands must have the following form:
+; OpenWith#="Cmd: '%Cmd%' Menuitem: '%menu%' [KeyCode: %Key%] [Confirm: '%confirm%'] [Flags: '%flags%']"
+;
+; For an explanation of the different options, refer to the user command documentation above.
+;
+; Example for a menu entry that opens the current image in MS Paint:
+;OpenWith0="Cmd: 'C:\WINDOWS\system32\mspaint.exe %filename%' Menuitem: 'Microsoft Paint' Flags: 'ShellExecute'"
diff --git a/jpegview/KeyMap.txt.default b/jpegview/KeyMap.txt.default
new file mode 100644
index 0000000..f988142
--- /dev/null
+++ b/jpegview/KeyMap.txt.default
@@ -0,0 +1,89 @@
+// This file defines the key mapping for JPEGView
+// Make sure not to corrupt it - or else no keys will work anymore!
+// See KeyMap-README.html for more information on how to customize this file.
+
+// Uncomment the following line if you want to exit JPEGView with the Esc key immediately when playing an animation or a slideshow (default behavior: stops animation/slideshow)
+Space IDM_EXIT
+Q IDM_EXIT
+PgDn IDM_NEXT
+Right IDM_NEXT
+K IDM_NEXT
+Left IDM_PREV
+J IDM_PREV
+PgUp IDM_PREV
+Ctrl+Left IDM_TOGGLE
+Ctrl+Right IDM_TOGGLE
+Home IDM_FIRST
+End IDM_LAST
+D IDM_MOVE_TO_RECYCLE_BIN_CONFIRM
+Plus IDM_ZOOM_INC
+Ctrl+Shift+Plus IDM_CONTRAST_CORRECTION_INC
+Ctrl+Alt+Plus IDM_COLOR_CORRECTION_INC
+Ctrl+Plus IDM_CONTRAST_INC
+Shift+Plus IDM_GAMMA_INC
+Alt+Plus IDM_SHARPEN_INC
+Minus IDM_ZOOM_DEC
+Ctrl+Shift+Minus IDM_CONTRAST_CORRECTION_DEC
+Ctrl+Alt+Minus IDM_COLOR_CORRECTION_DEC
+Ctrl+Minus IDM_CONTRAST_DEC
+Shift+Minus IDM_GAMMA_DEC
+Alt+Minus IDM_SHARPEN_DEC
+F2 IDM_SHOW_FILEINFO
+Ctrl+F2 IDM_SHOW_FILENAME
+F3 IDM_TOGGLE_RESAMPLING_QUALITY
+F4 IDM_KEEP_PARAMETERS
+F5 IDM_AUTO_CORRECTION
+Shift+F5 IDM_AUTO_CORRECTION_SECTION
+F6 IDM_LDC
+Ctrl+Shift+F6 IDM_LDC_HIGHLIGHTS_INC
+Ctrl+F6 IDM_LDC_SHADOWS_INC
+Alt+Shift+F6 IDM_LDC_HIGHLIGHTS_DEC
+Alt+F6 IDM_LDC_SHADOWS_DEC
+F7 IDM_LOOP_FOLDER
+F8 IDM_LOOP_RECURSIVELY
+F9 IDM_LOOP_SIBLINGS
+F11 IDM_FULL_SCREEN_MODE
+F IDM_FULL_SCREEN_MODE
+Shift+F11 IDM_HIDE_TITLE_BAR
+Ctrl+F11 IDM_FIT_WINDOW_TO_IMAGE
+F12 IDM_SPAN_SCREENS
+Ctrl+F12 IDM_TOGGLE_MONITOR
+P IDM_TOGGLE_FIT_TO_SCREEN_100_PERCENTS
+Return IDM_FIT_TO_SCREEN
+Ctrl+Return IDM_FILL_WITH_CROP
+Down IDM_ROTATE_90
+L IDM_ROTATE_90
+Up IDM_ROTATE_270
+H IDM_ROTATE_270
+Shift+K IDM_PAN_UP
+Shift+J IDM_PAN_DOWN
+Shift+H IDM_PAN_LEFT
+Shift+L IDM_PAN_RIGHT
+Shift+N IDM_ZOOM_DEC
+Shift+P IDM_ZOOM_INC
+Ctrl+A IDM_EXCHANGE_PROC_PARAMS
+Ctrl+C IDM_COPY
+Ctrl+Shift+C IDM_COPY_PATH
+C IDM_SORT_CREATION_DATE
+Ctrl+N IDM_SHOW_NAVPANEL
+N IDM_SORT_NAME
+Ctrl+M IDM_MARK_FOR_TOGGLE
+Ctrl+Shift+M IDM_TOUCH_IMAGE
+M IDM_SORT_MOD_DATE
+Z IDM_SORT_RANDOM
+Ctrl+S IDM_SAVE_ALLOW_NO_PROMPT
+Ctrl+Shift+S IDM_SAVE_SCREEN
+S IDM_SAVE_PARAM_DB
+D IDM_CLEAR_PARAM_DB
+Ctrl+Shift+E IDM_TOUCH_IMAGE_EXIF
+Ctrl+O IDM_OPEN
+Ctrl+P IDM_PRINT
+Ctrl+R IDM_RELOAD
+Alt+R IDM_SLIDESHOW_RESUME
+Ctrl+X IDM_COPY_FULL
+Ctrl+V IDM_PASTE
+Ctrl+L IDM_LANDSCAPE_MODE
+R IDM_ROTATE_90_LOSSLESS_CONFIRM
+T IDM_ROTATE_270_LOSSLESS_CONFIRM
+W IDM_EXPLORE
+Shift+F12 IDM_ALWAYS_ON_TOP
diff --git a/mpv/mpv.conf b/mpv/mpv.conf
new file mode 100644
index 0000000..45c4e5e
--- /dev/null
+++ b/mpv/mpv.conf
@@ -0,0 +1,4 @@
+cache=no
+demuxer-readahead-secs=0
+gpu-context=win
+hwdec=nvdec
diff --git a/neovide/neovide-settings.json b/neovide/neovide-settings.json
new file mode 100644
index 0000000..665089c
--- /dev/null
+++ b/neovide/neovide-settings.json
@@ -0,0 +1 @@
+{"window":{"Maximized":{"grid_size":{"width":132,"height":36}}}} \ No newline at end of file
diff --git a/nvim/LICENSE b/nvim/LICENSE
new file mode 100644
index 0000000..3877ae0
--- /dev/null
+++ b/nvim/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<https://www.gnu.org/licenses/>.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
diff --git a/nvim/init.lua b/nvim/init.lua
new file mode 100644
index 0000000..bc36452
--- /dev/null
+++ b/nvim/init.lua
@@ -0,0 +1,394 @@
+require("options")
+require("codev")
+require("plugins")
+require("keybindings")
+require('lspconfig').marksman.setup{}
+
+local harpoon = require("harpoon")
+local actions = require "telescope.actions"
+
+
+
+if vim.g.neovide then
+ vim.g.neovide_confirm_quit = true
+ vim.cmd [[
+ autocmd VimEnter * cd D:\Optics\CODEV\Designs
+ " autocmd VimEnter * Oil
+ ]]
+end
+
+
+
+local function open_in_external_program(prompt_bufnr)
+ local entry = require('telescope.actions.state').get_selected_entry()
+ local file_path = entry.path or entry.filename
+ if file_path then
+ os.execute(string.format('start "" "%s"', file_path))
+ else
+ print("No file selected")
+ end
+ actions.close(prompt_bufnr)
+end
+
+
+require('telescope').setup({
+ defaults = {
+ layout_config = {
+ vertical = { width = 0.5 }
+ -- other layout configuration here
+ },
+ mappings = {
+ n = {
+ ["q"] = actions.close,
+ ["o"] = open_in_external_program,
+ },
+ i = {
+ ["<C-c>"] = actions.close,
+ ["<C-n>"] = actions.cycle_history_next,
+ ["<C-p>"] = actions.cycle_history_prev,
+ ["<C-j>"] = actions.move_selection_next,
+ ["<C-k>"] = actions.move_selection_previous,
+ ["<C-o>"] = open_in_external_program,
+ }
+ },
+ -- other defaults configuration here
+ },
+ -- extensions = {
+ -- file_browser = {
+ -- mappings ={
+ -- n = {
+ -- ["<o>"] = open_in_external_program,
+ -- },
+ -- i = {
+ -- ["<C-o>"] = open_in_external_program,
+ -- },
+ -- },
+ -- },
+ -- },
+ -- other configuration values here
+})
+require("Comment").setup()
+-- require("neorg").setup()
+-- require("bufferline").setup{}
+-- init.lua
+-- require('cmp').setup({
+-- sources = {
+-- { name = 'orgmode' },
+-- { name = 'neorg'},
+-- }
+-- })
+
+
+-- require("telescope").load_extension "file_browser"
+-- REQUIRED
+harpoon:setup()
+-- REQUIRED
+
+vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
+vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
+
+vim.keymap.set("n", "<leader>h", function() harpoon:list():select(1) end)
+vim.keymap.set("n", "<leader>j", function() harpoon:list():select(2) end)
+vim.keymap.set("n", "<leader>k", function() harpoon:list():select(3) end)
+vim.keymap.set("n", "<leader>l", function() harpoon:list():select(4) end)
+
+-- Toggle previous & next buffers stored within Harpoon list
+vim.keymap.set("n", "<leader>N", function() harpoon:list():prev() end)
+vim.keymap.set("n", "<leader>P", function() harpoon:list():next() end)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+require("oil").setup({
+ -- Oil will take over directory buffers (e.g. `vim .` or `:e src/`)
+ -- Set to false if you want some other plugin (e.g. netrw) to open when you edit directories.
+ default_file_explorer = true,
+ -- Id is automatically added at the beginning, and name at the end
+ -- See :help oil-columns
+ columns = {
+ "icon",
+ -- "permissions",
+ -- "size",
+ -- "mtime",
+ },
+ -- Buffer-local options to use for oil buffers
+ buf_options = {
+ buflisted = false,
+ bufhidden = "hide",
+ },
+ -- Window-local options to use for oil buffers
+ win_options = {
+ wrap = false,
+ signcolumn = "no",
+ cursorcolumn = false,
+ foldcolumn = "0",
+ spell = false,
+ list = false,
+ conceallevel = 3,
+ concealcursor = "nvic",
+ },
+ -- Send deleted files to the trash instead of permanently deleting them (:help oil-trash)
+ delete_to_trash = true,
+ -- Skip the confirmation popup for simple operations (:help oil.skip_confirm_for_simple_edits)
+ skip_confirm_for_simple_edits = false,
+ -- Selecting a new/moved/renamed file or directory will prompt you to save changes first
+ -- (:help prompt_save_on_select_new_entry)
+ prompt_save_on_select_new_entry = true,
+ -- Oil will automatically delete hidden buffers after this delay
+ -- You can set the delay to false to disable cleanup entirely
+ -- Note that the cleanup process only starts when none of the oil buffers are currently displayed
+ cleanup_delay_ms = 2000,
+ lsp_file_methods = {
+ -- Time to wait for LSP file operations to complete before skipping
+ timeout_ms = 1000,
+ -- Set to true to autosave buffers that are updated with LSP willRenameFiles
+ -- Set to "unmodified" to only save unmodified buffers
+ autosave_changes = false,
+ },
+ -- Constrain the cursor to the editable parts of the oil buffer
+ -- Set to `false` to disable, or "name" to keep it on the file names
+ constrain_cursor = "editable",
+ -- Set to true to watch the filesystem for changes and reload oil
+ watch_for_changes = false,
+ -- Keymaps in oil buffer. Can be any value that `vim.keymap.set` accepts OR a table of keymap
+ -- options with a `callback` (e.g. { callback = function() ... end, desc = "", mode = "n" })
+ -- Additionally, if it is a string that matches "actions.<name>",
+ -- it will use the mapping at require("oil.actions").<name>
+ -- Set to `false` to remove a keymap
+ -- See :help oil-actions for a list of all available actions
+ keymaps = {
+ ["g?"] = "actions.show_help",
+ ["<CR>"] = "actions.select",
+ ["<C-S>"] = { "actions.select", opts = { vertical = true }, desc = "Open the entry in a vertical split" },
+ ["<C-H>"] = { "actions.select", opts = { horizontal = true }, desc = "Open the entry in a horizontal split" },
+ -- ["<C-t>"] = { "actions.select", opts = { tab = true }, desc = "Open the entry in new tab" },
+ ["<C-p>"] = "actions.preview",
+ ["<C-c>"] = "actions.close",
+ ["<C-l>"] = "actions.refresh",
+ ["-"] = "actions.parent",
+ ["_"] = "actions.open_cwd",
+ ["`"] = "actions.cd",
+ ["~"] = { "actions.cd", opts = { scope = "tab" }, desc = ":tcd to the current oil directory" },
+ ["gs"] = "actions.change_sort",
+ ["<C-o>"] = "actions.open_external",
+ ["g."] = "actions.toggle_hidden",
+ ["g\\"] = "actions.toggle_trash",
+ ['yp'] = {
+ desc = 'Copy filepath to system clipboard',
+ callback = function ()
+ require('oil.actions').copy_entry_path.callback()
+ vim.fn.setreg("+", vim.fn.getreg(vim.v.register))
+ end,
+ },
+ },
+ -- Set to false to disable all of the above keymaps
+ use_default_keymaps =false,
+ view_options = {
+ -- Show files and directories that start with "."
+ show_hidden = false,
+ -- This function defines what is considered a "hidden" file
+ is_hidden_file = function(name, bufnr)
+ return vim.startswith(name, ".")
+ end,
+ -- This function defines what will never be shown, even when `show_hidden` is set
+ is_always_hidden = function(name, bufnr)
+ return false
+ end,
+ -- Sort file names in a more intuitive order for humans. Is less performant,
+ -- so you may want to set to false if you work with large directories.
+ natural_order = true,
+ -- Sort file and directory names case insensitive
+ case_insensitive = false,
+ sort = {
+ -- sort order can be "asc" or "desc"
+ -- see :help oil-columns to see which columns are sortable
+ { "type", "asc" },
+ { "name", "asc" },
+ },
+ },
+ -- Extra arguments to pass to SCP when moving/copying files over SSH
+ extra_scp_args = {},
+ -- EXPERIMENTAL support for performing file operations with git
+ git = {
+ -- Return true to automatically git add/mv/rm files
+ add = function(path)
+ return false
+ end,
+ mv = function(src_path, dest_path)
+ return false
+ end,
+ rm = function(path)
+ return false
+ end,
+ },
+ -- Configuration for the floating window in oil.open_float
+ float = {
+ -- Padding around the floating window
+ padding = 2,
+ max_width = 0,
+ max_height = 0,
+ border = "rounded",
+ win_options = {
+ winblend = 0,
+ },
+ -- preview_split: Split direction: "auto", "left", "right", "above", "below".
+ preview_split = "auto",
+ -- This is the config that will be passed to nvim_open_win.
+ -- Change values here to customize the layout
+ override = function(conf)
+ return conf
+ end,
+ },
+ -- Configuration for the actions floating preview window
+ preview = {
+ -- Width dimensions can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
+ -- min_width and max_width can be a single value or a list of mixed integer/float types.
+ -- max_width = {100, 0.8} means "the lesser of 100 columns or 80% of total"
+ max_width = 0.9,
+ -- min_width = {40, 0.4} means "the greater of 40 columns or 40% of total"
+ min_width = { 40, 0.4 },
+ -- optionally define an integer/float for the exact width of the preview window
+ width = nil,
+ -- Height dimensions can be integers or a float between 0 and 1 (e.g. 0.4 for 40%)
+ -- min_height and max_height can be a single value or a list of mixed integer/float types.
+ -- max_height = {80, 0.9} means "the lesser of 80 columns or 90% of total"
+ max_height = 0.9,
+ -- min_height = {5, 0.1} means "the greater of 5 columns or 10% of total"
+ min_height = { 5, 0.1 },
+ -- optionally define an integer/float for the exact height of the preview window
+ height = nil,
+ border = "rounded",
+ win_options = {
+ winblend = 0,
+ },
+ -- Whether the preview window is automatically updated when the cursor is moved
+ update_on_cursor_moved = true,
+ },
+ -- Configuration for the floating progress window
+ progress = {
+ max_width = 0.9,
+ min_width = { 40, 0.4 },
+ width = nil,
+ max_height = { 10, 0.9 },
+ min_height = { 5, 0.1 },
+ height = nil,
+ border = "rounded",
+ minimized_border = "none",
+ win_options = {
+ winblend = 0,
+ },
+ },
+ -- Configuration for the floating SSH window
+ ssh = {
+ border = "rounded",
+ },
+ -- Configuration for the floating keymaps help window
+ keymaps_help = {
+ border = "rounded",
+ },
+})
+
+
+-- Load toggleterm if not loaded
+-- require('toggleterm').setup{}
+
+-- Close the terminal with Ctrl+q and Ctrl+d in terminal mode
+function _G.set_terminal_keymaps()
+ local opts = { noremap = true, silent = true }
+ vim.api.nvim_buf_set_keymap(0, 't', '<C-d>', [[<C-\><C-n><cmd>ToggleTerm<CR>]], opts)
+ vim.api.nvim_buf_set_keymap(0, 't', '<C-q>', [[<C-\><C-n><cmd>ToggleTerm<CR>]], opts)
+ -- vim.api.nvim_buf_set_keymap(0, 'n', '<C-d>', [[<C-\><C-n><cmd>ToggleTerm<CR>]], opts)
+ -- vim.api.nvim_buf_set_keymap(0, 't', 'jk','<Nop>',opts)
+ -- vim.api.nvim_buf_del_keymap(0, 'i', "jk")
+ -- vim.api.nvim_buf_set_keymap(0, 'i', 'k', '<Nop>', opts)
+end
+require("toggleterm").setup({
+ -- open_mapping = [[<C-\>]], -- Example keybinding, adjust as needed
+ direction = "float", -- or "horizontal" / "vertical" / "tab"
+ -- set_terminal_keymaps(),
+ -- on_open = function(term)
+ -- vim.cmd("startinsert") -- Always enter insert mode when terminal opens
+ -- end,
+ -- on_focus = function(term)
+ -- vim.cmd("startinsert") -- Enter insert mode when terminal gains focus
+ -- end,
+ -- on_close = function(term)
+ -- vim.cmd("stopinsert") -- Stop insert mode when terminal closes
+ -- end,
+ start_in_insert=true,
+ -- persist_mode = true,
+})
+
+-- Set the keymaps when a terminal is opened
+-- vim.cmd('autocmd! TermOpen term://* lua set_terminal_keymaps()')
+-- Automatically enter insert mode when ToggleTerm is opened
+-- vim.api.nvim_create_autocmd("TermOpen", {
+-- pattern = "term://*",
+-- callback = function()
+-- vim.cmd(":startinsert")
+-- -- set_terminal_keymaps()
+-- end,
+-- })
+
+vim.api.nvim_create_autocmd({ "TermOpen", "BufEnter" }, {
+ -- pattern = { "*" },
+ callback = function()
+ if vim.opt.buftype:get() == "terminal" then
+ vim.cmd("startinsert")
+ -- vim.cmd("shfdstartinsert")
+ set_terminal_keymaps()
+ end
+ end
+})
+
+
+-- Add this after your lsp-zero configuration
+vim.diagnostic.config({
+ virtual_text = {
+ prefix = '●', -- Could be '■', '▎', 'x'
+ source = "if_many"
+ },
+ float = {
+ -- source = "always",
+ border = "rounded",
+ header = "",
+ prefix = "",
+ },
+ signs = true,
+ underline = true,
+ update_in_insert = false,
+ severity_sort = true,
+})
+
+-- Add keyboard shortcuts to see full error messages
+vim.keymap.set('n', '<space>e', vim.diagnostic.open_float, { noremap=true, silent=true })
diff --git a/nvim/lua/codev.lua b/nvim/lua/codev.lua
new file mode 100644
index 0000000..ed6c330
--- /dev/null
+++ b/nvim/lua/codev.lua
@@ -0,0 +1,11 @@
+vim.api.nvim_exec2([[
+ augroup SeqFileType
+ autocmd!
+ autocmd BufRead,BufNewFile *.seq set filetype=seq
+ autocmd BufRead,BufNewFile *.seq set syntax=codev
+ autocmd BufRead,BufNewFile *.lis set filetype=lis
+ autocmd BufRead,BufNewFile *.lis set syntax=codelis
+ augroup END
+]], {})
+
+vim.api.nvim_exec2([[autocmd FileType seq set commentstring=!%s]], {})
diff --git a/nvim/lua/keybindings.lua b/nvim/lua/keybindings.lua
new file mode 100644
index 0000000..8ad83c7
--- /dev/null
+++ b/nvim/lua/keybindings.lua
@@ -0,0 +1,162 @@
+vim.g.mapleader = " "
+--Telescope keys
+-- local builtin = require('telescope.builtin')
+-- vim.keymap.set('n', '<leader>ps', function()
+-- builtin.grep_string({ search = vim.fn.input("Grep > ") })
+-- end)
+
+-- vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
+-- vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
+-- vim.keymap.set('n', "<leader>ps", builtin.live_grep,{})
+-- vim.keymap.set('n', "<leader>pb", builtin.buffers,{})
+
+-- vim.keymap.set('n', '<leader>ff', '<cmd>Telescope find_files search_dirs=[".","D:/Optics/CODEV/Macros","C:/CODEV202403/macro","C:/CODEV202403/lens"] theme=dropdown<cr>')
+vim.keymap.set('n', '<leader>ff', "<cmd>Telescope find_files cwd= theme=dropdown<cr>")
+vim.keymap.set('n', '<leader>fm', "<cmd>Telescope find_files cwd=D:/Optics/CODEV/Macros theme=dropdown<cr>")
+vim.keymap.set('n', '<leader>fc', "<cmd>Telescope find_files cwd=C:/CODEV202403/macro theme=dropdown<cr>")
+vim.keymap.set('n', '<leader>fl', "<cmd>Telescope find_files cwd=C:/CODEV202403/lens theme=dropdown<cr>")
+
+vim.keymap.set("n", "<leader>pp", "<cmd>Telescope file_browser cwd= theme=dropdown<cr>")
+vim.keymap.set("n", "<leader>pm", "<cmd>Telescope file_browser cwd=D:/Optics/CODEV/Macros theme=dropdown<cr>")
+vim.keymap.set("n", "<leader>pc", "<cmd>Telescope file_browser cwd=C:/CODEV202403/macro theme=dropdown<cr>")
+vim.keymap.set("n", "<leader>pl", "<cmd>Telescope file_browser cwd=C:/CODEV202403/lens theme=dropdown<cr>")
+
+vim.keymap.set('n', "<leader>gg", "<cmd>Telescope live_grep cwd= theme=dropdown<cr>")
+vim.keymap.set('n', "<leader>gm", "<cmd>Telescope live_grep cwd=D:/Optics/CODEV/Macros theme=dropdown<cr>")
+vim.keymap.set('n', "<leader>gc", "<cmd>Telescope live_grep cwd=C:/CODEV202403/macro theme=dropdown<cr>")
+vim.keymap.set('n', "<leader>gl", "<cmd>Telescope live_grep cwd=C:/CODEV202403/lens theme=dropdown<cr>")
+
+
+vim.keymap.set('n', "<leader>b", "<cmd>Telescope buffers theme=dropdown<cr>")
+
+vim.keymap.set('n', '<leader>u', vim.cmd.UndotreeToggle)
+vim.keymap.set('n', '<leader>G', vim.cmd.Git)
+-- Language Server Keybindings
+local lsp_zero = require('lsp-zero')
+
+lsp_zero.on_attach(function(client, bufnr)
+ local opts = {buffer = bufnr, remap = false}
+
+ vim.keymap.set("n", "gd", function() vim.lsp.buf.definition() end, opts)
+ vim.keymap.set("n", "K", function() vim.lsp.buf.hover() end, opts)
+ vim.keymap.set("n", "<leader>vws", function() vim.lsp.buf.workspace_symbol() end, opts)
+ vim.keymap.set("n", "<leader>vd", function() vim.diagnostic.open_float() end, opts)
+ vim.keymap.set("n", "[d", function() vim.diagnostic.goto_next() end, opts)
+ vim.keymap.set("n", "]d", function() vim.diagnostic.goto_prev() end, opts)
+ vim.keymap.set("n", "<leader>vca", function() vim.lsp.buf.code_action() end, opts)
+ vim.keymap.set("n", "<leader>vrr", function() vim.lsp.buf.references() end, opts)
+ vim.keymap.set("n", "<leader>vrn", function() vim.lsp.buf.rename() end, opts)
+ vim.keymap.set("i", "<C-h>", function() vim.lsp.buf.signature_help() end, opts)
+end)
+
+require('mason').setup({})
+require('mason-lspconfig').setup({
+ ensure_installed = {'tsserver', 'rust_analyzer'},
+ handlers = {
+ lsp_zero.default_setup,
+ lua_ls = function()
+ local lua_opts = lsp_zero.nvim_lua_ls()
+ require('lspconfig').lua_ls.setup(lua_opts)
+ end,
+ }
+})
+
+local cmp = require('cmp')
+local cmp_select = {behavior = cmp.SelectBehavior.Select}
+
+cmp.setup({
+ sources = {
+ {name = 'path'},
+ {name = 'nvim_lsp'},
+ {name = 'nvim_lua'},
+ },
+ formatting = lsp_zero.cmp_format(),
+ mapping = cmp.mapping.preset.insert({
+ ['<C-p>'] = cmp.mapping.scroll_docs(-4),
+ ['<C-n>'] = cmp.mapping.scroll_docs(4),
+ ['<C-k>'] = cmp.mapping.select_prev_item(cmp_select),
+ ['<C-j>'] = cmp.mapping.select_next_item(cmp_select),
+ ['<C-i>'] = cmp.mapping.confirm({ select = true }),
+ ['<C-Space>'] = cmp.mapping.complete(),
+ }),
+})
+-- General Keybindings
+vim.keymap.set("i", "jk", "<Esc>")
+vim.keymap.set("n","<leader>w", "<cmd>w<cr>")
+vim.keymap.set("n","<leader>q", "<cmd>q<cr>")
+vim.keymap.set("n","<C-c>", "<cmd>bd<cr>")
+vim.keymap.set("i","<C-c>", "<cmd>bd<cr>")
+vim.keymap.set("n","<leader>Q", "<cmd>q!<cr>")
+vim.keymap.set("n","<leader>o", "o<Esc>")
+vim.keymap.set("n","<leader>O", "O<Esc>")
+vim.keymap.set("i", "<leader>e", "<Space>e")
+--File Formatting
+vim.keymap.set("n","<leader>S", "ggVG=")
+-- Moving Lines around
+vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
+vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
+vim.keymap.set("n", "J", "mzJ`z")
+--Fast Vertical Navigation
+vim.keymap.set("n", "<C-d>", "<C-d>zz")
+vim.keymap.set("n", "<C-u>", "<C-u>zz")
+-- Search terms stay in the middle
+vim.keymap.set("n", "n", "nzzzv")
+vim.keymap.set("n", "N", "Nzzzv")
+-- pasting something instead of current text
+vim.keymap.set("x", "<leader>p", [["_dP]])
+-- copying into system clipboard
+vim.keymap.set({"n", "v"}, "<leader>y", [["+y]])
+vim.keymap.set("n", "<leader>Y", [["+Y]])
+-- Put into Void Register
+vim.keymap.set({"n", "v"}, "<leader>d", [["_d]])
+-- Quick Fix List Navingation
+--vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz")
+--vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
+vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
+vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
+-- Terminal Navigation
+-- vim.keymap.set("n", "<leader>tt", "<cmd>ToggleTerm size=60 direction=horizontal shell=powershell<cr>")
+vim.keymap.set("n", "<leader>t", "<cmd>ToggleTerm<cr>")
+-- vim.keymap.set("n", "<C-t>", "<cmd>ToggleTerm<cr>")
+-- vim.keymap.set("i", "<C-t>", "<cmd>ToggleTerm<cr>")
+-- vim.keymap.set("n", "<leader>tt", "<cmd>vertical 60 vsplit | terminal pwsh.exe<cr>")
+-- vim.keymap.set("n", "<leader>tj", "<cmd>term pwsh.exe<cr>")
+vim.keymap.set("t", "jk", [[<C-\><C-n>]])
+vim.keymap.set("t", "<C-h>", [[<C-\><C-n><C-W>h]])
+vim.keymap.set("t", "<C-j>", [[<C-\><C-n><C-W>j]])
+vim.keymap.set("t", "<C-k>", [[<C-\><C-n><C-W>k]])
+vim.keymap.set("t", "<C-l>", [[<C-\><C-n><C-W>l]])
+--Sending lines and file to the internal terminal I had before <C-O> to make the cursor move to the previous position but this doesnt seem to be a good option
+vim.keymap.set({"n", "i"},"<C-r><C-k>", "<cmd>ToggleTermSendCurrentLine<cr>j")
+vim.keymap.set("n","<C-r><C-j>", "ggVG:'<,'>ToggleTermSendVisualLines<cr>")
+vim.keymap.set("i","<C-r><C-j>", "<Esc>ggVG:'<,'>ToggleTermSendVisualLines<cr><Esc>i")
+vim.keymap.set("v","<C-r><C-k>", ":ToggleTermSendVisualLines<cr><Esc>")
+-- Buffer Navigation
+vim.keymap.set("n", "<C-h>", [[<C-W>h]])
+vim.keymap.set("n", "<C-j>", [[<C-W>j]])
+vim.keymap.set("n", "<C-k>", [[<C-W>k]])
+vim.keymap.set("n", "<C-l>", [[<C-W>l]])
+-- Undo Remapping
+vim.keymap.set("n", "U", "<C-r>")
+-- Replace the Current Word everywhere
+vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
+-- Nvim-Tree
+-- vim.keymap.set("n", "<leader>e", "<cmd>NvimTreeToggle<cr>")
+-- BufferLine Navigation
+-- vim.keymap.set("n", "<Tab>", "<cmd>BufferLineCycleNext<cr>")
+-- vim.keymap.set("n", "<S-Tab>", "<cmd>BufferLineCyclePrev<cr>")
+-- vim.keymap.set("n", "<C-w>", "<cmd>BufferLineCloseOthers<cr>")
+-- Treesitter Context
+vim.keymap.set("n", "[c", function()
+ require("treesitter-context").go_to_context()
+end, { silent = true })
+-- Docstring commands
+vim.keymap.set("n","<leader>dc",[[i"""<Esc>o<Esc>o#<Space>Information:<Esc>o<Backspace><Backspace><Esc>o#<Space>Arguments:<Esc>o<Backspace><Backspace><Esc>o#<Space>Returns:<Esc>o<Backspace><Backspace><Esc>o"""<Esc>7k]])
+
+
+
+--vim.keymap.set('n', '<C-p>', bultin.git_files,{})
+--Oil.nvim keybinds
+vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })
+
+vim.keymap.set("n","<leader>m","<CMD>silent make<CR>")
diff --git a/nvim/lua/options.lua b/nvim/lua/options.lua
new file mode 100644
index 0000000..944ea6d
--- /dev/null
+++ b/nvim/lua/options.lua
@@ -0,0 +1,43 @@
+--Sets automatic update of the file internals
+vim.api.nvim_exec2([[
+ autocmd FocusGained,BufEnter,BufWinEnter,WinEnter,CursorHold,CursorHoldI * checktime
+ autocmd FileChangedShellPost * echohl WarningMsg | echo "File changed on disk. Buffer reloaded." | echohl None | checktime
+]],{})
+vim.api.nvim_exec2([[set shortmess=I]],{})
+
+-- vim.api.nvim_exec2([[autocmd TermOpen * startinsert]],{})
+
+vim.opt.termguicolors = true
+-- vim.o.statusline = [[%<%f\ %h%m%r%=%-13.(%l,%c%V%)\ %P]]
+-- vim.o.laststatus = 2
+
+vim.opt.splitbelow = true
+vim.opt.splitright = true
+
+vim.opt.relativenumber = true
+vim.opt.number = true
+vim.opt.tabstop = 4
+vim.opt.softtabstop = 4
+vim.opt.shiftwidth = 4
+vim.opt.expandtab = true
+
+vim.opt.swapfile = false
+vim.opt.backup = false
+vim.opt.undodir = os.getenv("USERPROFILE").."/.vim/undodir"
+vim.opt.undofile = true
+
+vim.opt.hlsearch = false
+vim.opt.incsearch = true
+
+vim.opt.scrolloff = 999
+vim.opt.updatetime = 50
+
+vim.opt.wrap = true
+
+vim.opt.virtualedit = "block"
+vim.opt.inccommand = "split"
+vim.opt.ignorecase = true
+
+vim.cmd[[set laststatus=2]]
+-- vim.opt.clipboard = "unnamedplus"
+--vim.opt.colorcolumn = "180"
diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua
new file mode 100644
index 0000000..79b4c5f
--- /dev/null
+++ b/nvim/lua/plugins.lua
@@ -0,0 +1,256 @@
+-- lazy plugin manager
+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
+if not vim.loop.fs_stat(lazypath) then
+ -- bootstrap lazy.nvim
+ -- stylua: ignore
+ vim.fn.system({
+ "git",
+ "clone",
+ "--filter=blob:none",
+ "https://github.com/folke/lazy.nvim.git",
+ "--branch=stable",
+ lazypath,
+ })
+end
+vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
+
+require("lazy").setup({
+ -- Colorscheme
+ {
+ "folke/tokyonight.nvim",
+ init = function()
+ vim.cmd.colorscheme("tokyonight-night")
+ end
+ },
+
+ {
+ 'tpope/vim-fugitive',
+ },
+
+ {
+ {
+ 'VonHeikemen/lsp-zero.nvim',
+ branch = 'v3.x',
+ lazy = true,
+ config = false,
+ init = function()
+ -- Disable automatic setup, we are doing it manually
+ vim.g.lsp_zero_extend_cmp = 0
+ vim.g.lsp_zero_extend_lspconfig = 0
+ end,
+ },
+
+ {
+ 'williamboman/mason.nvim',
+ lazy = false,
+ config = true,
+ },
+
+ {
+ 'neovim/nvim-lspconfig',
+ dependencies = {
+ {'hrsh7th/cmp-nvim-lsp'},
+ }
+ },
+
+ -- Autocompletion
+ {
+ 'hrsh7th/nvim-cmp',
+ event = 'InsertEnter',
+ dependencies = {
+ {'L3MON4D3/LuaSnip',
+ 'hrsh7th/cmp-path',
+ },
+ },
+ config = function()
+ -- Here is where you configure the autocompletion settings.
+ local lsp_zero = require('lsp-zero')
+ lsp_zero.extend_cmp()
+
+ -- And you can configure cmp even more, if you want to.
+ local cmp = require('cmp')
+ local cmp_action = lsp_zero.cmp_action()
+
+ cmp.setup({
+ formatting = lsp_zero.cmp_format(),
+ sources = {
+ { name = 'nvim_lsp' }, -- Enable LSP-based completion
+ { name = 'path' }, -- Enables path completion
+ { name = 'buffer' }, -- Buffer source for plain text completion
+ },
+ mapping = cmp.mapping.preset.insert({
+ ['<C-Space>'] = cmp.mapping.complete(),
+ ['<C-u>'] = cmp.mapping.scroll_docs(-4),
+ ['<C-d>'] = cmp.mapping.scroll_docs(4),
+ ['<C-f>'] = cmp_action.luasnip_jump_forward(),
+ ['<C-b>'] = cmp_action.luasnip_jump_backward(),
+ }),
+
+ -- },
+ })
+ end
+ },
+ -- LSP
+ {
+ 'neovim/nvim-lspconfig',
+ cmd = {'LspInfo', 'LspInstall', 'LspStart'},
+ event = {'BufReadPre', 'BufNewFile'},
+ dependencies = {
+ {'hrsh7th/cmp-nvim-lsp'},
+ {'williamboman/mason-lspconfig.nvim'},
+ },
+ config = function()
+ -- This is where all the LSP shenanigans will live
+ local lsp_zero = require('lsp-zero')
+ lsp_zero.extend_lspconfig()
+
+ lsp_zero.on_attach(function(client, bufnr)
+ -- see :help lsp-zero-keybindings
+ -- to learn the available actions
+ lsp_zero.default_keymaps({buffer = bufnr})
+ end)
+
+
+ require('mason-lspconfig').setup({
+ ensure_installed = {},
+ handlers = {
+ lsp_zero.default_setup,
+ lua_ls = function()
+ -- (Optional) Configure lua language server for neovim
+ local lua_opts = lsp_zero.nvim_lua_ls()
+ require('lspconfig').lua_ls.setup(lua_opts)
+ end,
+ -- ADD THIS SECTION for clangd:
+ clangd = function()
+ require('lspconfig').clangd.setup({
+ cmd = { "clangd", "--header-insertion=never" },
+ -- No root_dir specification that requires compile_commands.json
+ })
+ end,
+ }
+ })
+ end
+ }
+
+ },
+
+ {
+ 'nvim-telescope/telescope.nvim',
+ -- or , branch = '0.1.x',
+ dependencies = { 'nvim-lua/plenary.nvim' }
+ },
+
+ {
+ 'nvim-treesitter/nvim-treesitter',
+ build = ':TSUpdate',
+ config = function ()
+ local configs = require("nvim-treesitter.configs")
+
+ configs.setup({
+ ensure_installed = { "c", "lua", "vim", "vimdoc", "cpp", "python"}, --add "neorg here"
+ sync_install = false,
+ highlight = {
+ enable = true
+ },
+ indent = {
+ enable = true
+ },
+ })
+ end
+ },
+
+ {
+ 'mbbill/undotree'
+ },
+
+ {'akinsho/toggleterm.nvim',
+ version = "*",
+ opts = {
+ shell = "pwsh.exe -NoLogo",
+ winbar = {
+ enabled =false
+ },
+ direction = 'float',
+ border = 'none', -- No border around the terminal
+ -- width = function()
+ -- return vim.o.columns -- Full width of the screen
+ -- end,
+ -- height = function()
+ -- return vim.o.lines -- Full height minus command line
+ -- end,
+ -- width = 800,
+ -- height = 700,
+ }
+ },
+ {
+ 'windwp/nvim-autopairs',
+ event = "InsertEnter",
+ config = true
+ -- use opts = {} for passing setup options
+ -- this is equivalent to setup({}) function
+},
+
+ {
+ 'numToStr/Comment.nvim',
+ lazy = false,
+ opts= {
+ -- filetype = {
+ -- seq ={
+ -- commentstring ="! %s"
+ -- }
+ -- },
+ ---Add a space b/w comment and the line
+ padding = true,
+ ---Whether the cursor should stay at its position
+ sticky = true,
+ ---Lines to be ignored while (un)comment
+ ignore = nil,
+ ---LHS of toggle mappings in NORMAL mode
+ toggler = {
+ ---Line-comment toggle keymap
+ line = '<leader>/',
+ ---Block-comment toggle keymap
+ block = 'gbc',
+ },
+ ---LHS of operator-pending mappings in NORMAL and VISUAL mode
+ opleader = {
+ ---Line-comment keymap
+ line = '<leader>/',
+ ---Block-comment keymap
+ block = 'gb',
+ }}
+ },
+
+
+ {
+ 'nvim-treesitter/nvim-treesitter-context'
+ },
+ {
+ "lervag/vimtex",
+ lazy = false, -- we don't want to lazy load VimTeX
+ -- tag = "v2.15", -- uncomment to pin to a specific release
+ init = function()
+ -- VimTeX configuration goes here, e.g.
+ vim.g.vimtex_view_method = "mupdf"
+ end
+ },
+
+ -- {
+ -- "nvim-telescope/telescope-file-browser.nvim",
+ -- dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
+ --
+ -- },
+
+ {
+ "ThePrimeagen/harpoon",
+ branch = "harpoon2",
+ dependencies = { "nvim-lua/plenary.nvim" }
+ },
+ {
+ 'stevearc/oil.nvim',
+ opts = {},
+ -- Optional dependencies
+ -- dependencies = { "echasnovski/mini.icons" },
+ dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if prefer nvim-web-devicons
+ }
+})
diff --git a/nvim/syntax/codelis.vim b/nvim/syntax/codelis.vim
new file mode 100644
index 0000000..2bd4125
--- /dev/null
+++ b/nvim/syntax/codelis.vim
@@ -0,0 +1,47 @@
+:syntax case ignore
+:syntax region lisString start =/"/ end= /"/
+:highlight lisString guifg=#9ece6a
+
+:syntax region lisString start =/'/ end= /'/
+:highlight lisString guifg=#9ece6a
+
+:syntax match lisComment /!.*/
+:highlight lisComment guifg=#535c7e
+
+
+:syntax match lisSurfaceZoom /\<\([szfw][0-9oia]\)\>\|\<[sz]\>/
+:highlight lisSurfaceZoom guifg=#ff9e64 gui=bold
+" :highlight lisSurfaceZoom guifg=#2ac3de gui=bold
+
+:syntax match lisNumber /\<[0-9.e-]\+\>/
+:highlight lisNumber guifg=#ff9e64
+
+:syntax match lisTitle /code v/
+:highlight lisTitle guifg=#1a1b26 guibg=#c0caf5
+
+:syntax match lisRMSSpot /Minimum RMS spot diameter/
+:highlight lisRMSSpot guifg=#3cb371
+
+
+:syntax match lisPerfMetric /Optical System/
+:syntax match lisPerfMetric /First-Order Properties/
+:syntax match lisPerfMetric /Manufacturability Results/
+:syntax match lisPerfMetric /Fifth-Order Results/
+:syntax match lisPerfMetric /Spotsize Results/
+:syntax match lisPerfMetric /Longitudinal Curvature Results/
+:syntax match lisPerfMetric /MTF Results/
+:syntax match lisPerfMetric /FSW Results/
+:highlight lisPerfMetric guifg=#000000 guibg=#008000
+
+:syntax match lisAUTCyc /CYCLE NUMBER/
+:highlight lisAUTCyc guifg=#1a1b26 guibg=#c0caf5
+
+:syntax match lisAUTAddConstr /Constraints added/
+:highlight lisAUTAddConstr guifg=#e00a97
+
+
+:syntax match lisAUTActiveConstr /Active Constraints/
+:highlight lisAUTActiveConstr guifg=#23a08e
+
+:syntax match lisAUTInactiveConstr /Inactive Constraints/
+:highlight lisAUTInactiveConstr guifg=#ffdf4f
diff --git a/nvim/syntax/codev.vim b/nvim/syntax/codev.vim
new file mode 100644
index 0000000..c428f22
--- /dev/null
+++ b/nvim/syntax/codev.vim
@@ -0,0 +1,66 @@
+:syntax case ignore
+:syntax region cvString start =/"/ end= /"/
+:highlight cvString guifg=#9ece6a
+
+:syntax region cvString start =/'/ end= /'/
+:highlight cvString guifg=#9ece6a
+
+:syntax match cvComment /!.*/
+:highlight cvComment guifg=#535c7e
+
+:syntax keyword cvConditional if els and else or
+" :highlight cvConditional guifg=LightGreen gui=italic
+:highlight cvConditional guifg=#bb9af7
+"
+:syntax match cvVariable /\^\w*/
+:highlight cvVariable guifg=#6ad5e8
+" :highlight cvVariable guifg=#27a1b9
+" DarkYellow
+:syntax match cvIdentifier /\$\w*/
+:highlight cvIdentifier guifg=#27a1b9 gui=italic
+
+:syntax keyword cvType str num
+:highlight cvType guifg=#ff9e64
+
+:syntax keyword cvScope lcl gbl
+:highlight cvScope gui=bold guifg=#6ad5e8
+
+:syntax keyword cvCommand sur aut rfd nab eva wri wrl wgf out res sav dif lib fie gcv gra go rfd pth sys rdy rdx can thi cuy cux tit dim ins gla dro mtf yan wl wtw wtf frz rim sto spo vie ver rdm din svl k a b c
+:highlight cvCommand guifg=#9d7cd8 gui=bold
+
+:syntax keyword cvOption lsa ast dst del exp dir mfr ifr pur ssi nrd nbr lns nos ref
+:highlight cvOption guifg=#9d7cd8 gui=italic
+
+:syntax keyword cvDatabase typ ind ucy umy hcy icy hmy imy pcy efx efy erf sd abv et ate atc map tco ptz sas ax lat ct
+:highlight cvDatabase guifg=#89ddff gui=bold
+
+:syntax match cvSurfaceZoom /\<\([sz][0-9oia]\)\>\|\<[sz]\>/
+:highlight cvSurfaceZoom guifg=#ff9e64 gui=bold
+" :highlight cvSurfaceZoom guifg=#2ac3de gui=bold
+
+:syntax match cvNumber /\<[0-9.e-]\+\>/
+:highlight cvNumber guifg=#ff9e64
+
+:syntax keyword cvBoolean yes no y n true false
+:highlight cvBoolean guifg=#1abc9c gui=bold
+
+:syntax keyword cvFunction join concat absf rfstr atanf sagf num_to_str isfct substr upcase
+:highlight cvFunction guifg=#7aa2f7
+
+:syntax match cvUDF /@[a-z0-9_]\+/
+:highlight link cvUDF cvFunction
+
+:syntax keyword cvImport in
+:highlight cvImport guifg=#7dcfff
+
+:syntax keyword cvSpecial buf end fct Q t len new b0
+:highlight cvSpecial guifg=#9d7cd8 gui=bold
+
+:syntax keyword cvRepeat for
+:highlight cvRepeat guifg=#bb9af7
+
+:syntax keyword cvOptimization eft wfr efp int dra rou bfg ext cnv mxc tar tim imp dsp
+:highlight link cvOptimization cvOption
+
+:syntax keyword cvConstraints thc gl1 ccy mxt mnt mne mna mae efl oal imd diy ray
+:highlight link cvConstraints cvOption
diff --git a/powershell/Microsoft.PowerShell_profile.ps1 b/powershell/Microsoft.PowerShell_profile.ps1
new file mode 100644
index 0000000..c05df79
--- /dev/null
+++ b/powershell/Microsoft.PowerShell_profile.ps1
@@ -0,0 +1,188 @@
+#Prompt
+
+function prompt {
+
+ $Date = Get-Date -Format 'dddd HH:mm:ss'
+
+ $LastCommand = Get-History -Count 1
+ if ($lastCommand) { $RunTime = ($lastCommand.EndExecutionTime - $lastCommand.StartExecutionTime).TotalSeconds }
+
+ $ElapsedTime = [math]::Round(($RunTime), 3)
+ $ElapsedTime = -join (($ElapsedTime.ToString()), "s")
+
+ Write-Host $PWD -ForegroundColor Blue -NoNewline
+ Write-Host " [$date]" -ForegroundColor Yellow
+
+ Write-Host "[$elapsedTime] " -NoNewline -ForegroundColor Green
+ return "> "
+} #end prompt function
+
+
+Set-PSReadLineOption -EditMode Emacs `
+ -BellStyle None `
+ -PredictionSource History `
+ -Colors @{
+ "Command" = "Green"
+ "Parameter" = "DarkGray"
+ "String" = "DarkYellow"
+ "Keyword" = "DarkYellow"
+ "Comment" = "Gray"
+ "Variable" = "DarkGray"
+}
+$PSStyle.FileInfo.Directory = "`e[38;2;255;191;0m"
+Set-PSReadLineKeyHandler -Key Ctrl+Spacebar -Function AcceptSuggestion #ForwardWord
+Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+g' -PSReadlineChordReverseHistory 'Ctrl+r'
+
+
+####################### Private Functions ###################################
+. "$env:SYNC\Repos\Powershell\BackupFunctions.ps1"
+
+####################### Functions ###################################
+#Reduce video quality for archiving large sets.
+
+function Convert-Videos {
+ param (
+ [Parameter(Mandatory = $true)]
+ [string]$InputFolder,
+
+ [Parameter(Mandatory = $true)]
+ [string]$OutputFolder
+ )
+ # Resolve relative paths to absolute paths
+ $InputFolder = (Resolve-Path $InputFolder).Path
+ $InputFolder = Join-Path $InputFolder "\*" #necessary since gci -include needs this
+ $OutputFolder = (Resolve-Path $OutputFolder).Path
+ # Process each video file in the input folder
+ Get-ChildItem -Path $InputFolder -File -Include *.mp4,*.mkv,*.avi,*.webm | ForEach-Object {
+ $inputFile = $_.FullName
+ $outputFile = Join-Path $OutputFolder $_.Name
+
+ Write-Host "Processing $inputFile to $outputFile"
+
+ # Run FFmpeg command
+ ffmpeg -i $inputFile -vf "scale=-1:720,fps=30" -c:v h264_nvenc -preset fast -cq 30 -c:a aac -b:a 128k $outputFile
+ }
+ Write-Host "Conversion complete! Files saved to $OutputFolder"
+}
+function Convert-Videoswebm {
+ param (
+ [Parameter(Mandatory = $true)]
+ [string]$InputFolder,
+
+ [Parameter(Mandatory = $true)]
+ [string]$OutputFolder
+ )
+ # Resolve relative paths to absolute paths
+ $InputFolder = (Resolve-Path $InputFolder).Path
+ $InputFolder = Join-Path $InputFolder "\*" #necessary since gci -include needs this
+ $OutputFolder = (Resolve-Path $OutputFolder).Path
+
+
+ # Process each video file in the input folder
+ Get-ChildItem -Path $InputFolder -File -Include *.webm | ForEach-Object {
+ $inputFile = $_.FullName
+ $outputFile = Join-Path $OutputFolder $_.Name
+
+ Write-Host "Processing $inputFile to $outputFile"
+
+ # Run FFmpeg command
+ffmpeg -hwaccel cuda -i $inputFile -vf "scale=-1:720,fps=30" -c:v av1_nvenc -cq 30 -preset p4 -c:a copy $outputFile
+
+ # ffmpeg -i $inputFile -vf "scale=-1:720,fps=30" -crf 30 -b:v 1M -c:a copy -threads 0 $outputFile
+ }
+ Write-Host "Conversion complete! Files saved to $OutputFolder"
+}
+#Generate a file list for ffmpeg operation (primary use for concat).
+function genlistffmpeg{
+foreach ($i in Get-ChildItem .\*.wav) {"file '$i'" | Out-File mylist.txt -Encoding utf8 -Append}
+}
+# Utilities
+# Better way of starting nvim
+function in {
+ param (
+ [string]$FilePath
+ )
+ nvim $FilePath
+ # }
+}
+
+#Start CODE V
+function cv{
+ param (
+ [string]$SourcePath = "D:\Optics\CODEV\CVUSER\Defaults.seq"
+ )
+
+ # Check if the source file exists
+ if (Test-Path -Path $SourcePath) {
+ # Copy the file to the current active directory
+ Copy-Item -Path $SourcePath -Destination (Get-Location) -Force
+ }
+ else {
+ Write-Host "File '$FileName' not found in the specified directory."
+ }
+ codevm
+}
+# Backup Functions
+function rcopy {
+ param (
+ [string]$source,
+ [string]$destination
+ )
+
+ # Construct the Robocopy command with 16 threads
+ $robocopyCommand = "robocopy `"$source`" `"$destination`" /MT:16 /COPY:DAT /DCOPY:DAT /E"
+
+ # Execute the Robocopy command
+ Invoke-Expression $robocopyCommand
+}
+
+function rmirror {
+ param (
+ [string]$source,
+ [string]$destination
+ )
+
+ # Construct the Robocopy command with 16 threads
+ $robocopyCommand = "robocopy `"$source`" `"$destination`" /MIR /MT:16 /COPY:DAT /DCOPY:DAT"
+
+ # Execute the Robocopy command
+ Invoke-Expression $robocopyCommand
+}
+
+
+
+function rt{
+ rterm --no-save
+}
+function lsr {
+ param (
+ [int]$Days = 7, # Default to 7 days if no parameter is provided
+ [string]$Path = "." # Default to the current directory
+ )
+
+ Get-ChildItem -Path $Path -File -Recurse |
+ Where-Object { $_.LastWriteTime -gt (Get-Date).AddDays(-$Days) }
+}
+
+
+#Alias Programs
+function i {ipython}
+function pidof {Get-Process -Name $args}
+function which {Get-Command $args}
+function lsblk {Get-PSDrive}
+function blkid {Get-Volume}
+function gfh {Get-FileHash}
+function dict {wsl zsh -c "dict $args | colorit"}
+function Search-Markdown {
+ param (
+ [string]$query = $(Read-Host "Enter search term")
+ )
+
+ $selected = rg --color=always --line-number --smart-case $query *.md | fzf --ansi --delimiter : --preview "bat --color=always --style=plain {(echo {1})}"
+
+ if ($selected -match "^([^:]+):(\d+)") {
+ $file = $matches[1]
+ $line = $matches[2]
+ code "$file" --goto $line # Open in VS Code at the correct line
+ }
+}
diff --git a/telegram/shortcuts-custom.json b/telegram/shortcuts-custom.json
new file mode 100644
index 0000000..494ae75
--- /dev/null
+++ b/telegram/shortcuts-custom.json
@@ -0,0 +1,36 @@
+// This is a list of your own shortcuts for Telegram Desktop
+// You can see full list of commands in the 'shortcuts-default.json' file
+// Place a null value instead of a command string to switch the shortcut off
+
+[
+ // {
+ // "command": "close_telegram",
+ // "keys": "ctrl+f4"
+ // },
+ // {
+ // "command": "quit_telegram",
+ // "keys": "ctrl+q"
+ // }
+ {
+ "command": "next_chat",
+ "keys": "ctrl+j"
+ },
+ {
+ "command": "previous_chat",
+ "keys": "ctrl+k"
+ },
+
+ {
+ "command": "first_chat",
+ "keys": "ctrl+g+g"
+ },
+ {
+ "command": "last_chat",
+ "keys": "ctrl+G"
+ },
+ {
+ "command": "show_contacts",
+ "keys": "ctrl+space"
+ }
+
+]
diff --git a/wezterm/wezterm.lua b/wezterm/wezterm.lua
new file mode 100644
index 0000000..7b638b6
--- /dev/null
+++ b/wezterm/wezterm.lua
@@ -0,0 +1,52 @@
+-- Pull in the wezterm API
+local wezterm = require("wezterm")
+local act = wezterm.action
+local config = {}
+
+-- Use config builder object if possible
+if wezterm.config_builder then config = wezterm.config_builder() end
+
+config.audible_bell = "Disabled"
+config.default_prog = {'pwsh.exe', '-NoLogo'}
+config.color_scheme = "Tokyo Night"
+config.font = wezterm.font_with_fallback({
+ {family = 'Hack NF',scale = 1.0}
+})
+config.use_fancy_tab_bar = false
+config.hide_tab_bar_if_only_one_tab = true
+config.font_size = 16
+config.window_decorations = "RESIZE"
+config.max_fps = 144
+config.disable_default_key_bindings = true
+config.leader = { key = ",", mods = "CTRL", timeout_milliseconds = 1000 }
+config.keys = {
+ {key = 'W', mods = 'CTRL', action = wezterm.action.CloseCurrentPane { confirm = true },},
+ { key = "s", mods = "LEADER", action = act.SplitVertical { domain = "CurrentPaneDomain" } },
+ { key = "v", mods = "LEADER", action = act.SplitPane {direction = "Right", size ={Percent=30} } },
+ { key = "h", mods = "LEADER", action = act.ActivatePaneDirection("Left") },
+ { key = "j", mods = "LEADER", action = act.ActivatePaneDirection("Down") },
+ { key = "k", mods = "LEADER", action = act.ActivatePaneDirection("Up") },
+ { key = "l", mods = "LEADER", action = act.ActivatePaneDirection("Right") },
+ { key = "Enter", mods = "LEADER", action = act.ToggleFullScreen},
+ { key = "Space", mods = "CTRL|SHIFT", action = act.ActivateCopyMode},
+ -- We can make separate keybindings for resizing panes
+ -- But Wezterm offers custom "mode" in the name of "KeyTable"
+ { key = "r", mods = "LEADER", action = act.ActivateKeyTable { name = "resize_pane", one_shot = false } },
+ -- Resizing Panes
+ { key = "H", mods = "LEADER", action = act.AdjustPaneSize{"Left",5} },
+ { key = "J", mods = "LEADER", action = act.AdjustPaneSize{"Down",5} },
+ { key = "K", mods = "LEADER", action = act.AdjustPaneSize{"Up",5} },
+ { key = "L", mods = "LEADER", action = act.AdjustPaneSize{"Right",5}},
+ -- Cycling
+ { key = ";", mods = "CTRL", action = act.ActivatePaneDirection("Next") },
+
+ -- Tab keybindings
+ { key = "t", mods = "LEADER", action = act.SpawnTab("CurrentPaneDomain") },
+ { key = "[", mods = "LEADER", action = act.ActivateTabRelative(-1) },
+ { key = "]", mods = "LEADER", action = act.ActivateTabRelative(1) },
+ { key = "n", mods = "LEADER", action = act.ShowTabNavigator },
+ { key = 'K', mods = 'CTRL|SHIFT', action = act.Multiple {act.ClearScrollback 'ScrollbackAndViewport',},},
+ {key = "V", mods = "SHIFT|CTRL", action = act.PasteFrom "Clipboard"},
+
+}
+return config
diff --git a/windows-terminal/settings.json b/windows-terminal/settings.json
new file mode 100644
index 0000000..be8abbb
--- /dev/null
+++ b/windows-terminal/settings.json
@@ -0,0 +1,124 @@
+{
+ "$help": "https://aka.ms/terminal-documentation",
+ "$schema": "https://aka.ms/terminal-profiles-schema",
+ "actions":
+ [
+ {
+ "command":
+ {
+ "action": "copy",
+ "singleLine": false
+ },
+ "id": "User.copy.644BA8F2"
+ },
+ {
+ "command": "paste",
+ "id": "User.paste"
+ },
+ {
+ "command": "find",
+ "id": "User.find"
+ },
+ {
+ "command":
+ {
+ "action": "splitPane",
+ "split": "auto",
+ "splitMode": "duplicate"
+ },
+ "id": "User.splitPane.A6751878"
+ }
+ ],
+ "alwaysShowTabs": false,
+ "copyFormatting": "none",
+ "copyOnSelect": false,
+ "defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
+ "keybindings":
+ [
+ {
+ "id": "User.copy.644BA8F2",
+ "keys": "ctrl+c"
+ },
+ {
+ "id": "User.find",
+ "keys": "ctrl+shift+f"
+ },
+ {
+ "id": "User.splitPane.A6751878",
+ "keys": "alt+shift+d"
+ }
+ ],
+ "launchMode": "maximized",
+ "minimizeToNotificationArea": true,
+ "newTabMenu":
+ [
+ {
+ "type": "remainingProfiles"
+ }
+ ],
+ "profiles":
+ {
+ "defaults":
+ {
+ "font":
+ {
+ "face": "Hack NF",
+ "size": 18
+ },
+ "padding": "0"
+ },
+ "list":
+ [
+ {
+ "commandline": "%SystemRoot%\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
+ "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
+ "hidden": false,
+ "name": "Windows PowerShell"
+ },
+ {
+ "commandline": "%SystemRoot%\\System32\\cmd.exe",
+ "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
+ "hidden": false,
+ "name": "Command Prompt"
+ },
+ {
+ "font":
+ {
+ "face": "Hack NF",
+ "size": 18
+ },
+ "guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
+ "hidden": false,
+ "name": "PowerShell",
+ "source": "Windows.Terminal.PowershellCore"
+ },
+ {
+ "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
+ "hidden": false,
+ "name": "Azure Cloud Shell",
+ "source": "Windows.Terminal.Azure"
+ },
+ {
+ "guid": "{4aa036c5-c61a-5931-8342-ab6e0f0314c6}",
+ "hidden": false,
+ "name": "Ubuntu",
+ "source": "Microsoft.WSL"
+ },
+ {
+ "guid": "{51855cb2-8cce-5362-8f54-464b92b32386}",
+ "hidden": false,
+ "name": "Ubuntu",
+ "source": "CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc"
+ },
+ {
+ "guid": "{aa3a40cc-c841-5c29-8ddf-356a19c32c90}",
+ "hidden": false,
+ "name": "Debian",
+ "source": "Microsoft.WSL"
+ }
+ ]
+ },
+ "schemes": [],
+ "showTabsInTitlebar": false,
+ "themes": []
+}
Back to https://optics-design.com