PageRenderTime 62ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/editor/README.md

https://github.com/mlubinsky/mlubinsky.github.com
Markdown | 509 lines | 299 code | 210 blank | 0 comment | 0 complexity | ac224511b91f07f2d357de0e5ee7d15d MD5 | raw file
  1. https://penrose.ink/siggraph20.html Math visualization
  2. https://github.com/Eugene-Mark/bigdata-file-viewer
  3. https://www.zeditor.app/
  4. https://coteditor.com/
  5. ### To invoke Sublime from command line (as subl) create symbolic link
  6. ```
  7. sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl
  8. ```
  9. ### Helix
  10. https://helix-editor.com/
  11. https://www.youtube.com/watch?v=9Zj-wiQ9_Xw
  12. #### Nova (not free)
  13. https://nova.app/
  14. #### Lite-xl
  15. https://lite-xl.github.io/
  16. https://betterprogramming.pub/bored-of-vs-code-try-lite-xl-76d4cb3f8dda
  17. #### Helix and other editors
  18. https://news.ycombinator.com/item?id=27358479
  19. ### Removing trailing spaces in file
  20. .vimrc
  21. autocmd BufWritePre * %s/\s\+$//e
  22. VS Code: whitespace trimming at file save time from settings:
  23. File Preference Settings Text Editor Files (scroll down a bit) to see checkbox Trim Trailing Whitespace
  24. ### Personal Notes
  25. <https://lobste.rs/s/e5lx5p/what_note_taking_team_wiki_personal_wiki>
  26. ## VIM
  27. https://github.com/mhinz/vim-galore
  28. ### csv plugin
  29. https://www.vim.org/scripts/script.php?script_id=2830
  30. Open csv.vmb in Vim and source the file:
  31. ```
  32. :so %
  33. ```
  34. This will install the plugin into your $HOME/.vim/ftplugin directory and the documentation into your $HOME/.vim/doc directory.
  35. ```
  36. mkdir -p ~/.vim/pack/my-plugins/start
  37. git clone https://github.com/chrisbra/csv.vim ~/.vim/pack/dist/start/csv
  38. :helptags
  39. https://github.com/chrisbra/csv.vim
  40. ```
  41. https://news.ycombinator.com/item?id=30084913
  42. ```
  43. :w !sudo tee "%"
  44. ```
  45. https://github.com/chrisbra/csv.vim CSV viewer
  46. https://jaredgorski.org/writing/6-a-vim-puff-piece/
  47. https://changelog.com/podcast/450
  48. https://vim-bootstrap.com/
  49. https://thevaluable.dev/vim-veteran/
  50. https://thevaluable.dev/vim-expert/
  51. ### NeoVim
  52. https://toroid.org/modern-neovim
  53. https://habr.com/ru/post/585222/
  54. https://www.lunarvim.org/01-installing.html
  55. ## Vimium
  56. <https://codefaster.substack.com/p/look-ma-no-mouse-vimium>
  57. ## Latex MathJax
  58. https://latex-cookbook.net/
  59. https://news.ycombinator.com/item?id=29672872
  60. https://habr.com/ru/company/skillfactory/blog/593999/
  61. <https://news.ycombinator.com/item?id=24741077>
  62. <https://www.overleaf.com/learn>
  63. https://artofproblemsolving.com/wiki/index.php/LaTeX:LaTeX_on_AoPS
  64. https://www.texstudio.org/
  65. <https://marketplace.visualstudio.com/items?itemName=James-Yu.latex-workshop> Latex
  66. https://www.youtube.com/watch?v=331YxgOJUGw
  67. https://medium.com/@mathcube7
  68. ## Julia + Pluto
  69. https://www.youtube.com/watch?v=IAF8DjrQSSk
  70. ## Jupyter Book
  71. Jupyter Book takes one or more Jupyter Notebooks and converts them into a static "book" output (looks like it primarily targets HTML output but with LaTex/PDF possible)
  72. https://blog.jupyter.org/announcing-the-new-jupyter-book-cbf7aa8bc72e
  73. https://news.ycombinator.com/item?id=24136955
  74. ## Linters / Formatters
  75. <https://www.reddit.com/r/javascript/comments/cti3xs/why_you_should_use_eslint_prettier_and/>
  76. <https://www.freecodecamp.org/news/the-guide-to-using-eslint-and-prettier-in-a-react-app/>
  77. ### Diff
  78. https://github.com/dandavison/delta
  79. <https://diffoscope.org/>
  80. <https://try.diffoscope.org/>
  81. <https://marketplace.visualstudio.com/items?itemName=MadsKristensen.FileDiffer> VS Plugin
  82. https://github.com/dandavison/delta
  83. https://github.com/ynqa/diffy
  84. https://github.com/ymattw/ydiff
  85. https://github.com/so-fancy/diff-so-fancy
  86. https://unix.stackexchange.com/questions/196565/how-to-color-diff-output
  87. ### File manager
  88. ranger
  89. <https://www.youtube.com/watch?v=47QYCa8AYG4> . vifm
  90. <https://www.youtube.com/watch?v=EGBEIb2DgtQ> . lf
  91. <https://www.youtube.com/watch?v=cnzuzcCPYsk> nnn
  92. ### cd on quit in NNN
  93. ```
  94. if you mean the C-g behaviour then you need to set $NNN_TMPFILE:
  95. nnn() {
  96. declare -x +g NNN_TMPFILE=$(mktemp --tmpdir $0.XXXX)
  97. trap "rm -f $NNN_TMPFILE" EXIT
  98. =nnn $@
  99. [ -s $NNN_TMPFILE ] && source $NNN_TMPFILE
  100. }
  101. You can use a static file if you're sure you'll never be running more than one instance.
  102. I'd prefer something like:
  103. nnn() {
  104. local tmp=$(mktemp --tmpdir $0.XXXX)
  105. trap "rm -f $tmp" EXIT
  106. =nnn -p $tmp $@
  107. [ -s $tmp ] && cd ${"$(< $tmp)":h}
  108. }
  109. That will cd to the selected file's directory with enter/right, or do nothing if you simply quit.
  110. I guess it depends if you use it for browsing a lot or simply picking a file.
  111. Pressing `!` in the target directory will open a new terminal session within nnn, with that path as working dir.
  112. When you `exit` you'll land in nnn again.
  113. It's not exactly the same but close enough for me.
  114. ```
  115. ### Tools
  116. If you like terminal productivity I recommend:
  117. fzf https://betterprogramming.pub/meet-fzf-a-fuzzy-finder-to-enhance-your-command-line-workflow-a2890f6a70f8
  118. Facebook path picker (aka fpp),
  119. fd,
  120. ripgrep,
  121. lf,
  122. tig
  123. Some honorable mentions:
  124. tokei,
  125. hyperfine,
  126. lazydocker,
  127. ctop,
  128. ncspot.
  129. bat,
  130. exa,
  131. percol,
  132. GNU dialog or zenity,
  133. xsv,
  134. ministat,
  135. gnuplot,
  136. tshark,
  137. mitmproxy.
  138. Plus any project from sharkdp and burntsushi and any tools recommended by Brendan Gregg.
  139. ht editor is a personal favorite too (press F6 and go to image to get started).
  140. ## Find non-ASCII chars in file
  141. <https://codepen.io/davidrv/full/amkWdw/>
  142. <https://stackoverflow.com/questions/3001177/how-do-i-grep-for-all-non-ascii-characters>
  143. grep on OSX 10.8 no longer supports PCRE ("Perl-compatible regular expressions")
  144. as Darwin now uses BSD grep instead of GNU grep.
  145. ```
  146. grep --color='auto' -P -n "[\x80-\xFF]" file.xml
  147. ```
  148. https://stackoverflow.com/questions/18649512/unicodedecodeerror-ascii-codec-cant-decode-byte-0xe2-in-position-13-ordinal
  149. ## Code Explorer:
  150. <https://www.sourcetrail.com/>
  151. ## Dark mode
  152. <https://draculatheme.com/>
  153. ## Text to Diagram
  154. <https://www.draw.io/>
  155. <https://news.ycombinator.com/item?id=21564990>
  156. <https://news.ycombinator.com/item?id=21513337>
  157. <https://avdi.codes/tools-for-turning-descriptions-into-diagrams/>
  158. <https://news.ycombinator.com/item?id=21491715>
  159. ## MarkDown Editors: Typora, etc
  160. <https://stackedit.io/>
  161. <https://news.ycombinator.com/item?id=21458977>
  162. ### IntelliJ Plugins
  163. avro and parquet viewer:
  164. https://plugins.jetbrains.com/plugin/12281-avro-and-parquet-viewer
  165. ## IntelliJ + Scala
  166. <https://stackoverflow.com/questions/23545476/where-do-i-enter-the-homebrew-scala-path-usr-local-opt-scala-idea-in-intellij?rq=1>
  167. ## Diff
  168. <https://yousseb.github.io/meld/>
  169. <https://github.com/ymattw/ydiff>
  170. <https://github.com/so-fancy/diff-so-fancy>
  171. In order to make it your default Git pager, run this:
  172. git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
  173. alias diff="diff-so-fancy"
  174. ## Command line tools
  175. <https://www.vimfromscratch.com/articles/awesome-command-line-tools/>
  176. <https://github.com/sharkdp/bat> . bat
  177. alias cat="bat"
  178. ### Kakoune editor
  179. https://kakoune.org/
  180. ## VIM
  181. https://www.moolenaar.net/habits.html
  182. https://news.ycombinator.com/item?id=24363225. vim as C++ IDE
  183. https://lobste.rs/s/du8i6z/5_lines_i_put_blank_vimrc
  184. "| vim -" instead of less
  185. :wq. vs :x
  186. - custom text objects
  187. - vim-surround
  188. - vim-sneak
  189. https://www.youtube.com/watch?v=Gs1VDYnS-Ac
  190. http://vi-essentials.palashkantikundu.in/
  191. https://jemma.dev/blog/intermediate-vim-tips
  192. ### Plugins
  193. 1. Linting: python-mode. IMHO it provides very good linting out of the box
  194. 2. Completion: jedi-vim. Jedi for python is great!
  195. ```
  196. mkdir -p ~/.vim/pack/michael/start
  197. cd ~/.vim/pack/michael/start
  198. git clone https://tpope.io/vim/fugitive.git
  199. vim -u NONE -c "helptags fugitive/doc" -c q
  200. -- gitgutter
  201. git clone https://github.com/airblade/vim-gitgutter.git
  202. vim -u NONE -c "helptags vim-gitgutter/doc" -c q
  203. --- inside vim:
  204. :GitGutterLineHighlightsEnable
  205. :set signcolumn=yes
  206. ```
  207. <https://news.ycombinator.com/item?id=24287566>
  208. ```
  209. :sp/:vsp,
  210. can edit remote files over scp,
  211. :E,
  212. :earlier, and now
  213. :term,
  214. ```
  215. <https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118>
  216. <https://danielmiessler.com/study/vim/>
  217. <https://www.youtube.com/watch?v=E-ZbrtoSuzw>
  218. <https://www.youtube.com/watch?v=futay9NjOac>
  219. <https://www.youtube.com/watch?v=SLQWQ_R4bRI&list=PLRjzjpJ02WDMJOTsrdByXynk8h0ScMK9R>
  220. ```
  221. % -matching brackets
  222. ctrl-f scrolls down a page
  223. ctrl-b scrolls up a page
  224. Ctrl-d scrolls down half a page
  225. ctrl-u scrolls up half a page.
  226. ^ takes you to the beginning of a line,
  227. $ to the end of a line
  228. ```
  229. <https://stackoverflow.com/questions/1445992/vim-file-navigation>
  230. <https://www.vimfromscratch.com/articles/vim-for-python/> Python
  231. <http://liuchengxu.org/posts/use-vim-as-a-python-ide/> Python
  232. <https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim>
  233. <https://habr.com/ru/post/468265/>
  234. <http://ismail.badawi.io/blog/2014/04/23/the-compositional-nature-of-vim/>
  235. <https://www.youtube.com/watch?v=5r6yzFEXajQ> tmux+vim
  236. <https://www.youtube.com/watch?v=XA2WjJbmmoM>
  237. <https://www.youtube.com/watch?v=3TX3kV3TICU> Autocompleteon
  238. <https://statico.github.io/vim3.html>
  239. <https://danielmiessler.com/study/vim/>
  240. <https://dougblack.io/words/a-good-vimrc.html>
  241. <https://boddy.im/vim-dev-env.html>
  242. <http://www.viemu.com/a-why-vi-vim.html>
  243. <https://curi0sity.de/en/2018/06/use-vim-as-a-simple-ide/>
  244. <https://github.com/morhetz/gruvbox/wiki/Installation> Color sheme gruvebox
  245. https://github.com/helix-editor/helix
  246. ## Visual Studio Code
  247. To invoke from command line
  248. ```
  249. sudo ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code /usr/local/bin/code
  250. ```
  251. Or add this to PATH
  252. ```
  253. ~/.zprofile
  254. # Add Visual Studio Code (code)
  255. export PATH="\$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
  256. ```
  257. Git History
  258. https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
  259. ```
  260. PATH=$PATH:"/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
  261. ```
  262. <https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner>
  263. <https://marketplace.visualstudio.com/items?itemName=shardulm94.trailing-spaces>
  264. <https://habr.com/ru/company/microsoft/blog/472228/>
  265. <https://habr.com/ru/company/edison/blog/479828/>
  266. <https://dev.to/lampewebdev/the-guide-to-visual-studio-code-shortcuts-higher-productivity-and-30-of-my-favourite-shortcuts-you-need-to-learn-mb3>
  267. <https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens> . GitLens
  268. https://marketplace.visualstudio.com/items?itemName=tomaszbartoszewski.avro-tools AVRO Tools
  269. <https://code.visualstudio.com/blogs/2019/10/03/remote-ssh-tips-and-tricks> SSH
  270. <https://www.jonrcorbin.com/the-best-vs-code-extension-list-for-full-stack-developers/>
  271. <https://code.visualstudio.com/docs/introvideos/debugging> . DEBUGGING
  272. ### REST extensions
  273. <https://marketplace.visualstudio.com/items?itemName=humao.rest-client>
  274. ### VS Code + python
  275. https://neps.academy/blog/how-to-install-and-configure-python-and-vscode
  276. <https://habr.com/ru/company/microsoft/blog/471188/> . Python extension
  277. <https://devblogs.microsoft.com/python/python-in-visual-studio-code-january-2020-release/> Python extension
  278. ### Visual Studio Code + JavaScript
  279. <https://www.freecodecamp.org/news/how-to-set-up-the-debugger-for-chrome-extension-in-visual-studio-code-c0b3e5937c01/>
  280. <https://habr.com/ru/company/tinkoff/blog/461737/>
  281. <https://medium.com/young-coder/setting-up-javascript-debugging-in-visual-studio-code-6c5005529987>
  282. ### Visual Studio Code + Scala
  283. <https://habr.com/ru/post/469707/>
  284. ### Visual Studio Code + Java
  285. <https://flaviocopes.com/vscode/>
  286. <https://www.youtube.com/watch?v=sVDizUZesZk>
  287. <https://code.visualstudio.com/docs/java/java-tutorial>
  288. ### diff
  289. show the diff between two files, with VSCode
  290. add to path:
  291. ```
  292. PATH=$PATH:"/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
  293. ```
  294. code --diff file1.js file2.js
  295. ## Other Editors
  296. <https://foicica.com/textadept/>
  297. <https://micro-editor.github.io/index.html>
  298. <https://news.ycombinator.com/item?id=23126458>
  299. https://github.com/helix-editor/helix Helix