Giter Site home page Giter Site logo

idea-file-path-autocomplete's People

Contributors

pinkfloyded avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

idea-file-path-autocomplete's Issues

Autocomplete when writing floats

This plugin tries to autocomplete filenames when writing a float which is really really annoying.

When working in Unity typing a float value it will try to autocomplete with the filename of the .meta file of the folder the currently editing .cs file is located in.

Example of a folder structure:

Assets/
    Sandbox/
        Test.cs
    Sandbox.meta

When editing the file Test.cs trying to type a float value such as:
float test = 5.0f;
As soon as you type the f it will try to autocomplete to Sandbox.meta.
If you then type the ; it will accept the autocomplete resulting in:
float test = 5.0Sandbox.meta;

image

Paths complete with backslash on Windows 10

I'm using PyCharm 2019.2 on Windows 10. Seems like relative paths work fine with forward slash (e.g. starting with "./" or "../" plus Ctrl + Space), but if I enter 'C:/' no suggestions come up. If I use backslashes, e.g. 'C:\' this will work for autocompletion, but the resulting string is inappropriate for python (\ is an escape character). The desired behavior would be to have C:/ produce the appropriate suggestions, and new directories would complete with an additional /

PyCharm 2019.2 (Professional Edition)
Build #PY-192.5728.105, built on July 23, 2019
Runtime version: 11.0.3+12-b304.10 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1949M
Cores: 8
Registry:
Non-Bundled Plugins: CMD Support, com.pinkfloyded.idea-file-path-autocomplete.idea-file-path-autocomplete

Autocompletion in yaml file

Is the plugin supposed to work in Yaml files?

Steps:

  1. Install YAML-plugin
  2. Open file test.yml
  3. Try to input service: /tm

Actual result:
Autocomplete is not invoked even by tab.

Add support for feature files

Hey

Can you please add support for Gherkin feature files?
File path autocomplete can be very helpful while writing Gherkin test scenarios, it works great on python files!

Thanks!

Make it possbible to use in interpolated and verbatim strings?

Hi, would it be possible to add support for interpolated ($"") / verbatim (@"") strings?
It's also possible to have both mixed so maybe regex would be a good fit to match (the entire string)?

^[@?\$]{0,2}\".*\"$

return (text.startsWith("\"") && text.endsWith("\"")) ||

Though using regex may complicate everything.. πŸ˜› because when the user is using interpolated strings in certain way it could trigger the autocomplete again.

Remote SSH Interpreter

I'm running PyCharm on a windows machine, setup with a remote SSH interpreter on a Linux server. Autocomplete runs for local windows folder structure, starting with ''; however, all files will be run on the remote Linux machine and should use that folder structure and have autocomplete start with '/'

Doesn't seem to work on macos

I'm running the Comma IDE based on IntelliJ. I downloaded and installed the plugin and it says it's enabled but hitting c-space just gives me "no suggestions."

Build #CP-213.5744.3, built on February 27, 2022
Runtime version: 11.0.13+7-b1751.19 x86_64

Non-Path String with Angle Bracket Causes Exception

My file completion plugin generated some errors on the following line of code:

final double width = readVerifiedDoubleFromScanner(in,
        smallestPositiveDoubleValue, Double.MAX_VALUE,
        "What is the width of the parallelepiped [Must be >0]?",
        invalidDoubleErrorMessage);
Java Exception Stacktrace (click to expand) java.nio.file.InvalidPathException: Illegal char <>> at index 162: C:\Users\emily\IdeaProjects\CECS220Assignments\CECS220Assignment5\src\main\java\com\emabrey\cecs220\assignment5\What is the height of the parallelepiped [Must be >0 at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92) at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229) at java.base/java.nio.file.Path.of(Path.java:147) at java.base/java.nio.file.Paths.get(Paths.java:69) at com.pinkfloyded.FilePathMatcher.getBaseName(FilePathMatcher.java:88) at com.pinkfloyded.FilePathMatcher.match(FilePathMatcher.java:28) at com.pinkfloyded.FilePathMatcher.aggregateFilePaths(FilePathMatcher.java:67) at com.pinkfloyded.FilePathCompletionContributor.fillCompletionVariants(FilePathCompletionContributor.java:26) at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:63) at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:148) at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:141) at com.intellij.codeInsight.completion.JShellCompletionContributor.fillCompletionVariants(JShellCompletionContributor.java:27) at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:63) at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:148) at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:141) at com.intellij.codeInsight.completion.JavaNoVariantsDelegator.fillCompletionVariants(JavaNoVariantsDelegator.java:56) at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:63) at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:148) at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:141) at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$1.addCompletions(LiveTemplateCompletionContributor.java:77) at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:40) at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:150) at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:63) at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:119) at com.intellij.codeInsight.completion.impl.CompletionServiceImpl.performCompletion(CompletionServiceImpl.java:55) at com.intellij.codeInsight.completion.CompletionProgressIndicator.calculateItems(CompletionProgressIndicator.java:824) at com.intellij.codeInsight.completion.CompletionProgressIndicator.runContributors(CompletionProgressIndicator.java:809) at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$null$5(CodeCompletionHandlerBase.java:325) at com.intellij.codeInsight.completion.AsyncCompletion.lambda$tryReadOrCancel$5(CompletionThreading.java:172) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1106) at com.intellij.codeInsight.completion.AsyncCompletion.tryReadOrCancel(CompletionThreading.java:170) at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$startContributorThread$6(CodeCompletionHandlerBase.java:317) at com.intellij.codeInsight.completion.AsyncCompletion.lambda$null$0(CompletionThreading.java:95) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156) at com.intellij.codeInsight.completion.AsyncCompletion.lambda$startThread$1(CompletionThreading.java:91) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:294) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)

For some reason it tried to process that String as a file path despite having invalid characters (β€œ>” isn’t allowed in Windows file paths and is what I think caused the error). Let me know if you need some more information that I didn't think to provide.

I am using File Path Autocomplete version 0.3.0 on x64 Windows 10 Education v 1903 with IntelliJ IDEA Ultimate 2019.2.4 .

Autocomplete relative from project root

Great plugin, I was using it with PyCharm. But since i use IPython, interpreter starts in the directory of the project, thus the file path should also be relative to the project root. So i'm suggesting a feature which will allow users to specify if they want to use autocomplete relative to file path or some other constant path like the project root.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.