Comments (3)
Hmm i'll have to think about that
There is surely a way to capture arguments from the vim command line and pass them to the final script/executable but:
-
may be a bit clunky to use. I mean typing ":%SnipRun arg1 arg2 arg3" each time you want to test something?
-
relative path (as CLI argument) will be an issue, because sniprun runs in its own location. This won't change but maybe we can hack around with symlinks and stuff
from sniprun.
Is it possible to toggle the feature on or off. If on then only it will ask for arguments.
from sniprun.
Is it possible to toggle the feature on or off. If on then only it will ask for arguments.
I don't think it is necessary: you'd think when there is no arguments after the SnipRun command, then, no args. Otherwise, copy the extra arguments from the neovim command to the (ex in python) python main.py
command sniprun launches
Or maybe I don't understand what you mean by 'ask for argument'
Your feature request is quite feasible and a good suggestion, though I'll need some time to work on implementation details and making the thing work, especially when the argument is a relative path
Anyway, the more we discuss here, the clearer your request will be :-)
from sniprun.
Related Issues (20)
- add feature can auto add nested local package's function in go . HOT 3
- go file cant process dot import. HOT 2
- api.run_string cant work as expected. HOT 8
- Add a pre process goimports for golang project before really run_string. HOT 3
- Releases contain un-updated `Cargo.lock` file HOT 10
- Releases contain un-updated `Cargo.lock` file HOT 2
- Option to open Terminal in horizontal split HOT 2
- SnipRun is not working on markdown .md files on MacOS HOT 2
- Python3_jupyter not working HOT 3
- Bun Repl HOT 4
- [FEATURE] Explicit configuration for binaries HOT 3
- Error detected while processing function SnipRunLauncher HOT 6
- C+OpenGL ERROR HOT 1
- No Neorg support anymore? HOT 7
- Cpp Compile-Time Error HOT 2
- How to run the entire current file? HOT 4
- Improve shell scripts portability HOT 3
- Improvement: Update Lua code to use Neovim API functions HOT 4
- Current Update breaks, rust Repl not outputing result. HOT 4
- Python import list depend will got a error when run script 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 sniprun.