Coder Social home page Coder Social logo

anschnapp / move-less Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 1.0 38 KB

vim plugin for faster navigation without moving the cursor position (look up/down/middle; scroll up/down/both, fold two distance places permanent together)

Vim Script 100.00%
far-away-shortening no-move-navigation plugin super-fast-navigation vim vim-plugin

move-less's People

Contributors

anschnapp avatar resolritter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

aileot

move-less's Issues

Provide a way to continue and redo Move-Less mode navigation from a location

Possible use cases:

  • Save folds before exiting a file and then restore the fold configuration when coming back. I think this is low priority but would be nice.
    :call MoveLess#Save
    :call MoveLess#Restore
  • Modification:
    • Pop the fold configuration from a stack. Enables MoveLess mode.
      :call MoveLess#Pop
    • Modify it as he wants it with H h J K...
    • Put it back into the stack. This exits the fold and puts the configuration in the stack.
      :call MoveLess#Push
  • Switch between different folds configuration in the stack.
    :call MoveLess#EnableFold(2) -- enables the second fold in the stack.

The main benefits would be to quickly switch to navigate on sections of the file.

Example workflow:

  • :call MoveLessMode() and navigate a bit in the top of the file. [FOLD1]
  • :call MoveLess#Push() to put the fold in the stack [FOLD1]. Now I want to go to the bottom of the file.
  • :call MoveLess#EnableFold(2) -- loads the second fold configuration and navigate to the bottom of the file. [FOLD2]
  • Navigate, stop. Make some edits, then :call MoveLess#Pop [FOLD1]. Now I'm back at the top of the file in MoveLess mode and my bottom configuration [FOLD2] is still saved in the stack.

What do you think? I didn't use fold much before finding this plugin, but the workflow seems useful.

Key mapping does not work

Plug-in command manual input can work, but the key mapping does not work, I used neovim. Previously the mapping worked, but now only manual output works.
My English is not good! I am sorry, but I like this plugin very much.
图片
图片
This is the result given by echo maparg('z', 'n') and the feedback seems to be ok
图片

Populate the jumplist

After using move-less, the expected behavior of '' is to take me to where I were before the jump. This can be achieved with nmap <leader>m m':call MoveLessMove()<cr>, but it would be nice if it was the default behavior.

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.