Ollama
- Install Ollama, and download one of the recommended models (e.g. https://ollama.com/library/qwen2.5-coder)
- Update your
.hackermanconfig file (Right-Click orCmd + Shift + Pto open function explorer, then select Open Config File) - Find and edit this section:
[models] -- ollama code_completion ollama, qwen2.5-coder:1.5b - Code completion can be triggered with Code Completion (or
Cmd + K)
Mistral
- Create Mistral account, and get your api key (see https://docs.mistral.ai/getting-started/quickstart)
- Update your
.hackermanconfig file (Right-Click orCmd + Shift + Pto open function explorer, then select Open Config File) - Find and edit this section (replace
API_KEYwith your Mistral api key):[models] -- cloud providers code_completion mistral, codestral-latest, API_KEY - Code completion can be triggered with Code Completion (or
Cmd + K)
Inception
- Create Inception account, and get your api key (see https://docs.inceptionlabs.ai/get-started/authentication)
- Update your
.hackermanconfig file (Right-Click orCmd + Shift + Pto open function explorer, then select Open Config File) - Find and edit this section (replace
API_KEYwith your Inception api key):[models] -- cloud providers code_completion inception, mercury-coder, API_KEY - Code completion can be triggered with Code Completion (or
Cmd + K)
Inline commands can be triggered with Inline Commands (or Cmd + Shift + Return).
Shell and Python eval
This feature is only allowed in .txt and .md files by default.
You can change allowed files in your .hackerman config file.
% echo 'hello' hello
42**42 150130937545296572356771972164254457814047970568738777235893533016064
Org-mode code execution
You an execute Python, Lua, JavaScript, and Hy code in your .org files.
Move cursor inside code block and run Inline Commands (or Cmd + Shift + Return).
(defn main [name]
(print "Welcome to Hy in org-mode," name "!")
)
(main name)#+RESULTS: True : Welcome to Hy in org-mode, Michael !
This feature is disabled by default.
You can enable in your .hackerman config file.
scripts_enabled true allow_unsafe_scripts false -- allow imports
Scripts are loaded from .../Application Support/Hackerman Text/.hackerman-scripts.
You can provide a path to your own .py file if stored elsewhere.
path_to_scripts_file path/to/plugins.py -- path to scripts file, requires restart