Comments (5)
I've created a PR (see above) to see what the implementation might look like.
from code-minimap.
Alternatively, a syntax similar to that of the -r
or --line-range
option in bat could be used. The two options could then be condensed into one like -R <M:N>
, where M
is the start line and N
is the end line.
-R 5:25
would show lines5
to25
.-R 5:
would show from line5
to the end-R :25
would show from the beginning to line25
.
from code-minimap.
@Dophin2009 Thank you, but I don’t think this option is very useful for minimap. There are already special tools head
and tail
to do this. I prefer to use these tools in combination instead.
eg: pick 10 lines from line 80th
$ seq 100 | tail +80 | head -10
80
81
82
83
84
85
86
87
88
89
You can easily combine them with code-minimap
:
$ seq 100 | tail +80 | head -10 | code-minimap
from code-minimap.
That makes sense. Though I wonder if this option could still maybe be useful to Windows users, where head
, tail
, and other coreutil tools are not easily accessible or convenient?
Feel free to close.
from code-minimap.
@Dophin2009 Your idea is good. I do not adopt this change simply because in my opinion it does not follow the philosophy of “KISS” and “Do one thing and do it well”.
For this non-daily used tool, I think it is not worth considering the applicability of each platform for a non-core function. I prefer to implement head
or tail
command independly if it is really necessary for many users.
Anyway, thank you for your contribution!
from code-minimap.
Related Issues (17)
- A lib crate API? HOT 4
- Static Aarch64 release?
- [Feature request] Render the map horizontally
- Smart identation, keywords.
- Thanks
- 0.6.5 release build failure HOT 2
- Cannot start HOT 1
- arm64 .deb is broken HOT 4
- can't be installed with brew HOT 1
- Can't install debian 8,9 older versions HOT 2
- close minimap window ,then use *# , error "no mmwinid" HOT 2
- Installation not working on Ubuntu 20.04 HOT 1
- Option correction is too eager HOT 4
- Different colored views HOT 1
- Install Via Vim Plug HOT 4
- Code block instead of braille
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 code-minimap.