GithubHelp home page GithubHelp logo

Comments (8)

manateelazycat avatar manateelazycat commented on June 15, 2024

@AmaiKinono Any idea?

from awesome-tab.

AmaiKinono avatar AmaiKinono commented on June 15, 2024

I have no access to my PC currently, but I think I know the reason. When awesome-tab-ace-keys is set, a setter function is run to update a series of variables, you may want looking into the code. To achieve this, you have to use one of these ways:

  • Set it before requiring awesome-tab.
  • Use customize-set-variables, it detects the setter function and run it.
  • Copy the general-setq macro from general.el. The explanation is here. It also runs the setter but is way faster than customize-set-variables. I suggest you do this. I basically use this macro whenever I want to set customizable variables, and get rid of most similar problems.

I do think we should mention this problem in README. I'll do it tomorrow.

PS: Just to be curious, you have a really big screen to put more than 16 tabs? That sounds so big to me since my screen can only handle 9 tabs 🤣

from awesome-tab.

jiahut avatar jiahut commented on June 15, 2024

customize-set-variables not works well with setter function

from awesome-tab.

AmaiKinono avatar AmaiKinono commented on June 15, 2024

Sorry I misspelled it. It's customize-set-variable. You need to do this:

(customize-set-variable 'awesome-tab-ace-keys '(?j ?k ?h ?g ?d ?f))

And I tried and find that setq before requiring does not work, but general-setq works. So you can choose one of the latter 2 ways.

If you still have troubles, please show us exactly what you put in your configuration, ideally use emacs -Q to test, and we'll look into it.

from awesome-tab.

jiahut avatar jiahut commented on June 15, 2024

customize-set-variable works

good job @AmaiKinono thinks.

from awesome-tab.

manateelazycat avatar manateelazycat commented on June 15, 2024

Fixed by 017f21b

Thanks for report.

from awesome-tab.

AmaiKinono avatar AmaiKinono commented on June 15, 2024

@manateelazycat I don't think put h and g in the default value is a good idea. I use a laptop all the time so maybe I don't have a concept of how many tags can a normal screen have. But even it's needed to deal with that many tabs, add l and s is better than h and g. Since with ace sequences like jh or fg, you have to use single finger twice, but with l and s, you never need to move your hand.

from awesome-tab.

manateelazycat avatar manateelazycat commented on June 15, 2024

可以改成 l 或者 s, 我不想默认 ace-jump 就报错,你提交一个新的 PR 来改进这个问题吧。

from awesome-tab.

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.