Comments (4)
Interesting. What version of Sublime Text are you using? Can you please share the following:
echo $EDITOR
$SHELL --version
from composure.
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.
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.
adding the -w
flag worked perfectly! Thanks.
from composure.
Related Issues (18)
- stripping semicolons breaks case statements HOT 1
- Fix pipe/&& precedence for some bash versions HOT 2
- Slow glossary command HOT 6
- write function is broken
- glossary does not generate output as shown in Readme.md HOT 4
- use GNU printf from coreutils if available
- Empty file created? HOT 2
- functions not loaded; glossary does not list functions in repo HOT 2
- Should say `revise` saves and moves on before any edits if your editor returns on open HOT 1
- Glossary (_typeset_functions, _shell) fail in script HOT 1
- typeset -f fails on GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18) HOT 1
- draft function name clash HOT 1
- Write function outputs cite function as well as parameters HOT 2
- shellcheck test HOT 1
- metafor's "sed-fu" seems overly complicated. Triggers bug in busybox with musl. Can it be simplified?
- drafting over existing commands HOT 7
- _letterpress should wrap better on skinny terminals HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from composure.