[Feature Request] Windows: Portable app = Portable settings
What problem would this solve?
One of the meanings of the word “PORTABLE” is ‘movable’ or “transportable.” I carry my frequently used programs with me on a flash drive so I can use them on multiple computers. But right now, MarkPad stores its settings in the user's AppData folder. This means I have to reconfigure it on every machine.
What would you like?
I’d like MarkPad to be able to store its settings in its own folder, next to the executable file. That way, I can carry my settings with me along with the program.
Has another app got this right?
There are many programs that do this: Notepad++, AkelPad, and so on.
Which platform is this for?
Windows
Your Markpad version and how you installed it
2.9.2 Portable
you can use input and output setting?
Yes, that's one option, and it works. But placing the settings in the same folder as the portable version's .exe file would be a good alternative that would save the user from unnecessary steps.
Perhaps a good solution to this problem would be the ability to run Markpad.exe with command-line arguments. In other words, add a simple CLI interface. For example, something like this:
:: import settings
Markpad.exe /import "file.json"
:: export settings
Markpad.exe /export "file.json"
:: import settings and open an .md file
Markpad.exe /import "file.json" /open "my_doc.md"
:: activate dark theme and open an .md file
Markpad.exe /theme "dark" /open "my_doc.md"
:: and so on...
I think you might be overcomplicating things there, although launch flags may also be handy to have different profiles/setups I guess?
I'm with you that portable Markpad should keep files in the same directory as the .exe, which is standard for practically every portable executable I use. Implementation-wise, I've seen some programs simply put an empty file named portable in the directly and the program reads this on start-up to change the settings paths.
launch flags may also be handy to have different profiles/setups
Of course. The flexibility of customization and the ability to automate routine tasks.
For example, right now I need Markpad to launch with a light theme in some cases and a dark theme in others. Since there are no other ways to do this, I have to use workarounds:
cd "%LOCALAPPDATA%\com.alecdotdev.markpad\EBWebView\Default\Local Storage\leveldb"
binrep -i -R 017468656D6505016461726B01 017468656D6506016C6967687401 000003.log
"%MARKPAD%" file.md
you might be overcomplicating things there
Maybe. To be honest, I haven't figured out yet what the reaction to my request is, so I'm trying to present it from different angles.