Comments (6)
Sure :)
Works exactly as intended:
- No application has been chosen for opening TOML files:
proji package edit
opens the configuration with TextEdit (Screenshot). After saving and pressing Enter, the new config is persisted. - After specifying an application (VS Code) to be used for opening TOML files,
proji package edit
opens the file in VS Code. Updates are persisted successfully.
from proji.
from proji.
A first version of this feature can be found here.
Need feedback if the automatic opening of config files works on different platforms:
- Linux
- MacOS
- Windows
from proji.
Hi @nikoksr,
I've checked it on MacOS and unfortunately got an error.
The reason is that on my machine, no application is connected to TOML files:
I think this might apply to many users. A possible solution for MacOS might be to try open.Run first. If an error on MacOS occurs, instead, open.RunWith(configFile, "TextEdit")
could be executed. TextEdit is a simple text editor that's available on any Mac.
Edit: Or just inform the user that no application is linked to TOML yet, instead of just showing the exit code.
from proji.
@FelixMohr I implemented your recommended changes. When the open
command fails to automatically open the config in a text editor it will try to open the file with the program TextEdit
.
Would be highly appreciated if you could test the changes on the improve-package-editing branch for macOS.
from proji.
Check package editing under Windows and it opened the dialog for choosing a default application for toml
files immediately so I'll let that one pass working.
from proji.
Related Issues (20)
- Command 'class import --remote-repo' seems to be inconsistent HOT 1
- API Authentication HOT 2
- Export example class fails
- Breaks when creating new projects from very big classes
- Integrate into context menu of file managers HOT 3
- Proji Packages HOT 1
- Add deb, rpm and snap packages to releases HOT 3
- Completion for Fish and PowerShell
- Add proji to winget-pkgs HOT 2
- Replace shell scripts with lua scripts
- Drop support for statuses
- Add a template engine
- Packages should be updateable
- Prettify the UI
- Add a stats sub-command
- Allow package replacements
- Add examples to commands help flags
- v0.20.1 release missing [BUG] HOT 2
- Support for new default name of GitHub main branches
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 proji.