Vim like navigation keys for Finder












2














So I use vim all the time, and I've grown use to the navigation keys h, j, k, l, (especially when navigating with NERDTree).



Does anyone know if it's possible to implement this motion in macOS Finder.app?



I thought of remapping the keys using something like Karabiner or BetterTouchTool, but in either case, I would not be able to use those keys when renaming a file.










share|improve this question





























    2














    So I use vim all the time, and I've grown use to the navigation keys h, j, k, l, (especially when navigating with NERDTree).



    Does anyone know if it's possible to implement this motion in macOS Finder.app?



    I thought of remapping the keys using something like Karabiner or BetterTouchTool, but in either case, I would not be able to use those keys when renaming a file.










    share|improve this question



























      2












      2








      2







      So I use vim all the time, and I've grown use to the navigation keys h, j, k, l, (especially when navigating with NERDTree).



      Does anyone know if it's possible to implement this motion in macOS Finder.app?



      I thought of remapping the keys using something like Karabiner or BetterTouchTool, but in either case, I would not be able to use those keys when renaming a file.










      share|improve this question















      So I use vim all the time, and I've grown use to the navigation keys h, j, k, l, (especially when navigating with NERDTree).



      Does anyone know if it's possible to implement this motion in macOS Finder.app?



      I thought of remapping the keys using something like Karabiner or BetterTouchTool, but in either case, I would not be able to use those keys when renaming a file.







      keyboard finder vi






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 29 '18 at 4:57









      Nimesh Neema

      14.8k43972




      14.8k43972










      asked Dec 29 '18 at 2:36









      Benjamin Chausse

      335




      335






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Vim can get addictive once we get the hang of it. To vim-ify the Finder is a lovely idea.



          However, what features are you thinking about? For example, browsing files using the navigation keys h, j, k, l, then pressing i to enter edit mode and rename files or folders?



          Vim’s power lies in text mode, whereas macOS interface is designed to be used with a mouse/trackpad. It may be better to stick with vim to process textual information, and to use mouse/trackpad in a graphical environment.



          By the way, I cannot see a simple and effective way to hack the Finder (as you said Karabiner is fantastic, but it just won't do it). It would probably require to program a specific macOS Finder utility using Swift.



          Alternatively:




          1. Some code editors can be controlled the vim way, like Sublime Text with enabling the Vintage Mode.


          2. Web browsers can be controlled the vim way: Chrome with Vimium or cVim, Firefox with Vimium-FF or Vim Vixen (thanks to @Ruslan and @wchargin for mentioning it)


          3. The bash shell running in Terminal.app can be used in vi mode using set -o vi or set editing-mode vi.



          4. There are great textual file managers ready to install via Homebrew that worth a try, like:




            • nnn. To install run brew install nnn.


            • lf. To install run brew install lf.


            • vifm. To install run brew lf.


            • ranger. To install run brew install ranger.


            • midnight-commander. To install run brew install midnight-commander. Run by typing mc.


            • fdclone. To install run brew install fdclone. Run by typing fd.









          share|improve this answer










          New contributor




          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.














          • 1




            It may be better <...> to use mouse/trackpad in a graphical environment. Not always. I consider modern web browsers graphical environments, and there used to be quite some extensions like Vimperator, which worked quite successfully (until broken by changing APIs). So there might have been a similarly useful extension for Finder.
            – Ruslan
            Dec 29 '18 at 6:45








          • 1




            @Ruslan: Vimium-FF, based off its Chrome counterpart, works quite well with latest Firefox.
            – wchargin
            Dec 29 '18 at 7:27










          • @Ruslan & wchargin Thanks for mentioning Vim navigation in browsers, I added it to the list.
            – Yoric
            Dec 29 '18 at 7:48











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "118"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f346941%2fvim-like-navigation-keys-for-finder%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          Vim can get addictive once we get the hang of it. To vim-ify the Finder is a lovely idea.



          However, what features are you thinking about? For example, browsing files using the navigation keys h, j, k, l, then pressing i to enter edit mode and rename files or folders?



          Vim’s power lies in text mode, whereas macOS interface is designed to be used with a mouse/trackpad. It may be better to stick with vim to process textual information, and to use mouse/trackpad in a graphical environment.



          By the way, I cannot see a simple and effective way to hack the Finder (as you said Karabiner is fantastic, but it just won't do it). It would probably require to program a specific macOS Finder utility using Swift.



          Alternatively:




          1. Some code editors can be controlled the vim way, like Sublime Text with enabling the Vintage Mode.


          2. Web browsers can be controlled the vim way: Chrome with Vimium or cVim, Firefox with Vimium-FF or Vim Vixen (thanks to @Ruslan and @wchargin for mentioning it)


          3. The bash shell running in Terminal.app can be used in vi mode using set -o vi or set editing-mode vi.



          4. There are great textual file managers ready to install via Homebrew that worth a try, like:




            • nnn. To install run brew install nnn.


            • lf. To install run brew install lf.


            • vifm. To install run brew lf.


            • ranger. To install run brew install ranger.


            • midnight-commander. To install run brew install midnight-commander. Run by typing mc.


            • fdclone. To install run brew install fdclone. Run by typing fd.









          share|improve this answer










          New contributor




          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.














          • 1




            It may be better <...> to use mouse/trackpad in a graphical environment. Not always. I consider modern web browsers graphical environments, and there used to be quite some extensions like Vimperator, which worked quite successfully (until broken by changing APIs). So there might have been a similarly useful extension for Finder.
            – Ruslan
            Dec 29 '18 at 6:45








          • 1




            @Ruslan: Vimium-FF, based off its Chrome counterpart, works quite well with latest Firefox.
            – wchargin
            Dec 29 '18 at 7:27










          • @Ruslan & wchargin Thanks for mentioning Vim navigation in browsers, I added it to the list.
            – Yoric
            Dec 29 '18 at 7:48
















          2














          Vim can get addictive once we get the hang of it. To vim-ify the Finder is a lovely idea.



          However, what features are you thinking about? For example, browsing files using the navigation keys h, j, k, l, then pressing i to enter edit mode and rename files or folders?



          Vim’s power lies in text mode, whereas macOS interface is designed to be used with a mouse/trackpad. It may be better to stick with vim to process textual information, and to use mouse/trackpad in a graphical environment.



          By the way, I cannot see a simple and effective way to hack the Finder (as you said Karabiner is fantastic, but it just won't do it). It would probably require to program a specific macOS Finder utility using Swift.



          Alternatively:




          1. Some code editors can be controlled the vim way, like Sublime Text with enabling the Vintage Mode.


          2. Web browsers can be controlled the vim way: Chrome with Vimium or cVim, Firefox with Vimium-FF or Vim Vixen (thanks to @Ruslan and @wchargin for mentioning it)


          3. The bash shell running in Terminal.app can be used in vi mode using set -o vi or set editing-mode vi.



          4. There are great textual file managers ready to install via Homebrew that worth a try, like:




            • nnn. To install run brew install nnn.


            • lf. To install run brew install lf.


            • vifm. To install run brew lf.


            • ranger. To install run brew install ranger.


            • midnight-commander. To install run brew install midnight-commander. Run by typing mc.


            • fdclone. To install run brew install fdclone. Run by typing fd.









          share|improve this answer










          New contributor




          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.














          • 1




            It may be better <...> to use mouse/trackpad in a graphical environment. Not always. I consider modern web browsers graphical environments, and there used to be quite some extensions like Vimperator, which worked quite successfully (until broken by changing APIs). So there might have been a similarly useful extension for Finder.
            – Ruslan
            Dec 29 '18 at 6:45








          • 1




            @Ruslan: Vimium-FF, based off its Chrome counterpart, works quite well with latest Firefox.
            – wchargin
            Dec 29 '18 at 7:27










          • @Ruslan & wchargin Thanks for mentioning Vim navigation in browsers, I added it to the list.
            – Yoric
            Dec 29 '18 at 7:48














          2












          2








          2






          Vim can get addictive once we get the hang of it. To vim-ify the Finder is a lovely idea.



          However, what features are you thinking about? For example, browsing files using the navigation keys h, j, k, l, then pressing i to enter edit mode and rename files or folders?



          Vim’s power lies in text mode, whereas macOS interface is designed to be used with a mouse/trackpad. It may be better to stick with vim to process textual information, and to use mouse/trackpad in a graphical environment.



          By the way, I cannot see a simple and effective way to hack the Finder (as you said Karabiner is fantastic, but it just won't do it). It would probably require to program a specific macOS Finder utility using Swift.



          Alternatively:




          1. Some code editors can be controlled the vim way, like Sublime Text with enabling the Vintage Mode.


          2. Web browsers can be controlled the vim way: Chrome with Vimium or cVim, Firefox with Vimium-FF or Vim Vixen (thanks to @Ruslan and @wchargin for mentioning it)


          3. The bash shell running in Terminal.app can be used in vi mode using set -o vi or set editing-mode vi.



          4. There are great textual file managers ready to install via Homebrew that worth a try, like:




            • nnn. To install run brew install nnn.


            • lf. To install run brew install lf.


            • vifm. To install run brew lf.


            • ranger. To install run brew install ranger.


            • midnight-commander. To install run brew install midnight-commander. Run by typing mc.


            • fdclone. To install run brew install fdclone. Run by typing fd.









          share|improve this answer










          New contributor




          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          Vim can get addictive once we get the hang of it. To vim-ify the Finder is a lovely idea.



          However, what features are you thinking about? For example, browsing files using the navigation keys h, j, k, l, then pressing i to enter edit mode and rename files or folders?



          Vim’s power lies in text mode, whereas macOS interface is designed to be used with a mouse/trackpad. It may be better to stick with vim to process textual information, and to use mouse/trackpad in a graphical environment.



          By the way, I cannot see a simple and effective way to hack the Finder (as you said Karabiner is fantastic, but it just won't do it). It would probably require to program a specific macOS Finder utility using Swift.



          Alternatively:




          1. Some code editors can be controlled the vim way, like Sublime Text with enabling the Vintage Mode.


          2. Web browsers can be controlled the vim way: Chrome with Vimium or cVim, Firefox with Vimium-FF or Vim Vixen (thanks to @Ruslan and @wchargin for mentioning it)


          3. The bash shell running in Terminal.app can be used in vi mode using set -o vi or set editing-mode vi.



          4. There are great textual file managers ready to install via Homebrew that worth a try, like:




            • nnn. To install run brew install nnn.


            • lf. To install run brew install lf.


            • vifm. To install run brew lf.


            • ranger. To install run brew install ranger.


            • midnight-commander. To install run brew install midnight-commander. Run by typing mc.


            • fdclone. To install run brew install fdclone. Run by typing fd.










          share|improve this answer










          New contributor




          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer








          edited Dec 29 '18 at 7:45





















          New contributor




          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Dec 29 '18 at 4:56









          Yoric

          2685




          2685




          New contributor




          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Yoric is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.








          • 1




            It may be better <...> to use mouse/trackpad in a graphical environment. Not always. I consider modern web browsers graphical environments, and there used to be quite some extensions like Vimperator, which worked quite successfully (until broken by changing APIs). So there might have been a similarly useful extension for Finder.
            – Ruslan
            Dec 29 '18 at 6:45








          • 1




            @Ruslan: Vimium-FF, based off its Chrome counterpart, works quite well with latest Firefox.
            – wchargin
            Dec 29 '18 at 7:27










          • @Ruslan & wchargin Thanks for mentioning Vim navigation in browsers, I added it to the list.
            – Yoric
            Dec 29 '18 at 7:48














          • 1




            It may be better <...> to use mouse/trackpad in a graphical environment. Not always. I consider modern web browsers graphical environments, and there used to be quite some extensions like Vimperator, which worked quite successfully (until broken by changing APIs). So there might have been a similarly useful extension for Finder.
            – Ruslan
            Dec 29 '18 at 6:45








          • 1




            @Ruslan: Vimium-FF, based off its Chrome counterpart, works quite well with latest Firefox.
            – wchargin
            Dec 29 '18 at 7:27










          • @Ruslan & wchargin Thanks for mentioning Vim navigation in browsers, I added it to the list.
            – Yoric
            Dec 29 '18 at 7:48








          1




          1




          It may be better <...> to use mouse/trackpad in a graphical environment. Not always. I consider modern web browsers graphical environments, and there used to be quite some extensions like Vimperator, which worked quite successfully (until broken by changing APIs). So there might have been a similarly useful extension for Finder.
          – Ruslan
          Dec 29 '18 at 6:45






          It may be better <...> to use mouse/trackpad in a graphical environment. Not always. I consider modern web browsers graphical environments, and there used to be quite some extensions like Vimperator, which worked quite successfully (until broken by changing APIs). So there might have been a similarly useful extension for Finder.
          – Ruslan
          Dec 29 '18 at 6:45






          1




          1




          @Ruslan: Vimium-FF, based off its Chrome counterpart, works quite well with latest Firefox.
          – wchargin
          Dec 29 '18 at 7:27




          @Ruslan: Vimium-FF, based off its Chrome counterpart, works quite well with latest Firefox.
          – wchargin
          Dec 29 '18 at 7:27












          @Ruslan & wchargin Thanks for mentioning Vim navigation in browsers, I added it to the list.
          – Yoric
          Dec 29 '18 at 7:48




          @Ruslan & wchargin Thanks for mentioning Vim navigation in browsers, I added it to the list.
          – Yoric
          Dec 29 '18 at 7:48


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Different!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f346941%2fvim-like-navigation-keys-for-finder%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Human spaceflight

          Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

          張江高科駅