Git Product home page Git Product logo

Comments (4)

smolck avatar smolck commented on May 24, 2024

Hello! By “zoom in and out” do you mean increase/decrease the font size, or focus in/out on a specific part of the editor?

from uivonim.

Bhanukamax avatar Bhanukamax commented on May 24, 2024

Hi @smolck thanks for the swift reply. By zoom I meant zooming in out the entire UI, this is something I use a lot with neovim. It makes it easy to zoom in and out when required, without resetting the font sizes.
Please let me if there's any suggested work around for this for now, because I'm really exited to test uivonim out.

I'll paste few gifs here to show what I mean:

This is the zoom in and out in neovim running on the terminal:
neovim-term-zoom

This is the Oni2 gui doing the same:
oni2-zoom

from uivonim.

Bhanukamax avatar Bhanukamax commented on May 24, 2024

as a quick work around I started setting the guifont size manually when i need to adjust

from uivonim.

smolck avatar smolck commented on May 24, 2024

As of 4028373 this functionality now is enabled by default and done via Ctrl shift + and Ctrl shift -. Note that you can now also register shortcuts for uivonim to handle, thus allowing for Ctrl shift mappings which aren't usually possible in the terminal. Here's an example showcasing the new configuration options:

-- init.lua
if vim.g.uivonim == 1 then
  vim.defer_fn(function()

    -- Assumes SomeOtherCommandToRun and HurrayForControlShiftMappings are defined somewhere
    require'uivonim'.register_shortcuts {
      { '<C-S-P>', ':echo "Hello, World!"' },
      { '<C-S-Y>', ':SomeOtherCommandToRun' },
      { '<C-S-N', ':call HurrayForControlShiftMappings()' },
    }

    -- Can also unregister shortcuts
    require'uivonim'.unregister_shortcuts { '<C-S-P>' } -- No more echoing "Hello, World!" on ctrl+shift+p

    -- Don't like the default mappings?
    require'uivonim'.disable_default_shortcuts()

    -- Want them back?
    require'uivonim'.enable_default_shortcuts()
  end, 1000)
end

from uivonim.

Related Issues (20)

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.