Menu

#46 VCS support (git)

open
nobody
None
5
2010-02-27
2010-02-27
Anonymous
No

git has meanwhile become the de facto SCM/VCS and it would be neat if this could be supported:

it seems that implementing support for using the git protocol should be fairly doable, because it would only be required on the server-side, so that the client could simply issue shell commands (git init, git add, git commit, git branch, git checkout ...)

Ideally, there would be some simple form of macro language supported in the IDE, so that users could simply create macros in order to assign git actions to toolbar buttons or context menu clicks. These would then be made available for individual files.

The result of each action should be displayed in the log window

So this would not require any new libraries or dependencies, it mostly boils down to adding a possibility to issue batch files with commands using the ssh connecting, and providing a possibility to assign these actions to toolbar elements or context menu entries (possibly with a configurable icon)

Discussion

  • Nobody/Anonymous

    Okay, I found out that this is basically already possible, at least to a fair extent.

    It only needs VERY SMALL improvements to be EXTREMELY useful:

    1) allow external tools to be added to the context menu or toolbar
    2) allow to specify that external tools require to be called on a path (filename or folder)
    3) provide the selected item (filename or folder) as a variable that can be used in actions (e.g. $SELECTION)
    4) provide a way to specify if an external tool can be used for multiple selections (multiple files)

    allow users to preconfigure a bunch of variables that can be referenced by external tools for use in batch files, such as:

    - $AUTHOR
    - $EMAIL
    - $DATE
    - $TIME
    - $PROJECT
    - $FILENAME

    Also, another KILLER feature would be a context menu that could dynamically populate a submenu with items based on a command, for example imagine something that should allow to switch branches in git:

    [switch branch]
    -> [list of branches] (retrieved by running "git branch"]
    and the selected branch will be stored in a variable $SELECTED to run git checkout $SELECTION

    These would be VERY useful and powerful additions!

     
  • Nobody/Anonymous

    maybe not just toolbar buttons, but also a combo box in the toolbar that can be dynamically populated with items from running a shell command (git branch) and then associate an action with each item to make the selection take effect.

    Maybe some simple regex support could be useful to parse shell output and reuse it when triggering actions

     

Log in to post a comment.

MongoDB Logo MongoDB