Comments (3)
Ah, I think I understand now. I don't actually ever use the save feature. I honestly forgot I had already implemented a save until you mentioned I did. So yeah, we can probably incorporate variables.
@gir-bot remove S: triage
@gir-bot add T: feature, P: low
from exporthtml.
More specifically, can you elaborate on what feature you are requesting? And how you imagine it would work?
I get the impression you want to save the exported HTML to a file? If I did this, I'd probably just prompt the user with a save file dialog via the sublime.save_dialog
API. Granted, this is a new API command in ST4 (in Beta and available on Sublime's Discord server), but that is probably the way I'd go. The starting directory could be configurable and such.
from exporthtml.
I specifically would like to use the $folder
or $project
variable to specify a directory which is relative to the opened file or project to store all the exported HTML files. For example, if I have a folder opened in ST like this:
Some Project # $project_path, $folder
├── Some Project.sublime-project # $project
├── src # $file_path
│ ├── main.py <- opened file
│ ├── test.py
│ └── ...
└── HTML
├── main.py.html
├── test.py.html
└── ...
In this example, I would like to save exported HTML files to the HTML
sub-directory of the project directory, if these variables are supported, this can be specified by either $project_path/HTML
, or $folder/HTML
.
The current implementation seems only supports saving files to the same directory as the opened file, or an absolute path if specified, and relative paths are also not supported.
It would be useful if I could manually pick the directory on save every time, but I think it would be more useful if I could just specify a relative path to either the opened file or the project directory, and just export them as usual. Also, using these variables is the standard way of implementing it (used by many other ST extensions for similar feature), so I suggest to implement the feature in this way instead of only supporting relative paths.
from exporthtml.
Related Issues (20)
- Every tab is converted into (in my case) 4 spaces HOT 5
- Need some help changing the color_scheme HOT 2
- Minor comment error in sublime-settings file HOT 2
- New color schemes and copyright issues HOT 1
- Backround color set to "none" in Print-Color.sublime-color-scheme turned into white HOT 3
- Cannot recognize the view setting "font_option" HOT 3
- Generate new labels HOT 2
- Color mods in .sublime-color-scheme HOT 31
- Export XML HOT 4
- FileNotFoundError : No such file or directory: '.../ColorSchemes/Print-Color' HOT 9
- Docs(README): .sublime-color-scheme support HOT 1
- I don't seem to get the current color scheme colors on the export. HOT 1
- Death Knell for ExportHtml has been sounded (ST4 may not need ExportHtml) HOT 2
- Grayscale print option shows up same HTML as colored one HOT 7
- Bug feedback: The export menu cannot be displayed normally, in the default setting HOT 16
- README documentation link broken HOT 3
- Also export colored sublime regions (view.add_regions) HOT 2
- Compatibility with python 3.8 HOT 2
- Typo: diable_nbsp instead of disable_nbsp HOT 1
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 exporthtml.