sagold / FuzzyFilePath

Autocomplete relative or absolute file paths in Sublime Text project folder
Do What The F*ck You Want To Public License
154 stars 14 forks source link

[Question] How does it work? #57

Open kud opened 5 years ago

kud commented 5 years ago

ST version: 3208

No automatic trigger, and autocomplete works like 1/10 times.

My settings:

{
    "animation_enabled": true,
    "auto_complete_commit_on_tab": true,
    "auto_complete_with_fields": true,
    "bold_folder_labels": true,
    "caret_extra_bottom": 2,
    "caret_extra_top": 2,
    "caret_extra_width": 1,
    "caret_style": "phase",
    "close_windows_when_empty": false,
    "color_scheme": "Packages/Oceanic Next Italic Color Scheme/Oceanic Next Italic.tmTheme",
    "copy_with_empty_selection": false,
    "default_encoding": "UTF-8",
    "detect_indentation": false,
    "detect_slow_plugins": true,
    "dictionary": "Packages/Language - English/en_GB.dic",
    "drag_text": false,
    "draw_minimap_border": false,
    "draw_white_space": "all",
    "ensure_newline_at_eof_on_save": true,
    "fade_fold_buttons": true,
    "file_exclude_patterns":
    [
        "*.pyc",
        "*.scssc",
        "*.cssc",
        "*.tpl.php",
        ".DS_Store",
        "*.tpl.cache.php"
    ],
    "findreplace_small": true,
    "folder_exclude_patterns":
    [
        ".sass-cache",
        ".git",
        "node_modules",
        ".bundle"
    ],
    "folder_no_icon": false,
    "font_face": "Operator Mono Lig Book",
    "font_options":
    [
        "gray_antialias"
    ],
    "font_size": 17,
    "highlight_line": true,
    "highlight_modified_tabs": true,
    "highlight_unicode_color_name": "comment",
    "ignored_packages":
    [
        "Markdown",
        "Vintage"
    ],
    "line_padding_bottom": 1,
    "line_padding_top": 1,
    "one_dark_show_scroll_tabs": false,
    "one_dark_show_tabs_dropdown": false,
    "overlay_scroll_bars": "enabled",
    "preview_on_click": false,
    "show_css_completions": false,
    "show_definitions": false,
    "show_encoding": true,
    "show_full_path": true,
    "show_line_endings": true,
    "show_tab_close_buttons": true,
    "sidebar_xsmall": true,
    "status_bar_brighter": true,
    "tab_size": 2,
    "tabs_small": true,
    "theme": "One Dark.sublime-theme",
    "theme_font_options":
    [
        "gray_antialias"
    ],
    "translate_tabs_to_spaces": true,
    "tree_animation_enabled": true,
    "trim_trailing_white_space_on_save": true,
    "use_tab_stops": true,
    "word_wrap": true
}

and no special settings for this plugin.

kud commented 5 years ago

Kapture 2019-07-26 at 11 53 26

sagold commented 5 years ago

Hi kud.

Did you try following the tutorial and adopting the settings to your purpose? Per default, the es6 imports work for me quite fine, but it does heavily rely on the current scope, syntax-definitions and trigger configurations.

kud commented 5 years ago

I'm not totally sure yet but it seems that there're some troubles with

Still investigating.

kud commented 5 years ago

It's really weird because I've got your autocomplete at first, with a list of files, and just after it says FFP didn't found any file for "" and shows me the classic autocomplete (variables, etc).

kud commented 5 years ago

If you've got:

import test from ""

and you start autocompletion at between the "", it'll give you sometimes:

FFP  Completion abort - not a valid context
FFP  Completion abort - no auto trigger found
kud commented 5 years ago

https://imgur.com/a/Aql5I1s

kud commented 5 years ago

Yeah sometimes I've got Not filepath found for which replaces your autocomplete by a classic autocomplete and I've got to retrigger it to get your pluging. Sounds weird.