Comments (4)
finding that definition is a bit more difficult than it should be, because I need to know in which package it is defined before I can use the identifier search
I completely agree that it is inconvenient. "Global" identifier search would be helpful.
Would it be possible to select more than one packages in which to search? Or perhaps, if I search for an identifier and find 0 results, offer the option to search in all other indexed packages?
It is possible (and not too difficult).
I think it is best to add an option to search in all indexed packages. The "global" identifier search form should be accessible from both main page (next to the package search form) and package page (I will add a radio button "in the current package"/"in all packages" next to the identifier search form).
The plan is:
- Add a trie with exported identifiers from all indexed packages to
Environment
ofhaskell-code-server
, add a new API endpoint. - Create UI for "global" identifier search (form on the main page and a list of found identifiers).
- Add an option to switch between "search in the current package" and "search in all packages" on the package page.
from haskell-code-explorer.
Features 1. and 2. are in master now. There is a "Search in all packages" form on the main page, demo: https://haskell-code-explorer.mfix.io/
The switch between "search in the current package" and "search in all packages" on the package page is not done yet.
from haskell-code-explorer.
e8ded03 implements the switch on the package page. Demo: https://haskell-code-explorer.mfix.io/package/lens-4.16.1
from haskell-code-explorer.
Thanks!
from haskell-code-explorer.
Related Issues (20)
- Consider including GHC version in executable name HOT 2
- How to index all locally installed packages? HOT 6
- Default `--package` to `.` HOT 2
- Make more mobile browser friendly HOT 3
- Testing team HOT 2
- No "open in new tab" option after right clicking an identifier HOT 4
- Client HOT 4
- Are there any new features? HOT 3
- GHC version match check seems to be checking the version that Cabal was compiled with HOT 4
- segfault related to TemplateHaskell HOT 9
- Add instructions on how to index the GHC code base HOT 2
- submodule HOT 2
- Immediately fail on GHC mismatch HOT 1
- No cabal files HOT 4
- Including more packages in https://haskell-code-explorer.mfix.io/ HOT 6
- ghc-8.10.1 support? HOT 1
- Failing to index HOT 3
- Docker image for easy and reproducible deployment
- Port to GHC 9.x.x and emacs package HOT 3
- Comparison with HLS
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 haskell-code-explorer.