Comments (12)
@Cooperdale sublime may be further configured to open the autocompletion panel: https://www.granneman.com/webdev/editors/sublime-text/top-features-of-sublime-text/auto-completion-in-sublime-text/. i.e.
"auto_complete_triggers":
[
{
"characters": "abcdefghijklmnopqrstuvwxyz",
"selector": "string.quoted.double.html"
}
]
from fuzzyfilepath.
Anyone?
from fuzzyfilepath.
Hi Cooperdale.
Your settings seem correct for testing purposes. With auto: true
, FuzzyFilePath responds to Sublimes completion query. Testing the above setting, Sublime does not trigger autocompletions in some html contexts, but within a css-file i immediately receive a popup. Maybe it would help testing it in a stylesheet file.
In any case, check the console for notifications or errors. But since it basically works, you should set debug: true
in your FFP settings to receive some more information. To evaluate your current context (cursor position) you could also open a popup with more description as described here.
from fuzzyfilepath.
Thanks for the answer. It actually doesn't come up with css either, but I think it comes from some bigger problem, since suggestions don't automatically show up for css rules either. I have to press Ctrl+Alt+Space each time. That's strange because it's a new and totally clean install.
from fuzzyfilepath.
Hi Cooperdale.
Just wondering, are the default completions (words occuring in the texfile or completion-list) opened? You can force them by control + space. Does your console show any relevant messages or errors?
from fuzzyfilepath.
@sagold ctrl + space also does't work :(
from fuzzyfilepath.
Doesn't work for me too now. The console shows:
FFP PROJECT rebuild filecache of
FFP cache START adding files in
Exception in thread Thread-7:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "project.FileCacheWorker in /Users/jiayi/Library/Application Support/Sublime Text 3/Installed Packages/FuzzyFilePath.sublime-package", line 33, in run
File "project.FileCacheWorker in /Users/jiayi/Library/Application Support/Sublime Text 3/Installed Packages/FuzzyFilePath.sublime-package", line 49, in read
FileNotFoundError: [Errno 2] No such file or directory: ''
from fuzzyfilepath.
@jiayihu is it possible that you have an invalid entry in your project settings? Something like
{
"folders":
[
{
"path": "."
},
{
"path": ""
}
from fuzzyfilepath.
@sagold As far as I know I dont' have any project settings or .sublime-project
file inside the folder, but it may be something related to the settings.
This is a more detailed console error:
FFP -WARNING- PROJECT project directory in settings in not a valid folder
FFP PROJECT new project created
FFP PROJECT Base directory at ''
FFP cache START adding files in
Exception in thread Thread-13:
Traceback (most recent call last):
File "./python3.3/threading.py", line 901, in _bootstrap_inner
File "project.FileCacheWorker in /Users/jiayi/Library/Application Support/Sublime Text 3/Installed Packages/FuzzyFilePath.sublime-package", line 33, in run
File "project.FileCacheWorker in /Users/jiayi/Library/Application Support/Sublime Text 3/Installed Packages/FuzzyFilePath.sublime-package", line 49, in read
FileNotFoundError: [Errno 2] No such file or directory: ''
from fuzzyfilepath.
The first line FFP -WARNING- PROJECT project directory in settings in not a valid folder
refers to an invalid project_directory either in the user settings or some weird state that causes the directory to be empty.
Could you check your settings files for an entry "project_directory": ""
. This should either be an empty string or any valid folder (relative, based from your opened folder as is "app")? If it is missing, add it If everything seems fine, i require some detailed information:
- sublime version
- os
- opened folderpath
- multiple folders?
Thanks.
from fuzzyfilepath.
@sagold Thanks, after tinkering with those autocompletion setting it works quite better.
One more question, probably off topic but I have to ask: why does the plugin had a "/" in front of every root subfolder? That is, if I tell the plugin to go with "images/blog01.jpg", it will actually write "/images/blog01.jpg" and the image will not show on the page.
from fuzzyfilepath.
Absolute paths start with a /
to prevent any misinterpretation. adding a regex to replace_on_insert
should work around the other cases.
from fuzzyfilepath.
Related Issues (20)
- Crash on sublimeText 3, build 3126 release 23rd Sep 2016 HOT 3
- [Feature request] Add full relative paths for JavaScript files by default HOT 3
- [Bug] GotoFile failed finding file HOT 3
- Breaks snippet HOT 2
- Line 641, in __getitem__ raise IndexError() HOT 2
- Lag while opening a new project, FuzzyFilePath cached ... files in ... HOT 2
- Insert path relative to the current file HOT 1
- Add JS "import ... from" statement to default prefixes
- Image Sourcing Bug HOT 1
- FFP post cleanup path:' merge set ' ~~> ' merge set '
- Error when attempting to "Find All"
- Python from completion not being erased and filled with spaces
- Not working for SCSS files HOT 1
- omit extension? HOT 1
- Not detecting new files HOT 2
- Doesn't work in latest version HOT 3
- [Question] How does it work? HOT 7
- How to "replace_on_insert" on key binding, not auto_complete_trigger HOT 1
- path is on mount, start on mount..
- Not working (Mac, Sublime 3, Build 4126)
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 fuzzyfilepath.