Comments (4)
I think this is consistent in the sense that it's truncating directory names longer than 16 chars. Yeah...it's an odd default that's not called out anywhere, It's using the shorten = 16
option from telescope.nvim.
This is definitely a weakness we have when using terminal-based applications, since we can't use a variable width typeface that would allow us to use so much less space for these.
Ideally there wouldn't need to be any options here because we'd just be able to do the most reasonable thing always. If anybody has any thoughts or examples of some project doing this well, I'd love to know about it.
I don't care for the way telescope shortens directories. I'd much prefer if it only shortens as much as it would need to make the directory fit, but for that, the path_display
transformation functions would have to accept an "available length" parameter. At the very least though, I think we can expose an option that allows us to fall back to configuring the display of paths using telescope's options.
from smart-open.nvim.
This change is available on the 0.2.x
branch, which is in a sort of pre-release state right now, so if you want to try it out and provide feedback, that would be great. I ended up creating a custom path formatter because I couldn't find anything existing that tried to give as much path information as possible given a space constraint. Also, I switched to using a highlighting class of Directory
to give the directory a different color. I like the looks of this, so hopefully it's the correct way to use the highlighting class?
If there's anyone who can provide feedback on this, it would be a big help.
from smart-open.nvim.
It looks great! I just tried it and I think it works for whatever I have right now. Not sure if there is any edge case but at least it's working for me.
One thing not sure if related to the custom formatter: it seems the results are blinking/refreshing quite a bit whenever I'm typing. Maybe it's due to the refreshing period too short? It's not a big deal just some nitpick.
Thanks for working on this! It's a daily plugin for me :)
from smart-open.nvim.
Implemented on 0.2.x branch.
from smart-open.nvim.
Related Issues (20)
- mappings does not work HOT 3
- the file opened through smart-open is not pick up by Telescope old_files
- 5 second pause before opening HOT 1
- [Feature Request] `match_algorithm` add support for `zf`
- [feature request] ctrl-c to close telescope prompt HOT 2
- Any plans to integrate with fzf-lua? HOT 4
- Telescope to_fuzzy_refine action not working
- Custom highlight group for directories HOT 1
- Highlighting doesn't seem to work right when using fzf sorter
- sometimes it still finds ignored files HOT 1
- Fuzzy finding HOT 7
- virtual_name.lua:26: attempt to perform arithmetic on local 'last' (a nil value) HOT 2
- Ctrl+W to delete word in Telescope picker works in 0.1.x but not 0.2.x
- Picker entry containing raw "ls" command output appears in 0.2.x HOT 1
- Allow locations_input on the picker
- [Feature request] Allow to configure result limit
- Some configuration and mapping are broken in `main` branch
- add it to luarocks.org ? HOT 1
- Pre select first element during search HOT 2
- a sorter that favors exact match?
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 smart-open.nvim.