https://github.com/saneef/sublp
It's a smarter `subl` CLI tool for Sublime Text.
https://github.com/saneef/sublp
Last synced: 3 months ago
JSON representation
It's a smarter `subl` CLI tool for Sublime Text.
- Host: GitHub
- URL: https://github.com/saneef/sublp
- Owner: saneef
- License: mit
- Created: 2023-07-07T07:17:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-19T13:04:36.000Z (almost 3 years ago)
- Last Synced: 2025-01-24T18:46:05.054Z (over 1 year ago)
- Language: Racket
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sublp
It's a smarter `subl` CLI tool for Sublime Text.
The `sublp` opens the matching project file (`.sublime-project`) for a provided path, or the current directory.
If the project file doesn't exist, it opens the path in Sublime Text as would `subl` normally do.
The `sublp` internally uses `subl`.
## Installation & Usage
[Terser](https://terser.org) must be installed for this tool to work. The Sublime Text's JSON files with comments are sanitised using Terser before parsing.
Set environment variable `SUBLP_PATH` with paths to search for `.sublime-project` files.
## Development
### Testing
```sh
raco test . # Runs the unit tests
```
### Building
```sh
raco exe sublp.rkt # Builds the executable `sublp` in the current directory
```