Giter Site home page Giter Site logo

Comments (4)

erichs avatar erichs commented on May 22, 2024

Interesting. What version of Sublime Text are you using? Can you please share the following:

echo $EDITOR
$SHELL --version

from composure.

scotho3 avatar scotho3 commented on May 22, 2024

Sublime Text - Stable Channel, Build 3065

$ echo $EDITOR
subl 
$ $SHELL --version
GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin14)
Copyright (C) 2007 Free Software Foundation, Inc.

Also, when I revise, it automatically is waiting for the commit message, even before the file is saved in subl.

from composure.

erichs avatar erichs commented on May 22, 2024

Ok. I think what is happening here is that command-line sublime needs to be started as subl -w, where the -w flag means "wait for the files to be closed before returning". Unfortunately, you may find that

export EDITOR="subl -w"

does not work for you. If you export the above and see "command not found" errors, I would ask you to please create a small script, say /usr/local/bin/sublw:

#!/bin/bash
/usr/local/bin/subl -w $*

Then, do:

chmod +x /usr/local/bin/sublw

Finally, do:

export EDITOR=sublw

The alternative, in order to support EDITOR flags within composure, would likely involve the use of eval, which I would rather strongly seek to avoid in this context. Please let me know if the workaround above works for you!

from composure.

scotho3 avatar scotho3 commented on May 22, 2024

adding the -w flag worked perfectly! Thanks.

from composure.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.