Skip to content

Better command line arguments is a plugin that manages CLion "program arguments" as a tree structures

License

Notifications You must be signed in to change notification settings

BeardyKing/better_command_line_arguments

Repository files navigation

Better command line arguments (CLion Plugin)

Build Version

Preview:

CLArg

Info:

Better command line arguments is a CLion 2022.3.3 - 2024.1.X plugin that manages your 'program arguments' as a tree structures, this plugin is highly inspired by the Visual Studio plugin SmartCommandlineArgs

Warning:

This plugin will write raw command line text to workspace.xml which is used by CLion to manage Configurations, be sure to validate that your .idea folder is ignored from public repositories.

The CLArgs.json file saves your current CLArg tree, but doesn't doesn't store raw environment variables data, instead it stores the environment variable name i.e. <OS> this could potentially resolve to Windows_NT and can be viewed in the command line argument preview at the bottom of the plugin.

Roadmap:

Better command line arguments in its current form are presented in a state of a minimal viable plugin. I've written this plugin to match a simple workflow that I use on a daily basis. This plugin doesn't match all the features the visual studio plugin has but maybe in the future, I have provided a list of various features that this plugin would benefit from having.

If there are any features you would like feel free to open a pull request.

  • Rebindable shortcuts
  • View CLion program argument macros in CL Vars tab
  • Toggle hide environment variable preview
  • Folder conditions ( i.e. toggles based on config settings )
  • Undo/Redo last action

Shortcuts:

keybind use
'Insert' Add CLArg to current selected folder
'Delete' Remove all currently selected CLArgs
'Home' Add all currently selected CLArgs to new Folder
'Space' Toggle all currently selected CLArgs on/off
'Alt + Up' Move all currently selected CLArgs up in current folder
'Alt + Down' Move all currently selected CLArgs down in current folder
'Ctrl + R' Manually parse CLArgs and save to workspace.xml
'Ctrl + V' Add CLArg with text from the clipboard in current folder
'Middle Mouse' Toggle currently mouse hovered CLArg on/off

Installation

  • Using the IDE built-in plugin system:

    Settings/Preferences > Plugins > Marketplace > Search for "Better command line arguments" > Install

  • Manually:

    Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...

About

Better command line arguments is a plugin that manages CLion "program arguments" as a tree structures

Topics

Resources

License

Stars

Watchers

Forks