zyedidia / micro

A modern and intuitive terminal-based text editor
https://micro-editor.github.io
MIT License
24.84k stars 1.17k forks source link

win-micro #2412

Open shuncon opened 2 years ago

shuncon commented 2 years ago

How do I specify a storage path for the configuration file instead of putting it in my home directory, and I can't find config/micro on my install-free version.

I don't like to have software stuff lying around and would like the config file for micro to be in the same directory as micro. Even if it's a plugin

What should I do? I am using micro-2.0.10-win64.zip

shuncon commented 2 years ago

Offline installation of plug-ins will also report an error C:\micro-2.0.10>micro.exe -plugin install micro-plugin-lsp-0.5.3.zip Unknown plugin "micro-plugin-lsp-0.5.3.zip"

Gavin-Holt commented 4 months ago

Hi

Run micro using a batch file stored in the same directory as micro.exe:

@echo off
REM Run Micro as a portable application from terminal

REM Set Lua path if you have Lua scripts you want to "require"
set LUA_PATH=;;O:\MyProfile\lua\lua\?.lua;O:\MyProfile\lua\lua\?\init.lua         >nul 2>nul

start  "micro.exe" %~dp0micro.exe --config-dir %~dp0confMicro %*
cls

I would install plugins from within micro > plugin install.

Kind Regards Gavin Holt