Comments (16)
Hello @gerrywd, thanks for your comment!
I've never thought about a feature like that. Let me see if I can find the time to add something like it.
from scout.
@gerrywd I'm very sorry about the radio silence. I was trying to put up together a new version with this feature, but I couldn't find the time. I'll keep working on it but it probably will take long. I'm going to close this issue but I'll ping you if I manage to release the new version. Thanks again for the feature request! 🙇🏻
from scout.
Maybe if hitting [tab] once you are on a line that could then show the context for the selected line? Perhaps that would be the best way?
That could be a good approach. I was thinking that too much context lines could clutter the results, but at the same time you want to quickly see what you are looking for. I'll need to think about this.
Thanks for all the feedback and suggestions, I appreciate it.
from scout.
No worries at all. I agree regarding your point about the clutter, which is why maybe the key to activate might be better. An alternative that I've seen is to have a separate pane to the right, but I'm not sure as that might be a lot of effort. So whatever is the easiest for you would be my personal preference. Anyway, thanks for even considering the idea and making Scout... (edit: and Github 😁 )
from scout.
No worries at all. I agree regarding your point about the clutter, which is why maybe the key to activate might be better. An alternative that I've seen is to have a separate pane to the right, but I'm not sure as that might be a lot of effort. So whatever is the easiest for you would be my personal preference. Anyway, thanks for even considering the idea and making Scout... (edit: and Github 😁 )
Yes, the right pane would be great, but printing to the tty
is hard work and I would need to rework a lot of things to make it happen, mainly because I don't know what I'm doing most of the time 😅.
I hope I can find time soon to work on this.
from scout.
Yeah, I know tui-rs
, it's pretty great. Sadly it doesn't work with my architecture which is based on async/await
. I have an idea on how to improve the UI part, but it requires a whole rewrite, of that part at least, so it will take some time.
from scout.
@jhbabon no worries at all. It was only a suggestion and I can understand not having the time. Only keep working on it if it's something YOU really want. Live is too short to waste on random feature requests. Thank you for the honest response and thank you for the efforts you have put into this project. 👍 Stay awesome. 😃
from scout.
🤞 Thank you for considering this. 😄
My current use case in on man
pages where I'm trying to find references to a flag or option. Often I'll find it with scout but then be unable to read the description which is on the line after. I imagine there would be a similar issue if looking through a diff in git and filtering it using Scout.
from scout.
🤞 Thank you for considering this. 😄
My current use case in on man pages where I'm trying to find references to a flag or option. Often I'll find it with scout but then be unable to read the description which is on the line after. I imagine there would be a similar issue if looking through a diff in git and filtering it using Scout.
Thanks for sharing this! I've never used scout
that way, to be honest, I always use it to filter filepaths or list of items. This is very interesting.
Can you share an example of the command you use to filter through man
pages? It might help me to refine this.
from scout.
So for instance man curl | scout
and then typing proxy digest
to get to that flag. Unfortunately the description is on the following lines.
You could do that by searching the man page or using grep, but it doesn't have the fuzzy find and instant feedback that scout has which makes finding things much quicker.
from scout.
The same goes for git. You can git blame <filename> | scout
and type the keyword that you wish to use to search for the appropriate change set. But I essentially want to use scout anywhere I would normally pipe to grep as it's just better. I just need context once I've found the correct line.
from scout.
Maybe if hitting [tab] once you are on a line that could then show the context for the selected line? Perhaps that would be the best way?
from scout.
mainly because I don't know what I'm doing most of the time 😅.
I know the feeling 😁
from scout.
So, I've been working a bit on this and I realized that the UI part is more complex than I want to admit. I think I'm going to do a rework on it so hopefully displaying more information, like the context, becomes easier. Just wanted to share an update.
from scout.
Oh yikes! Thank you for your efforts! I'm sorry to hear it has been tricky. UI in the terminal is very difficult unless you are using some sort of framework and even then I'm not sure. I remember writing my own simple UI many many years ago using ncurses in C and it was brutal.
Just in case you haven't seen this one:
https://github.com/fdehau/tui-rs
Although I'm not sure how nicely this would play with your existing code. Perhaps that's some of the issues you are running into?
from scout.
Sorry to hear that. If its not worth it please don't feel in any way pressured. I'm just as happy for you to close the issue. I was only suggesting this if it wasn't going to be a lot of work.
from scout.
Related Issues (4)
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 scout.